public abstract class AbstractTileSource extends Object implements TileSource
TileSource.TileUpdate
Modifier and Type | Field and Description |
---|---|
protected Image |
attributionImage |
protected String |
attributionImageURL |
protected String |
attributionLinkURL |
protected String |
attributionText |
protected String |
termsOfUseText |
protected String |
termsOfUseURL |
Constructor and Description |
---|
AbstractTileSource() |
Modifier and Type | Method and Description |
---|---|
Image |
getAttributionImage() |
String |
getAttributionImageURL() |
String |
getAttributionLinkURL() |
String |
getAttributionText(int zoom,
Coordinate topLeft,
Coordinate botRight) |
String |
getTermsOfUseText() |
String |
getTermsOfUseURL() |
boolean |
requiresAttribution() |
void |
setAttributionImage(Image attributionImage) |
void |
setAttributionImageURL(String attributionImageURL) |
void |
setAttributionLinkURL(String attributionLinkURL) |
void |
setAttributionText(String attributionText) |
void |
setTermsOfUseText(String termsOfUseText) |
void |
setTermsOfUseURL(String termsOfUseURL) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistance, getId, getMaxZoom, getMinZoom, getName, getTileSize, getTileType, getTileUpdate, getTileUrl, latToTileY, LatToY, lonToTileX, LonToX, tileXToLon, tileYToLat, XToLon, YToLat
protected String attributionText
protected String attributionLinkURL
protected Image attributionImage
protected String attributionImageURL
protected String termsOfUseText
protected String termsOfUseURL
public AbstractTileSource()
public boolean requiresAttribution()
requiresAttribution
in interface Attributed
public String getAttributionText(int zoom, Coordinate topLeft, Coordinate botRight)
getAttributionText
in interface Attributed
zoom
- 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 String getAttributionLinkURL()
getAttributionLinkURL
in interface Attributed
public Image getAttributionImage()
getAttributionImage
in interface Attributed
public String getAttributionImageURL()
getAttributionImageURL
in interface Attributed
public String getTermsOfUseText()
getTermsOfUseText
in interface Attributed
public String getTermsOfUseURL()
getTermsOfUseURL
in interface Attributed
public void setAttributionText(String attributionText)
public void setAttributionLinkURL(String attributionLinkURL)
public void setAttributionImage(Image attributionImage)
public void setAttributionImageURL(String attributionImageURL)
public void setTermsOfUseText(String termsOfUseText)
public void setTermsOfUseURL(String termsOfUseURL)