NASA World Wind

gov.nasa.worldwind.util
Class TileKey

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

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


Constructor Summary
TileKey(Angle latitude, Angle longitude, Level level)
           
TileKey(int level, int row, int col, java.lang.String cacheName)
           
TileKey(Tile tile)
           
 
Method Summary
 int compareTo(TileKey key)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getCacheName()
           
 int getColumn()
           
 int getLevelNumber()
           
 int getRow()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TileKey

public TileKey(Angle latitude,
               Angle longitude,
               Level level)
Parameters:
latitude -
longitude -
level -
Throws:
java.lang.IllegalArgumentException - if any parameter is null

TileKey

public TileKey(int level,
               int row,
               int col,
               java.lang.String cacheName)
Parameters:
level -
row -
col -
cacheName -
Throws:
java.lang.IllegalArgumentException - if level, row or column is negative or if cacheName is null or empty

TileKey

public TileKey(Tile tile)
Parameters:
tile -
Throws:
java.lang.IllegalArgumentException - if tile is null
Method Detail

compareTo

public final int compareTo(TileKey key)
Specified by:
compareTo in interface java.lang.Comparable<TileKey>
Parameters:
key -
Returns:
Throws:
java.lang.IllegalArgumentException - if key is null

equals

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

getCacheName

public java.lang.String getCacheName()

getColumn

public int getColumn()

getLevelNumber

public int getLevelNumber()

getRow

public int getRow()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

NASA World Wind