Package com.luciad.format.dafif.gui
Class TLcdDAFIFLoaderViewAdapter
java.lang.Object
com.luciad.format.dafif.gui.TLcdDAFIFLoaderViewAdapter
- All Implemented Interfaces:
ILcdDAFIFLoaderListener
,ILcdDAFIFLoaderViewAdapter
,ILcdLayeredListener
,Serializable
,EventListener
This adapter listens to the TLcdDAFIFLoader and adds/removes models to its view when models
are added/removed by the TLcdDAFIFLoader.
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdDAFIFLoaderViewAdapter
(TLcdDAFIFLoader aDAFIFLoader, ILcdGXYView aGXYView, ILcdGXYLayerFactory aLayerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dafifLoaderChanged
(TLcdDAFIFLoaderEvent aDAFIFLoaderEvent) If models are added/removed by the DAFIF Loader, they are added/removed to/from the view.void
If a LAYER_REMOVED event is received, the model is passed to the DAFIF loader to allow it to check whether it was a DAFIF model and its internal state should be updated.
-
Constructor Details
-
TLcdDAFIFLoaderViewAdapter
public TLcdDAFIFLoaderViewAdapter(TLcdDAFIFLoader aDAFIFLoader, ILcdGXYView aGXYView, ILcdGXYLayerFactory aLayerFactory)
-
-
Method Details
-
dafifLoaderChanged
If models are added/removed by the DAFIF Loader, they are added/removed to/from the view. WARNING : this is called from the TLcdDAFIFLoader udpate thread hence view modification should be 'offloaded' in the event queue.- Specified by:
dafifLoaderChanged
in interfaceILcdDAFIFLoaderListener
- Parameters:
aDAFIFLoaderEvent
- The event object.
-
layeredStateChanged
If a LAYER_REMOVED event is received, the model is passed to the DAFIF loader to allow it to check whether it was a DAFIF model and its internal state should be updated.- Specified by:
layeredStateChanged
in interfaceILcdLayeredListener
-