public class PlaceNameService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Sector |
TILING_SECTOR |
Constructor and Description |
---|
PlaceNameService(java.lang.String service,
java.lang.String dataset,
java.lang.String fileCachePath,
Sector sector,
LatLon tileDelta,
java.awt.Font font,
boolean versionTag)
PlaceNameService Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createFileCachePathFromTile(int row,
int column) |
java.net.URL |
createServiceURLFromSector(Sector sector) |
PlaceNameService |
deepCopy() |
boolean |
equals(java.lang.Object o) |
java.awt.Color |
getBackgroundColor() |
java.awt.Color |
getColor() |
java.lang.String |
getDataset() |
Extent |
getExtent(DrawContext dc) |
java.lang.String |
getFileCachePath() |
java.awt.Font |
getFont() |
Sector |
getMaskingSector() |
double |
getMaxDisplayDistance() |
double |
getMinDisplayDistance() |
java.lang.String |
getService() |
LatLon |
getTileDelta() |
long |
getTileNumber(int row,
int column) |
int |
hashCode() |
boolean |
isAddVersionTag() |
boolean |
isEnabled() |
boolean |
isResourceAbsent(long resourceNumber) |
void |
markResourceAbsent(long tileNumber) |
void |
setAddVersionTag(boolean addVersionTag) |
void |
setBackgroundColor(java.awt.Color backgroundColor) |
void |
setColor(java.awt.Color color) |
void |
setEnabled(boolean enabled) |
void |
setMaxDisplayDistance(double maxDisplayDistance) |
void |
setMinDisplayDistance(double minDisplayDistance) |
void |
unmarkResourceAbsent(long tileNumber) |
java.lang.String |
validate()
Determines if this
PlaceNameService constructor arguments are valid. |
public static final Sector TILING_SECTOR
public PlaceNameService(java.lang.String service, java.lang.String dataset, java.lang.String fileCachePath, Sector sector, LatLon tileDelta, java.awt.Font font, boolean versionTag)
service
- server hostong placename datadataset
- name of the datasetfileCachePath
- location of cachesector
- sets the masking sector for this service.tileDelta
- tile sizefont
- font for rendering nameversionTag
- dictates if the wfs version tag is added to requestsjava.lang.IllegalArgumentException
- if any parameter is nullpublic java.lang.String createFileCachePathFromTile(int row, int column)
row
- rowcolumn
- columnjava.lang.IllegalArgumentException
- if either row
or column
is less than zeropublic java.net.URL createServiceURLFromSector(Sector sector) throws java.net.MalformedURLException
sector
- request bounding boxjava.net.MalformedURLException
- thrown if error creating the urljava.lang.IllegalArgumentException
- if Sector
is nullpublic final PlaceNameService deepCopy()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final java.awt.Color getBackgroundColor()
public final java.awt.Color getColor()
public final java.lang.String getDataset()
public final Extent getExtent(DrawContext dc)
dc
- DrawContextjava.lang.IllegalArgumentException
- if DrawContext
is nullpublic final java.lang.String getFileCachePath()
public final java.awt.Font getFont()
public final Sector getMaskingSector()
public final double getMaxDisplayDistance()
public final double getMinDisplayDistance()
public final java.lang.String getService()
public final LatLon getTileDelta()
public long getTileNumber(int row, int column)
public int hashCode()
hashCode
in class java.lang.Object
public boolean isAddVersionTag()
public final boolean isEnabled()
public final boolean isResourceAbsent(long resourceNumber)
public final void markResourceAbsent(long tileNumber)
public void setAddVersionTag(boolean addVersionTag)
public final void setBackgroundColor(java.awt.Color backgroundColor)
public final void setColor(java.awt.Color color)
color
- color of labeljava.lang.IllegalArgumentException
- if Color
is nullpublic final void setEnabled(boolean enabled)
public final void setMaxDisplayDistance(double maxDisplayDistance)
maxDisplayDistance
- maximum distance to display labels for this servicejava.lang.IllegalArgumentException
- if maxDisplayDistance
is less than the current minimum display
distancepublic final void setMinDisplayDistance(double minDisplayDistance)
minDisplayDistance
- minimum distance to display labels for this servicejava.lang.IllegalArgumentException
- if minDisplayDistance
is less than the current maximum display
distancepublic final void unmarkResourceAbsent(long tileNumber)
public final java.lang.String validate()
PlaceNameService
constructor arguments are valid.