public abstract class AbstractTileSource extends java.lang.Object implements TileSource
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Image |
attributionImage |
protected java.lang.String |
attributionImageURL |
protected java.lang.String |
attributionLinkURL |
protected java.lang.String |
attributionText |
protected java.lang.String |
termsOfUseText |
protected java.lang.String |
termsOfUseURL |
| Constructor and Description |
|---|
AbstractTileSource() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Image |
getAttributionImage() |
java.lang.String |
getAttributionImageURL() |
java.lang.String |
getAttributionLinkURL() |
java.lang.String |
getAttributionText(int zoom,
ICoordinate topLeft,
ICoordinate botRight) |
java.lang.String |
getTermsOfUseText() |
java.lang.String |
getTermsOfUseURL() |
boolean |
isNoTileAtZoom(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers,
int statusCode,
byte[] content)
Determines, if the returned data from TileSource represent "no tile at this zoom level" situation.
|
boolean |
requiresAttribution() |
void |
setAttributionImage(java.awt.Image attributionImage) |
void |
setAttributionImageURL(java.lang.String attributionImageURL) |
void |
setAttributionLinkURL(java.lang.String attributionLinkURL) |
void |
setAttributionText(java.lang.String attributionText) |
void |
setTermsOfUseText(java.lang.String termsOfUseText) |
void |
setTermsOfUseURL(java.lang.String termsOfUseURL) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCoveringTileRange, getDefaultTileSize, getDistance, getId, getMaxZoom, getMetadata, getMinZoom, getName, getServerCRS, getTileId, getTileSize, getTileUrl, getTileXMax, getTileXMin, getTileYMax, getTileYMin, isInside, isModTileFeatures, latLonToTileXY, latLonToTileXY, latLonToXY, latLonToXY, projectedToTileXY, tileXYToLatLon, tileXYToLatLon, tileXYToLatLon, tileXYtoProjected, xyToLatLon, xyToLatLonprotected java.lang.String attributionText
protected java.lang.String attributionLinkURL
protected java.awt.Image attributionImage
protected java.lang.String attributionImageURL
protected java.lang.String termsOfUseText
protected java.lang.String termsOfUseURL
public AbstractTileSource()
public boolean requiresAttribution()
requiresAttribution in interface Attributedpublic java.lang.String getAttributionText(int zoom, ICoordinate topLeft, ICoordinate botRight)
getAttributionText in interface Attributedzoom - The optional zoom level for the view.topLeft - The top left of the bounding box for attribution.botRight - The bottom right of the bounding box for attribution.public java.lang.String getAttributionLinkURL()
getAttributionLinkURL in interface Attributedpublic java.awt.Image getAttributionImage()
getAttributionImage in interface Attributedpublic java.lang.String getAttributionImageURL()
getAttributionImageURL in interface Attributedpublic java.lang.String getTermsOfUseText()
getTermsOfUseText in interface Attributedpublic java.lang.String getTermsOfUseURL()
getTermsOfUseURL in interface Attributedpublic void setAttributionText(java.lang.String attributionText)
public void setAttributionLinkURL(java.lang.String attributionLinkURL)
public void setAttributionImage(java.awt.Image attributionImage)
public void setAttributionImageURL(java.lang.String attributionImageURL)
public void setTermsOfUseText(java.lang.String termsOfUseText)
public void setTermsOfUseURL(java.lang.String termsOfUseURL)
public boolean isNoTileAtZoom(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, int statusCode, byte[] content)
TileSourceisNoTileAtZoom in interface TileSourceheaders - HTTP headers from response from TileSource serverstatusCode - HTTP status codecontent - byte array representing the data returned from the server