gov.nasa.worldwind.util
Class Level
java.lang.Object
gov.nasa.worldwind.util.Level
- All Implemented Interfaces:
- Comparable<Level>
public class Level
- extends Object
- implements Comparable<Level>
Level
public Level(AVList params)
compareTo
public int compareTo(Level that)
- Specified by:
compareTo
in interface Comparable<Level>
computeSectorForPosition
public Sector computeSectorForPosition(Angle latitude,
Angle longitude)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getCacheName
public final String getCacheName()
getDataset
public final String getDataset()
getExpiryTime
public final long getExpiryTime()
getFormatSuffix
public final String getFormatSuffix()
getLevelName
public String getLevelName()
getLevelNumber
public final int getLevelNumber()
getParams
public final AVList getParams()
getPath
public String getPath()
getService
public final String getService()
getTexelSize
public final double getTexelSize(double radius)
getTileDelta
public LatLon getTileDelta()
getTileHeight
public final int getTileHeight()
getTileResourceURL
public URL getTileResourceURL(Tile tile,
String imageFormat)
throws MalformedURLException
- Returns the URL necessary to retrieve the specified tile.
- Parameters:
tile
- the tile who's resources will be retrieved.imageFormat
- a string identifying the mime type of the desired image format
- Returns:
- the resource URL.
- Throws:
MalformedURLException
- if the URL cannot be formed from the tile's parameters.
IllegalArgumentException
- if tile
is null.
getTileWidth
public final int getTileWidth()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isActive
public boolean isActive()
isEmpty
public final boolean isEmpty()
isResourceAbsent
public final boolean isResourceAbsent(long tileNumber)
markResourceAbsent
public final void markResourceAbsent(long tileNumber)
setActive
public void setActive(boolean active)
setExpiryTime
public void setExpiryTime(long expiryTime)
toString
public String toString()
- Overrides:
toString
in class Object
unmarkResourceAbsent
public final void unmarkResourceAbsent(long tileNumber)
validate
protected String validate(AVList params)
- Determines whether the constructor arguments are valid.
- Parameters:
params
- the list of parameters to validate.
- Returns:
- null if valid, otherwise a
String
containing a description of why it's invalid.