NASA World Wind

gov.nasa.worldwind.util
Class Level

java.lang.Object
  extended by gov.nasa.worldwind.util.Level
All Implemented Interfaces:
java.lang.Comparable<Level>

public class Level
extends java.lang.Object
implements java.lang.Comparable<Level>


Constructor Summary
Level(AVList params)
           
 
Method Summary
 int compareTo(Level that)
           
 Sector computeSectorForPosition(Angle latitude, Angle longitude)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getCacheName()
           
 java.lang.String getDataset()
           
 long getExpiryTime()
           
 java.lang.String getFormatSuffix()
           
 java.lang.String getLevelName()
           
 int getLevelNumber()
           
 AVList getParams()
           
 java.lang.String getPath()
           
 java.lang.String getService()
           
 double getTexelSize(double radius)
           
 LatLon getTileDelta()
           
 int getTileHeight()
           
 java.net.URL getTileResourceURL(Tile tile, java.lang.String imageFormat)
          Returns the URL necessary to retrieve the specified tile.
 int getTileWidth()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isEmpty()
           
 boolean isResourceAbsent(long tileNumber)
           
 void markResourceAbsent(long tileNumber)
           
 void setActive(boolean active)
           
 void setExpiryTime(long expiryTime)
           
 java.lang.String toString()
           
 void unmarkResourceAbsent(long tileNumber)
           
protected  java.lang.String validate(AVList params)
          Determines whether the constructor arguments are valid.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Level

public Level(AVList params)
Method Detail

compareTo

public int compareTo(Level that)
Specified by:
compareTo in interface java.lang.Comparable<Level>

computeSectorForPosition

public Sector computeSectorForPosition(Angle latitude,
                                       Angle longitude)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getCacheName

public final java.lang.String getCacheName()

getDataset

public final java.lang.String getDataset()

getExpiryTime

public final long getExpiryTime()

getFormatSuffix

public final java.lang.String getFormatSuffix()

getLevelName

public java.lang.String getLevelName()

getLevelNumber

public final int getLevelNumber()

getParams

public final AVList getParams()

getPath

public java.lang.String getPath()

getService

public final java.lang.String getService()

getTexelSize

public final double getTexelSize(double radius)

getTileDelta

public LatLon getTileDelta()

getTileHeight

public final int getTileHeight()

getTileResourceURL

public java.net.URL getTileResourceURL(Tile tile,
                                       java.lang.String imageFormat)
                                throws java.net.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:
java.net.MalformedURLException - if the URL cannot be formed from the tile's parameters.
java.lang.IllegalArgumentException - if tile is null.

getTileWidth

public final int getTileWidth()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

unmarkResourceAbsent

public final void unmarkResourceAbsent(long tileNumber)

validate

protected java.lang.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.

NASA World Wind