Exemple #1
0
            /**
             * 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;
            }
Exemple #2
0
 /**
  * Specifies this entry's globe state key.
  *
  * @param globeStateKey the new globe state key.
  */
 public void setGlobeStateKey(GlobeStateKey globeStateKey)
 {
     this.globeStateKey = globeStateKey;
 }