public static class SlippyMapBBoxChooser.RenamedSourceDecorator extends Object implements TileSource
TileSource.TileUpdate| Modifier and Type | Field and Description |
|---|---|
private String |
name |
private TileSource |
source |
| Constructor and Description |
|---|
RenamedSourceDecorator(TileSource source,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Image |
getAttributionImage() |
String |
getAttributionImageURL() |
String |
getAttributionLinkURL() |
String |
getAttributionText(int zoom,
Coordinate topLeft,
Coordinate botRight) |
int |
getMaxZoom()
Specifies the maximum zoom value.
|
int |
getMinZoom()
Specifies the minimum zoom value.
|
String |
getName()
A tile layer name has to be unique and has to consist only of characters
valid for filenames.
|
String |
getTermsOfUseText() |
String |
getTermsOfUseURL() |
int |
getTileSize()
Specifies how large each tile is.
|
String |
getTileType()
Specifies the tile image type.
|
TileSource.TileUpdate |
getTileUpdate() |
String |
getTileUrl(int zoom,
int tilex,
int tiley)
Constructs the tile url.
|
double |
latToTileY(double lat,
int zoom) |
double |
lonToTileX(double lon,
int zoom) |
boolean |
requiresAttribution() |
double |
tileXToLon(int x,
int zoom) |
double |
tileYToLat(int y,
int zoom) |
private final TileSource source
public RenamedSourceDecorator(TileSource source, String name)
public String getName()
TileSourcegetName in interface TileSourcepublic int getMaxZoom()
TileSourceTileSource.getMaxZoom()].getMaxZoom in interface TileSourceJMapViewer.MAX_ZOOMpublic int getMinZoom()
TileSourcegetMinZoom in interface TileSourcepublic int getTileSize()
TileSourcegetTileSize in interface TileSourcepublic String getTileType()
TileSource"png".getTileType in interface TileSourcepublic TileSource.TileUpdate getTileUpdate()
getTileUpdate in interface TileSourceTileSource.TileUpdatepublic String getTileUrl(int zoom, int tilex, int tiley) throws IOException
TileSourcegetTileUrl in interface TileSourceIOExceptionpublic boolean requiresAttribution()
requiresAttribution in interface Attributedpublic String getAttributionText(int zoom, Coordinate topLeft, Coordinate 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 String getAttributionLinkURL()
getAttributionLinkURL in interface Attributedpublic Image getAttributionImage()
getAttributionImage in interface Attributedpublic String getAttributionImageURL()
getAttributionImageURL in interface Attributedpublic String getTermsOfUseText()
getTermsOfUseText in interface Attributedpublic String getTermsOfUseURL()
getTermsOfUseURL in interface Attributedpublic double latToTileY(double lat, int zoom)
latToTileY in interface TileSourcepublic double lonToTileX(double lon, int zoom)
lonToTileX in interface TileSourcepublic double tileYToLat(int y, int zoom)
tileYToLat in interface TileSourcepublic double tileXToLon(int x, int zoom)
tileXToLon in interface TileSource