/** * Constructs an entry using the globe and vertical exaggeration of a specified draw context. * * @param dc the draw context. Must contain a globe. * @param minExpiryTime the minimum expiration duration, in milliseconds. * @param maxExpiryTime the maximum expiration duration, in milliseconds. * * @throws ArgumentException if the draw context is null. */ public ShapeDataCacheEntry(DrawContext dc, long minExpiryTime, long maxExpiryTime) { this.timer = new TimedExpirySupport(Math.Max(minExpiryTime, 0), Math.Max(maxExpiryTime, 0)); this.globeStateKey = dc != null?dc.getGlobe().getGlobeStateKey(dc) : null; this.verticalExaggeration = dc != null?dc.getVerticalExaggeration() : 1d; }
/** * Specifies this entry's expiration timer. * * @param timer the new expiration timer. */ public void setTimer(TimedExpirySupport timer) { this.timer = timer; }