|
||||||||||
| 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 TileSourcepublic int getMaxZoom()
TileSourceTileSource.getMaxZoom()].
getMaxZoom in interface TileSourceJMapViewer.MAX_ZOOMpublic int getMinZoom()
TileSource
getMinZoom in interface TileSourcepublic int getTileSize()
TileSource
getTileSize in interface TileSourcepublic java.lang.String getTileType()
TileSource"png".
getTileType in interface TileSourcepublic TileSource.TileUpdate getTileUpdate()
getTileUpdate in interface TileSourceTileSource.TileUpdate
public java.lang.String getTileUrl(int zoom,
int tilex,
int tiley)
throws java.io.IOException
TileSource
getTileUrl in interface TileSourcejava.io.IOExceptionpublic boolean requiresAttribution()
requiresAttribution in interface Attributed
public java.lang.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 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 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 | |||||||||