public class PlaceNameService extends Object
Modifier and Type | Field and Description |
---|---|
static Sector |
TILING_SECTOR |
Constructor and Description |
---|
PlaceNameService(String service,
String dataset,
String fileCachePath,
Sector sector,
LatLon tileDelta,
Font font,
boolean versionTag)
PlaceNameService Constructor
|
public static final Sector TILING_SECTOR
public PlaceNameService(String service, String dataset, String fileCachePath, Sector sector, LatLon tileDelta, 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 requestsIllegalArgumentException
- if any parameter is nullpublic String createFileCachePathFromTile(int row, int column)
row
- rowcolumn
- columnIllegalArgumentException
- if either row
or column
is less than zeropublic URL createServiceURLFromSector(Sector sector) throws MalformedURLException
sector
- request bounding boxMalformedURLException
- thrown if error creating the urlIllegalArgumentException
- if Sector
is nullpublic final PlaceNameService deepCopy()
public final Color getBackgroundColor()
public final Color getColor()
public final String getDataset()
public final Extent getExtent(DrawContext dc)
dc
- DrawContextIllegalArgumentException
- if DrawContext
is nullpublic final String getFileCachePath()
public final Font getFont()
public final Sector getMaskingSector()
public final double getMaxDisplayDistance()
public final double getMinDisplayDistance()
public final String getService()
public final LatLon getTileDelta()
public long getTileNumber(int row, int column)
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(Color backgroundColor)
public final void setColor(Color color)
color
- color of labelIllegalArgumentException
- if Color
is nullpublic final void setEnabled(boolean enabled)
public final void setMaxDisplayDistance(double maxDisplayDistance)
maxDisplayDistance
- maximum distance to display labels for this serviceIllegalArgumentException
- if maxDisplayDistance
is less than the current minimum display
distancepublic final void setMinDisplayDistance(double minDisplayDistance)
minDisplayDistance
- minimum distance to display labels for this serviceIllegalArgumentException
- if minDisplayDistance
is less than the current maximum display
distancepublic final void unmarkResourceAbsent(long tileNumber)
public final String validate()
PlaceNameService
constructor arguments are valid.