|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.bbox.SlippyMapBBoxChooser.RenamedSourceDecorator
public static class SlippyMapBBoxChooser.RenamedSourceDecorator
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource |
---|
TileSource.TileUpdate |
Field Summary | |
---|---|
private java.lang.String |
name
|
private TileSource |
source
|
Constructor Summary | |
---|---|
SlippyMapBBoxChooser.RenamedSourceDecorator(TileSource source,
java.lang.String name)
|
Method Summary | |
---|---|
java.awt.Image |
getAttributionImage()
|
java.lang.String |
getAttributionImageURL()
|
java.lang.String |
getAttributionLinkURL()
|
java.lang.String |
getAttributionText(int zoom,
Coordinate topLeft,
Coordinate botRight)
|
int |
getMaxZoom()
Specifies the maximum zoom value. |
int |
getMinZoom()
Specifies the minimum zoom value. |
java.lang.String |
getName()
A tile layer name has to be unique and has to consist only of characters valid for filenames. |
java.lang.String |
getTermsOfUseText()
|
java.lang.String |
getTermsOfUseURL()
|
int |
getTileSize()
Specifies how large each tile is. |
java.lang.String |
getTileType()
Specifies the tile image type. |
TileSource.TileUpdate |
getTileUpdate()
|
java.lang.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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final TileSource source
private final java.lang.String name
Constructor Detail |
---|
public SlippyMapBBoxChooser.RenamedSourceDecorator(TileSource source, java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
TileSource
getName
in interface TileSource
public int getMaxZoom()
TileSource
TileSource.getMaxZoom()
].
getMaxZoom
in interface TileSource
JMapViewer.MAX_ZOOM
public int getMinZoom()
TileSource
getMinZoom
in interface TileSource
public int getTileSize()
TileSource
getTileSize
in interface TileSource
public java.lang.String getTileType()
TileSource
"png"
.
getTileType
in interface TileSource
public TileSource.TileUpdate getTileUpdate()
getTileUpdate
in interface TileSource
TileSource.TileUpdate
public java.lang.String getTileUrl(int zoom, int tilex, int tiley) throws java.io.IOException
TileSource
getTileUrl
in interface TileSource
java.io.IOException
public boolean requiresAttribution()
requiresAttribution
in interface Attributed
public java.lang.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 java.lang.String getAttributionLinkURL()
getAttributionLinkURL
in interface Attributed
public java.awt.Image getAttributionImage()
getAttributionImage
in interface Attributed
public java.lang.String getAttributionImageURL()
getAttributionImageURL
in interface Attributed
public java.lang.String getTermsOfUseText()
getTermsOfUseText
in interface Attributed
public java.lang.String getTermsOfUseURL()
getTermsOfUseURL
in interface Attributed
public double latToTileY(double lat, int zoom)
latToTileY
in interface TileSource
public double lonToTileX(double lon, int zoom)
lonToTileX
in interface TileSource
public double tileYToLat(int y, int zoom)
tileYToLat
in interface TileSource
public double tileXToLon(int x, int zoom)
tileXToLon
in interface TileSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |