public class Level extends AVListImpl implements Comparable<Level>
Modifier and Type | Field and Description |
---|---|
protected AbsentResourceList |
absentTiles |
protected boolean |
active |
protected String |
cacheName |
protected String |
dataset |
protected long |
expiryTime |
protected String |
formatSuffix |
protected String |
levelName |
protected int |
levelNumber |
protected AVList |
params |
protected String |
path |
protected 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(Object o) |
AbsentResourceList |
getAbsentTiles() |
String |
getCacheName() |
String |
getDataset() |
long |
getExpiryTime() |
String |
getFormatSuffix() |
String |
getLevelName() |
int |
getLevelNumber() |
AVList |
getParams() |
String |
getPath() |
String |
getService() |
double |
getTexelSize() |
LatLon |
getTileDelta() |
int |
getTileHeight() |
URL |
getTileResourceURL(Tile tile,
String imageFormat)
Returns the URL necessary to retrieve the specified tile.
|
int |
getTileWidth() |
Object |
getValue(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) |
Object |
setValue(String key,
Object value)
Adds a key/value pair to the list.
|
String |
toString() |
void |
unmarkResourceAbsent(long tileNumber) |
protected 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 String cacheName
protected String dataset
protected long expiryTime
protected String formatSuffix
protected String levelName
protected int levelNumber
protected AVList params
protected String path
protected 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 Comparable<Level>
public Sector computeSectorForPosition(Angle latitude, Angle longitude, LatLon tileOrigin)
public AbsentResourceList getAbsentTiles()
public String getCacheName()
public String getDataset()
public long getExpiryTime()
public String getFormatSuffix()
public String getLevelName()
public int getLevelNumber()
public AVList getParams()
public String getPath()
public String getService()
public double getTexelSize()
public LatLon getTileDelta()
public int getTileHeight()
public URL getTileResourceURL(Tile tile, String imageFormat) throws MalformedURLException
tile
- the tile who's resources will be retrieved.imageFormat
- a string identifying the mime type of the desired image formatMalformedURLException
- if the URL cannot be formed from the tile's parameters.IllegalArgumentException
- if tile
is null.public int getTileWidth()
public Object getValue(String key)
AVList
getValue
in interface AVList
getValue
in class AVListImpl
key
- the attribute name. May not be null
.null
.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 Object setValue(String key, 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 void unmarkResourceAbsent(long tileNumber)