gov.nasa.worldwind.layers.placename
Class PlaceNameService
java.lang.Object
gov.nasa.worldwind.layers.placename.PlaceNameService
public class PlaceNameService
- extends Object
PlaceNameService
public PlaceNameService(String service,
String dataset,
String fileCachePath,
Sector sector,
LatLon tileDelta,
Font font)
- Parameters:
service - dataset - fileCachePath - sector - tileDelta - font -
- Throws:
IllegalArgumentException - if any parameter is null
createFileCachePathFromTile
public String createFileCachePathFromTile(int row,
int column)
- Parameters:
row - column -
- Returns:
-
- Throws:
IllegalArgumentException - if either row or column is less than zero
createServiceURLFromSector
public URL createServiceURLFromSector(Sector sector)
throws MalformedURLException
- Parameters:
sector -
- Returns:
-
- Throws:
MalformedURLException
IllegalArgumentException - if sector is null
deepCopy
public final PlaceNameService deepCopy()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
getBackgroundColor
public final Color getBackgroundColor()
getColor
public final Color getColor()
getDataset
public final String getDataset()
getExtent
public final Extent getExtent(DrawContext dc)
- Parameters:
dc -
- Returns:
-
- Throws:
IllegalArgumentException - if dc is null
getFileCachePath
public final String getFileCachePath()
getFont
public final Font getFont()
getMaxDisplayDistance
public final double getMaxDisplayDistance()
getMinDisplayDistance
public final double getMinDisplayDistance()
getSector
public final Sector getSector()
getService
public final String getService()
getTileDelta
public final LatLon getTileDelta()
getTileNumber
public long getTileNumber(int row,
int column)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
isEnabled
public final boolean isEnabled()
isResourceAbsent
public final boolean isResourceAbsent(long resourceNumber)
markResourceAbsent
public final void markResourceAbsent(long tileNumber)
setBackgroundColor
public final void setBackgroundColor(Color backgroundColor)
setColor
public final void setColor(Color color)
- Parameters:
color -
- Throws:
IllegalArgumentException - if color is null
setEnabled
public final void setEnabled(boolean enabled)
setMaxDisplayDistance
public final void setMaxDisplayDistance(double maxDisplayDistance)
- Parameters:
maxDisplayDistance -
- Throws:
IllegalArgumentException - if maxDisplayDistance is less than the current minimum display
distance
setMinDisplayDistance
public final void setMinDisplayDistance(double minDisplayDistance)
- Parameters:
minDisplayDistance -
- Throws:
IllegalArgumentException - if minDisplayDistance is less than the current maximum display
distance
unmarkResourceAbsent
public final void unmarkResourceAbsent(long tileNumber)
validate
public final String validate()
- Determines if this
PlaceNameService' constructor arguments are valid.
- Returns:
- null if valid, otherwise a
String containing a description of why it is invalid.