public class TLcyKML22TreeModelObject extends Object
Represents a tree model object.
This class is used by the JTree created by the default TLcyKML22GUIFactory of the TLcyKML22AddOn
A tree model object acts a wrapper around an object that is part of the KML hierarchy. This object can be retrieved through the getTreeModelObject() method. An instance of this class also contains information on the model, layer and view that contain the object.
getTreeModelObject()
Constructor and Description |
---|
TLcyKML22TreeModelObject(Object aTreeModelObject,
ILcdModel aModel,
ILcdLayer aLayer,
ILcdView aView)
Creates a new tree model object
|
TLcyKML22TreeModelObject(Object aTreeModelObject,
ILcdModel aModel,
ILcdLayer aLayer,
ILcdView aView,
TLcyKML22TreeModelObject aParent)
Creates a new tree model object with given parent.
|
Modifier and Type | Method and Description |
---|---|
void |
addModelNodeContainerListener(ILcdModelContainerListener aModelContainerListener)
Adds a
ILCdModelContainerListener to this TLcyKML22TreeModelObject . |
void |
destroy()
Destroys this tree model object by removing all internal state.
|
boolean |
equals(Object o) |
List<TLcyKML22TreeModelObject> |
getChildren()
Gets the children of this
TLcyKML22TreeModelObject |
ILcdLayer |
getLayer()
Returns a layer that has the following properties:
|
ILcdModel |
getModel()
Returns a layer that has the following properties:
|
TLcyKML22TreeModelObject |
getParent()
Returns the parent of this
TLcyKML22TreeModelObject |
Object |
getTreeModelObject()
Returns an object that represents an element in the model content tree of KML.
|
ILcdView |
getView()
Returns a layer that has the following properties:
|
int |
hashCode() |
void |
removeModelNodeContainerListener(ILcdModelContainerListener aModelContainerListener)
Removes a
ILcdModelContainerListener from this TLcyKML22TreeModelObject . |
public TLcyKML22TreeModelObject(Object aTreeModelObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView)
Creates a new tree model object
aTreeModelObject
- A tree model object. See getTreeModelObject() for more information.aModel
- A model that is directly contained by aLayer
. This is always an instance of TLcdKML22RenderableModelaLayer
- A KML layeraView
- A view that directly contains aLayer
public TLcyKML22TreeModelObject(Object aTreeModelObject, ILcdModel aModel, ILcdLayer aLayer, ILcdView aView, TLcyKML22TreeModelObject aParent)
aTreeModelObject
- A tree model object. See getTreeModelObject() for more information.aModel
- A model that is directly contained by aLayer
. This is always an instance of TLcdKML22RenderableModelaLayer
- A KML layeraView
- A view that directly contains aLayer
aParent
- The parent node of this TLcyKML22TreeModelObject
public Object getTreeModelObject()
Returns an object that represents an element in the model content tree of KML.
This is always one of the following:
GroundOverlay
s.
public ILcdLayer getLayer()
Returns a layer that has the following properties:
ILcdView
returned by getView() ILcdModel
returned by getModel()public ILcdModel getModel()
Returns a layer that has the following properties:
ILcdLayer
returned by getLayer() ()} public ILcdView getView()
Returns a layer that has the following properties:
ILcdLyaer
returned by getLayer() ()}public TLcyKML22TreeModelObject getParent()
Returns the parent of this TLcyKML22TreeModelObject
TLcyKML22TreeModelObject
; null if this node is
the root node and has no parent.public List<TLcyKML22TreeModelObject> getChildren()
Gets the children of this TLcyKML22TreeModelObject
If a child is added or removed, this list should be updated as well
TLcyKML22TreeModelObject
public void addModelNodeContainerListener(ILcdModelContainerListener aModelContainerListener)
ILCdModelContainerListener
to this TLcyKML22TreeModelObject
. The
model container listener will be given ModelNodeContainerEvent
instances.aModelContainerListener
- a model container listenerpublic void removeModelNodeContainerListener(ILcdModelContainerListener aModelContainerListener)
ILcdModelContainerListener
from this TLcyKML22TreeModelObject
.aModelContainerListener
- a model container listeneraddModelNodeContainerListener(com.luciad.model.ILcdModelContainerListener)
public void destroy()