public class Level extends AVListImpl implements java.lang.Comparable<Level>
Modifier and Type | Field and Description |
---|---|
protected AbsentResourceList |
absentTiles |
protected boolean |
active |
protected java.lang.String |
cacheName |
protected java.lang.String |
dataset |
protected long |
expiryTime |
protected java.lang.String |
formatSuffix |
protected java.lang.String |
levelName |
protected int |
levelNumber |
protected AVList |
params |
protected java.lang.String |
path |
protected java.lang.String |
service |
protected double |
texelSize |
protected LatLon |
tileDelta |
protected int |
tileHeight |
protected int |
tileWidth |
protected TileUrlBuilder |
urlBuilder |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Level that) |
Sector |
computeSectorForPosition(Angle latitude,
Angle longitude,
LatLon tileOrigin) |
boolean |
equals(java.lang.Object o) |
AbsentResourceList |
getAbsentTiles() |
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() |
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() |
java.lang.Object |
getValue(java.lang.String key)
Returns the value for a specified key.
|
int |
hashCode() |
boolean |
isActive() |
boolean |
isEmpty() |
boolean |
isResourceAbsent(long tileNumber) |
void |
markResourceAbsent(long tileNumber) |
void |
setActive(boolean active) |
void |
setExpiryTime(long expTime) |
java.lang.Object |
setValue(java.lang.String key,
java.lang.Object value)
Adds a key/value pair to the list.
|
java.lang.String |
toString() |
void |
unmarkResourceAbsent(long tileNumber) |
protected java.lang.String |
validate(AVList params)
Determines whether the constructor arguments are valid.
|
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
protected AbsentResourceList absentTiles
protected boolean active
protected java.lang.String cacheName
protected java.lang.String dataset
protected long expiryTime
protected java.lang.String formatSuffix
protected java.lang.String levelName
protected int levelNumber
protected AVList params
protected java.lang.String path
protected java.lang.String service
protected double texelSize
protected LatLon tileDelta
protected int tileHeight
protected int tileWidth
protected TileUrlBuilder urlBuilder
public Level(AVList params)
public int compareTo(Level that)
compareTo
in interface java.lang.Comparable<Level>
public Sector computeSectorForPosition(Angle latitude, Angle longitude, LatLon tileOrigin)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public AbsentResourceList getAbsentTiles()
public java.lang.String getCacheName()
public java.lang.String getDataset()
public long getExpiryTime()
public java.lang.String getFormatSuffix()
public java.lang.String getLevelName()
public int getLevelNumber()
public AVList getParams()
public java.lang.String getPath()
public java.lang.String getService()
public double getTexelSize()
public LatLon getTileDelta()
public int getTileHeight()
public java.net.URL getTileResourceURL(Tile tile, java.lang.String imageFormat) throws java.net.MalformedURLException
tile
- the tile who's resources will be retrieved.imageFormat
- a string identifying the mime type of the desired image formatjava.net.MalformedURLException
- if the URL cannot be formed from the tile's parameters.java.lang.IllegalArgumentException
- if tile
is null.public int getTileWidth()
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 int hashCode()
hashCode
in class java.lang.Object
public boolean isActive()
public boolean isEmpty()
public boolean isResourceAbsent(long tileNumber)
public void markResourceAbsent(long tileNumber)
public void setActive(boolean active)
public void setExpiryTime(long expTime)
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 java.lang.String toString()
toString
in class java.lang.Object
public void unmarkResourceAbsent(long tileNumber)
protected java.lang.String validate(AVList params)
params
- the list of parameters to validate.String
containing a description of why it's invalid.