public class LevelSet extends WWObjectImpl
Modifier and Type | Class and Description |
---|---|
static class |
LevelSet.SectorResolution |
Constructor and Description |
---|
LevelSet(AVList params) |
LevelSet(LevelSet source) |
Modifier and Type | Method and Description |
---|---|
Sector |
computeSectorForKey(TileKey key) |
Tile |
createTile(TileKey key) |
Level |
getFirstLevel() |
Level |
getLastLevel() |
Level |
getLastLevel(Angle latitude,
Angle longitude) |
Level |
getLastLevel(Sector sector) |
Level |
getLevel(int levelNumber) |
java.util.ArrayList<Level> |
getLevels() |
LatLon |
getLevelZeroTileDelta() |
Level |
getNextToLastLevel() |
int |
getNumLevels() |
Sector |
getSector() |
LevelSet.SectorResolution[] |
getSectorLevelLimits() |
LatLon |
getTileOrigin() |
java.lang.Object |
getValue(java.lang.String key)
Returns the value for a specified key.
|
boolean |
isFinalLevel(int levelNum) |
boolean |
isLevelEmpty(int levelNumber) |
boolean |
isResourceAbsent(Tile tile)
Indicates whether a tile has been marked as absent.
|
boolean |
isResourceAbsent(TileKey tileKey)
Indicates whether a tile has been marked as absent.
|
void |
markResourceAbsent(Tile tile)
Instructs the level set that a tile is likely to be absent.
|
void |
setExpiryTime(long expiryTime) |
java.lang.Object |
setValue(java.lang.String key,
java.lang.Object value)
Adds a key/value pair to the list.
|
void |
unmarkResourceAbsent(Tile tile)
Removes the absent-tile mark associated with a tile, if one is associatied.
|
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues
public LevelSet(AVList params)
public LevelSet(LevelSet source)
public final Level getFirstLevel()
public final Level getLastLevel()
public final Level getLevel(int levelNumber)
public final java.util.ArrayList<Level> getLevels()
public final LatLon getLevelZeroTileDelta()
public final Level getNextToLastLevel()
public final int getNumLevels()
public final Sector getSector()
public final LevelSet.SectorResolution[] getSectorLevelLimits()
public final LatLon getTileOrigin()
public java.lang.Object getValue(java.lang.String key)
AVList
getValue
in interface AVList
getValue
in class AVListImpl
key
- the attribute name. May not be null
.null
.public final boolean isFinalLevel(int levelNum)
public final boolean isLevelEmpty(int levelNumber)
public final boolean isResourceAbsent(Tile tile)
tile
- The tile in question.true
if the tile is marked absent, otherwise false
.java.lang.IllegalArgumentException
- if tile
is nullpublic final boolean isResourceAbsent(TileKey tileKey)
tileKey
- The key of the tile in question.true
if the tile is marked absent, otherwise false
.java.lang.IllegalArgumentException
- if tile
is nullpublic final void markResourceAbsent(Tile tile)
tile
- The tile to mark as having an absent resource.java.lang.IllegalArgumentException
- if tile
is nullpublic void setExpiryTime(long expiryTime)
public java.lang.Object setValue(java.lang.String key, java.lang.Object value)
AVList
setValue
in interface AVList
setValue
in class AVListImpl
key
- the attribute name. May not be null
.value
- the attribute value. May be null
, in which case any existing value for the key is
removed from the collection.public final void unmarkResourceAbsent(Tile tile)
tile
- The tile to unmark.java.lang.IllegalArgumentException
- if tile
is null