public static class ShapeDataCache.ShapeDataCacheEntry extends AVListImpl
| Modifier and Type | Field and Description | 
|---|---|
protected Extent | 
extent
Indicates the associated shape's extent, in model coordinates relative to the associated globe. 
 | 
protected double | 
eyeDistance
Indicates the eye distance of the shape in the globe-relative coordinate system. 
 | 
protected GlobeStateKey | 
globeStateKey
Identifies the associated globe's state at the time the entry was created. 
 | 
protected long | 
lastUsed
Indicates the last time, in milliseconds, the entry was requested or added. 
 | 
protected TimedExpirySupport | 
timer
Determines whether the cache entry has expired. 
 | 
protected double | 
timerAdjustedEyeDistance
Indicates the eye distance current when the cache entry's remaining time was last adjusted. 
 | 
protected double | 
verticalExaggeration
Indicates the vertical exaggeration in effect when the entry was cached. 
 | 
| Constructor and Description | 
|---|
ShapeDataCacheEntry(DrawContext dc,
                   long minExpiryTime,
                   long maxExpiryTime)
Constructs an entry using the globe and vertical exaggeration of a specified draw context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
adjustTimer(DrawContext dc,
           double newEyeDistance)
Adjust the timer's expiration time by comparing the cached eye distance to the current eye distance. 
 | 
Extent | 
getExtent()
Returns this entry's extent. 
 | 
double | 
getEyeDistance()
Indicates this entry's eye distance. 
 | 
GlobeStateKey | 
getGlobeStateKey()
Indicates this entry's globe state key, captured when this entry was constructed or when explicitly set. 
 | 
TimedExpirySupport | 
getTimer()
Returns this entry's expiration timer. 
 | 
double | 
getVerticalExaggeration()
Indicates this entry's vertical exaggeration, captured when the entry was constructed or when explicitly
 set. 
 | 
boolean | 
isExpired(DrawContext dc)
Indicates whether this entry has expired. 
 | 
boolean | 
isValid(DrawContext dc)
Indicates whether this shape data's globe state and vertical exaggeration are the same as that in the current
 draw context. 
 | 
void | 
restartTimer(DrawContext dc)
Resets the timer to the current time. 
 | 
void | 
setExpired(boolean isExpired)
Sets this entry's expiration state. 
 | 
void | 
setExtent(Extent extent)
Specifies this entry's extent. 
 | 
void | 
setEyeDistance(double eyeDistance)
Specifies this entry's eye distance. 
 | 
void | 
setGlobeStateKey(GlobeStateKey globeStateKey)
Specifies this entry's globe state key. 
 | 
void | 
setTimer(TimedExpirySupport timer)
Specifies this entry's expiration timer. 
 | 
void | 
setVerticalExaggeration(double verticalExaggeration)  | 
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected Extent extent
protected double eyeDistance
protected GlobeStateKey globeStateKey
protected long lastUsed
protected TimedExpirySupport timer
protected double timerAdjustedEyeDistance
protected double verticalExaggeration
public ShapeDataCacheEntry(DrawContext dc, long minExpiryTime, long maxExpiryTime)
dc - the draw context. Must contain a globe.minExpiryTime - the minimum expiration duration, in milliseconds.maxExpiryTime - the maximum expiration duration, in milliseconds.IllegalArgumentException - if the draw context is null.public void adjustTimer(DrawContext dc, double newEyeDistance)
dc - the current draw context.newEyeDistance - the current eye distance.public Extent getExtent()
public double getEyeDistance()
public GlobeStateKey getGlobeStateKey()
public TimedExpirySupport getTimer()
public double getVerticalExaggeration()
public boolean isExpired(DrawContext dc)
dc - the current draw context.public boolean isValid(DrawContext dc)
dc - the current draw context.public void restartTimer(DrawContext dc)
dc - the current draw context.IllegalArgumentException - if the draw context is null.public void setExpired(boolean isExpired)
isExpired - true to expire the entry, otherwise false.public void setExtent(Extent extent)
extent - the new extent. May be null.public void setEyeDistance(double eyeDistance)
eyeDistance - the eye distance, in meters.public void setGlobeStateKey(GlobeStateKey globeStateKey)
globeStateKey - the new globe state key.public void setTimer(TimedExpirySupport timer)
timer - the new expiration timer.public void setVerticalExaggeration(double verticalExaggeration)