Class AsyncImage

java.lang.Object
java.util.concurrent.atomic.AtomicReference<org.eclipse.swt.graphics.ImageData>
org.eclipse.nebula.widgets.geomap.internal.AsyncImage
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable

class AsyncImage
extends java.util.concurrent.atomic.AtomicReference<org.eclipse.swt.graphics.ImageData>
implements java.lang.Runnable
An async image that loads itself in the background on an image-fetcher thread. Once its loaded it will trigger a redraw. Sometimes redraws that are not really necessary can be triggered, but that is not relevant in terms of performance for this swt-component.
  • Constructor Summary

    Constructors 
    Constructor Description
    AsyncImage​(GeoMapHelper geoMapHelper, TileRef tile, java.lang.String tileUrl)  
  • Method Summary

    Modifier and Type Method Description
    void dispose()  
    org.eclipse.swt.graphics.Image getImage​(org.eclipse.swt.widgets.Display display)  
    void run()  

    Methods inherited from class java.util.concurrent.atomic.AtomicReference

    accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface java.lang.Runnable
    • getImage

      public org.eclipse.swt.graphics.Image getImage​(org.eclipse.swt.widgets.Display display)
    • dispose

      public void dispose()