Class TLspLayerTreeNode
- All Implemented Interfaces:
ILcdPropertyChangeSource
,ILcdSelection<Object>
,ILcdLayer
,ILcdLayered
,ILcdLayerTreeNode
,ILspSnappable
,ILspEditableStyledLayer
,ILspInteractivePaintableLayer
,ILspLayer
,ILspPaintableLayer
,ILspStyledLayer
,Serializable
TLspLayer
that implements ILcdLayerTreeNode
and hence can also have child layers.- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.layer.ILspLayer
ILspLayer.LayerType
-
Constructor Summary
ConstructorDescriptionTLspLayerTreeNode
(ILcdModel aModel) Constructs a new layer tree node for the specified model.TLspLayerTreeNode
(ILcdModel aModel, String aLabel, ILspLayer.LayerType aLayerType) Initializes a newILcdLayerTreeNode
object with given model, label and layer type.TLspLayerTreeNode
(String aLabel) Constructs a new instance ofILcdLayerTreeNode
with labelaLabel
.TLspLayerTreeNode
(String aLabel, ILcdIcon aIcon) Constructs a new instance ofILcdLayerTreeNode
with labelaLabel
and iconaIcon
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHierarchyLayeredListener
(ILcdLayeredListener aListener) Registers the givenILcdLayeredListener
to receiveTLcdLayeredEvent
s from all theILcdLayerTreeNode
s contained in the tree with this node as root node.void
Registers the givenPropertyChangeListener
to receivePropertyChangeEvent
s from all theILcdLayer
s contained in the tree with this node as root node.void
Registers the givenILcdSelectionListener
to receiveTLcdSelectionChangedEvent
s from all theILcdLayer
s contained in the tree with this node as root node.boolean
Adds a new node to the tree as a child of this node.boolean
Adds a new node to the tree as a child of this node.void
addLayeredListener
(ILcdLayeredListener aListener) Registers the givenILcdLayeredListener
to be notified when layers are added, removed or moved.boolean
addLayers
(Collection<ILspLayer> aLayers) Adds multiple child layers to this tree node.boolean
containsLayer
(ILcdLayer aLayer) Returns whether thisILcdLayered
contains the given layer.Returns the initial layer index provider, which can be used to determine the best index when a layer is added without specifying an index.getLayer
(int aIndex) Returns theILcdLayer
in thisILcdLayered
with indexaIndex
.Returns aList
of the layers.Returns the layer type of the first layer in this layer tree node.int
Returns the index if the given layer is in the list.boolean
Returns whether the layer allows editing the content that it visualizes.boolean
Returnstrue
if the layer supports editing its objects.boolean
Returns whether a node should be painted on top of its children when the node is added to a view, or beneath its child layers.boolean
Returns whether the layer's objects can be selected, for example, by clicking on them.boolean
Returnstrue
if this layer supports selecting objects,false
otherwise.boolean
isSelected
(Object aObject) Checks whether the givenObject
is currently in the set of selected objects.int
Returns the number ofILcdLayer
objects in thisILcdLayered
.Returns theILcdLayer
of thisILcdLayered
that contains the givenILcdModel
.layers()
Returns anEnumeration
of allILcdLayer
objects currently in thisILcdLayered
, starting from the bottom layer to the top layer.Returns anEnumeration
of allILcdLayer
objects currently in thisILcdLayered
, starting from the top layer to the bottom layer.void
moveLayerAt
(int aIndex, ILcdLayer aLayer) Moves the given layer (which is already inILcdLayered
) to the existing index aIndex.void
Removes all theILcdLayer
objects from thisILcdLayered
.void
Unregisters the givenILcdLayeredListener
from receivingTLcdLayeredEvent
s for the tree with this node as root node.void
Unregisters the givenPropertyChangeListener
from receivingPropertyChangeEvent
s for the tree with this node as root node.void
Unregisters the givenILcdSelectionListener
from receivingTLcdSelectionChangedEvent
s for the tree with this node as root node.void
removeLayer
(int aIndex) Removes the node at indexaIndex
from this node and sends the appropriateTLcdLayeredEvent
.void
removeLayer
(ILcdLayer aLayer) Removes aLayer from thisILcdLayered
.void
removeLayeredListener
(ILcdLayeredListener aListener) Unregisters the givenILcdLayeredListener
from receiving layered events for theILcdLayered
.void
setInitialLayerIndexProvider
(ILcdInitialLayerIndexProvider aInitialLayerIndexProvider) Sets an initial layer index provider, which can be used to determine the best index when a layer is added without specifying an index.void
setPaintOnTopOfChildrenHint
(boolean aPaintOnTopOfChildrenHint) Sets whether a node should be painted on top of its children when the node is added to a view, or beneath its child layers.Methods inherited from class com.luciad.view.lightspeed.layer.TLspLayer
addEditingStateListener, addPaintRepresentation, configureForSLDStyling, createScaleRange, createScaleRange, editedObjectChanged, editedObjectsChanged, getBounds, getEditor, getEditors, getMapScaleProvider, getMapScaleRange, getMinimumObjectSizeForPainting, getModelQueryConfiguration, getObjectsWithPaintState, getObjectViewMargin, getObjectWorldMargin, getPainter, getPainters, getPaintRepresentations, getRequiredOpenGLProfile, getScaleRange, getStyler, isCulling, isSnapTarget, isSynchronizePainters, paint, query, registerView, removeEditingStateListener, removePaintRepresentation, setCulling, setEditor, setFilter, setMapScaleProvider, setMapScaleRange, setMinimumObjectSizeForPainting, setModel, setModelQueryConfiguration, setObjectViewMargin, setObjectWorldMargin, setPainter, setScaleRange, setSelectableSupported, setSnapTarget, setStyler, setSynchronizePainters, setVisible, setVisible, setVisible, toString, unregisterView
Methods inherited from class com.luciad.view.lightspeed.layer.ALspLayer
addLayerStateListener, addPropertyChangeListener, addSelectionListener, addStatusListener, clearSelection, createModelXYZWorldTransformation, fireCollectedSelectionChanges, fireLayerStateChange, fireLayerStateChange, fireLayerStateChange, fireLayerStateChange, firePropertyChange, fireStatusEvent, getCurrentViews, getFilter, getIcon, getLabel, getLayerStyle, getModel, getModelXYZWorldTransformation, getSelectionCount, invalidate, isEditable, isSynchronous, isVisible, isVisible, isVisible, removeLayerStateListener, removePropertyChangeListener, removeSelectionListener, removeStatusListener, selectedObjects, selectObject, selectObjects, setEditable, setEditable, setIcon, setLabel, setLayerStyle, setSelectable, setSynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.view.ILcdLayer
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isVisible, selectObject, setIcon, setLabel, setSelectable
Methods inherited from interface com.luciad.view.ILcdLayered
addLayeredListener, removeLayeredListener
Methods inherited from interface com.luciad.view.ILcdLayerTreeNode
addPropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.luciad.util.ILcdSelection
addSelectionListener, getSelectedObjects, getSelectionCount, removeSelectionListener, selectedObjects
Methods inherited from interface com.luciad.view.lightspeed.layer.ILspLayer
addLayerStateListener, addStatusListener, getCurrentViews, getLayerStyle, getModelXYZWorldTransformation, invalidate, isEditable, isVisible, isVisible, removeLayerStateListener, removeStatusListener, setEditable, setEditable, setLayerStyle
Methods inherited from interface com.luciad.view.lightspeed.editor.snapping.ILspSnappable
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLspLayerTreeNode
Constructs a new layer tree node for the specified model. The
layer label
will be the display name of the model descriptor, if available.The typical use-case for this method is an
ILspLayerFactory
which is creating a layer structure which matches the structure of an incomingILcdModelTreeNode
.@Override public Collection<ILspLayer> createLayers(ILcdModel aModel){ if (aModel instanceof ILcdModelTreeNode){ ILcdModelTreeNode modelNode = (ILcdModelTreeNode)aModel; TLspLayerTreeNode result = new TLspLayerTreeNode(aModel); for(int i = 0; i < modelNode.modelCount(); i++){ result.addLayers(createLayers(modelNode.getModel(i))); } return result; } else { ILspLayer layer = TLspShapeLayerBuilder.newBuilder().model(aModel).build(); return layer; } }
Note that the above snippet assumes that the
ILcdModelTreeNode
itself does not contain any data (the most common scenario). In case theILcdModelTreeNode
contains data which should be visualized, you need to configure the layer tree node just as you do for a regular layer: for example setting a painter.- Parameters:
aModel
- The model- Since:
- 2016.1
-
TLspLayerTreeNode
Constructs a new instance of
ILcdLayerTreeNode
with labelaLabel
. The node will be initialized with a default, empty model.The main use-case for this constructor is the same as for the
TLspLayerTreeNode(String, ILcdIcon)
constructor. Consult the documentation of that constructor for more information.- Parameters:
aLabel
- A short textual representation of this node
-
TLspLayerTreeNode
Constructs a new instance of
ILcdLayerTreeNode
with labelaLabel
and iconaIcon
. The node will be initialized with a default, empty model.The typical use-case for this method is if you want to add a node to the view for grouping purposes. For example, if you have have several raster background layers which you want to group under a node in the view, you can use this constructor to create such a grouping node.
ILspLayer[] rasterBackgroundLayers = ...; //create a node to group those background layers ILcdIcon icon = TLcdIconFactory.create(TLcdIconFactory.RASTER_LAYER_ICON); TLspLayerTreeNode node = new TLspLayerTreeNode("Background Data", icon); for(ILspLayer backgroundLayer : rasterBackgroundLayers){ node.addLayer(backgroundLayer); } view.addLayer(node);
- Parameters:
aLabel
- A short textual representation of this nodeaIcon
- A small visual representation of this node
-
TLspLayerTreeNode
Initializes a new
ILcdLayerTreeNode
object with given model, label and layer type.The main use-case for this constructor is the same as for the
TLspLayerTreeNode(ILcdModel)
constructor. Consult the documentation of that constructor for more information.- Parameters:
aModel
- the model that is to be added to the new layeraLabel
- the label of the new layeraLayerType
- theLayerType
of the new layer
-
-
Method Details
-
addLayers
Adds multiple child layers to this tree node.- Parameters:
aLayers
- the layers to add- Returns:
true
if all layers have been added,false
if the node already contained one of the layers
-
addLayer
Description copied from interface:ILcdLayerTreeNode
Adds a new node to the tree as a child of this node. This newly added node will normally be the last child node, but that can be implementation specific. Implementations could for example decide to use the initial layer index provider to determine the best index to add the layer. Notice that in order to avoid loops in the tree
aNewChildNode
must not already be an element of the tree. This method should also generate aTLcdLayeredEvent
to warn its listeners that a node has been added.- Specified by:
addLayer
in interfaceILcdLayerTreeNode
- Parameters:
aNewChildNode
- the node which must be added as a child- Returns:
true
when the layer was successfully added to this node,false
if the node already contained layeraNewChildNode
- Throws:
IllegalArgumentException
- when the node is already an element of the tree
-
addLayer
public boolean addLayer(ILcdLayer aNewChildNode, int aIndex) throws IndexOutOfBoundsException, IllegalArgumentException Description copied from interface:ILcdLayerTreeNode
Adds a new node to the tree as a child of this node. The child will be inserted at index
aIndex
in the child list of this node. Notice that in order to avoid loops in the treeaNewChildNode
must not already be an element of the tree. This method should also generate aTLcdLayeredEvent
to warn its listeners that a node has been added.- Specified by:
addLayer
in interfaceILcdLayerTreeNode
- Parameters:
aNewChildNode
- the new childaIndex
- the index in the child list of this node for the new child- Returns:
true
when the layer was successfully added to this node,false
if the node already contained layeraNewChildNode
- Throws:
IndexOutOfBoundsException
- whenindex >
ILcdLayerTreeNode.layerCount()
IllegalArgumentException
- when the node is already an element of the tree
-
removeLayer
Description copied from interface:ILcdLayered
Removes aLayer from thisILcdLayered
.- Specified by:
removeLayer
in interfaceILcdLayered
- Parameters:
aLayer
- the layer to remove.
-
removeLayer
public void removeLayer(int aIndex) Description copied from interface:ILcdLayerTreeNode
Removes the node at index
aIndex
from this node and sends the appropriateTLcdLayeredEvent
.- Specified by:
removeLayer
in interfaceILcdLayerTreeNode
- Parameters:
aIndex
- the index of the child node which has to be removed
-
getLayer
Description copied from interface:ILcdLayered
Returns theILcdLayer
in thisILcdLayered
with indexaIndex
.- Specified by:
getLayer
in interfaceILcdLayered
- Parameters:
aIndex
- the position of the layer to retrieve in theILcdLayered
.- Returns:
- the
ILcdLayer
in thisILcdLayered
with indexaIndex
. - Throws:
IndexOutOfBoundsException
-
getLayers
Description copied from interface:ILcdLayered
Returns aList
of the layers.- Specified by:
getLayers
in interfaceILcdLayered
- Returns:
- an unmodifiable
List
of the layers in thisILcdLayered
-
layerCount
public int layerCount()Description copied from interface:ILcdLayerTreeNode
Returns the number ofILcdLayer
objects in thisILcdLayered
.This number does not include this layer node. It is the number of child layers of this node that is returned.
- Specified by:
layerCount
in interfaceILcdLayered
- Specified by:
layerCount
in interfaceILcdLayerTreeNode
- Returns:
- the number of
ILcdLayer
objects in thisILcdLayered
.
-
layers
Description copied from interface:ILcdLayerTreeNode
Returns anEnumeration
of allILcdLayer
objects currently in thisILcdLayered
, starting from the bottom layer to the top layer.This enumeration does not include this layer node, but only the child layers.
- Specified by:
layers
in interfaceILcdLayered
- Specified by:
layers
in interfaceILcdLayerTreeNode
- Returns:
- an
Enumeration
of allILcdLayer
objects currently in thisILcdLayered
, starting from the bottom layer to the top layer.
-
moveLayerAt
Description copied from interface:ILcdLayered
Moves the given layer (which is already inILcdLayered
) to the existing index aIndex. When a layer is moved down, all layers in between the previous and future position of the given layer (including the layer at index aIndex) are moved one position up. When a layer is moved up, all layers in between the previous and future position of the given layer (including the layer at index aIndex) are moved one position down.More formally, let previousIndex be the index of
aLayer
before the move. If previousIndex < aIndex, then the index of allILcdLayer
objects in from previousIndex + 1 to aIndex is decremented with 1. If previousIndex > aIndex, then the index of allILcdLayer
objects in from aIndex to previousIndex -1 is incremented with 1.- Specified by:
moveLayerAt
in interfaceILcdLayered
- Parameters:
aIndex
- the index of the position where to move the layer.aLayer
- the layer to move.
-
indexOf
Description copied from interface:ILcdLayered
Returns the index if the given layer is in the list.- Specified by:
indexOf
in interfaceILcdLayered
- Parameters:
aLayer
- the layer whose index to return- Returns:
- the index of
aLayer
-
addLayeredListener
Description copied from interface:ILcdLayerTreeNode
Registers the given
ILcdLayeredListener
to be notified when layers are added, removed or moved.In case you need to register a listener which keeps a reference to an object with a shorter life-time than this layered, you can use a
ALcdWeakLayeredListener
instance as layered listener.This layer will only be informed when child layers are added, removed or moved in this layer node. To receive the events of the whole hierarchical structure, the listener must be added as a hierarchical listener (see
ILcdLayerTreeNode.addHierarchyLayeredListener(ILcdLayeredListener)
).- Specified by:
addLayeredListener
in interfaceILcdLayered
- Specified by:
addLayeredListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener that from now on will be notified of all changes to theILcdLayered
- See Also:
-
removeLayeredListener
Description copied from interface:ILcdLayerTreeNode
Unregisters the givenILcdLayeredListener
from receiving layered events for theILcdLayered
.It is not possible to remove a hierarchy listener with this method. Use
ILcdLayerTreeNode.removeHierarchyLayeredListener(ILcdLayeredListener)
for this purpose.- Specified by:
removeLayeredListener
in interfaceILcdLayered
- Specified by:
removeLayeredListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener that will no longer be notified of changes to theILcdLayered
- See Also:
-
addHierarchyLayeredListener
Description copied from interface:ILcdLayerTreeNode
Registers the given
ILcdLayeredListener
to receiveTLcdLayeredEvent
s from all theILcdLayerTreeNode
s contained in the tree with this node as root node. If the listener should only receive events for changes occurring in this node, it should be registered as a regular listener (seeILcdLayerTreeNode.addLayeredListener(ILcdLayeredListener)
.The source
ILcdLayered
of the event can be retrieved by callingTLcdLayeredEvent.getLayered()
on the receivedTLcdLayeredEvent
.- Specified by:
addHierarchyLayeredListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener
-
removeHierarchyLayeredListener
Description copied from interface:ILcdLayerTreeNode
Unregisters the given
ILcdLayeredListener
from receivingTLcdLayeredEvent
s for the tree with this node as root node.- Specified by:
removeHierarchyLayeredListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener
-
addHierarchyPropertyChangeListener
Description copied from interface:ILcdLayerTreeNode
Registers the given
PropertyChangeListener
to receivePropertyChangeEvent
s from all theILcdLayer
s contained in the tree with this node as root node. If the listener should only receive events for changes occurring in this layer, it should be registered as a regular listener (seeILcdLayerTreeNode.addPropertyChangeListener(java.beans.PropertyChangeListener)
).The source layer of the event can be retrieved by calling
EventObject.getSource()
on the receivedPropertyChangeEvent
.- Specified by:
addHierarchyPropertyChangeListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener
-
removeHierarchyPropertyChangeListener
Description copied from interface:ILcdLayerTreeNode
Unregisters the given
PropertyChangeListener
from receivingPropertyChangeEvent
s for the tree with this node as root node.- Specified by:
removeHierarchyPropertyChangeListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener
-
addHierarchySelectionListener
Description copied from interface:ILcdLayerTreeNode
Registers the given
ILcdSelectionListener
to receiveTLcdSelectionChangedEvent
s from all theILcdLayer
s contained in the tree with this node as root node. If the listener should only receive events for selection changes occurring in this layer, it should be registered as a regular listener (seeILcdSelection.addSelectionListener(com.luciad.util.ILcdSelectionListener)
).The source layer of the event can be retrieved by calling
TLcdSelectionChangedEvent.getSelection()
on the receivedTLcdSelectionChangedEvent
.- Specified by:
addHierarchySelectionListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener
-
removeHierarchySelectionListener
Description copied from interface:ILcdLayerTreeNode
Unregisters the given
ILcdSelectionListener
from receivingTLcdSelectionChangedEvent
s for the tree with this node as root node.- Specified by:
removeHierarchySelectionListener
in interfaceILcdLayerTreeNode
- Parameters:
aListener
- the listener
-
removeAllLayers
public void removeAllLayers()Description copied from interface:ILcdLayerTreeNode
Removes all theILcdLayer
objects from thisILcdLayered
.This method will generate a
TLcdLayeredEvent
indicating a layer was removed for every child layer.- Specified by:
removeAllLayers
in interfaceILcdLayered
- Specified by:
removeAllLayers
in interfaceILcdLayerTreeNode
-
layersBackwards
Description copied from interface:ILcdLayerTreeNode
Returns anEnumeration
of allILcdLayer
objects currently in thisILcdLayered
, starting from the top layer to the bottom layer.This enumeration does not include this layer node, but only the child layers.
- Specified by:
layersBackwards
in interfaceILcdLayered
- Specified by:
layersBackwards
in interfaceILcdLayerTreeNode
- Returns:
- an
Enumeration
of allILcdLayer
objects currently in thisILcdLayered
, starting from the top layer to the bottom layer.
-
layerOf
Description copied from interface:ILcdLayered
Returns theILcdLayer
of thisILcdLayered
that contains the givenILcdModel
.- Specified by:
layerOf
in interfaceILcdLayered
- Parameters:
aModel
- the model to check for in thisILcdLayered
.- Returns:
- the
ILcdLayer
of thisILcdLayered
that contains the givenILcdModel
. - Throws:
NoSuchElementException
- if there is no layer containing the given model
-
containsLayer
Description copied from interface:ILcdLayerTreeNode
Returns whether thisILcdLayered
contains the given layer. More formally, returnstrue
if and only if theILcdLayered
contains at least one layerl
such that (aLayer==null ? l==null : aLayer.equals(l)).Calling this method with this node as parameter will return
false
, since this method only checks the child layers and not the layer node itself.- Specified by:
containsLayer
in interfaceILcdLayered
- Specified by:
containsLayer
in interfaceILcdLayerTreeNode
- Parameters:
aLayer
- the layer to check whether it is in this layered.- Returns:
- true if
aLayer
is in thisILcdLayered
, false otherwise.
-
setPaintOnTopOfChildrenHint
public void setPaintOnTopOfChildrenHint(boolean aPaintOnTopOfChildrenHint) Description copied from interface:ILcdLayerTreeNode
Sets whether a node should be painted on top of its children when the node is added to a view, or beneath its child layers. Notice that this is only a hint, hence the paint order of the node and its children is not guaranteed.
This property must be set before the node is added to the view. Otherwise it will have no effect. Changing it afterwards will have no effect, unless the node is removed and re-added to the view.
The default behavior is to paint nodes underneath the child layers.
- Specified by:
setPaintOnTopOfChildrenHint
in interfaceILcdLayerTreeNode
- Parameters:
aPaintOnTopOfChildrenHint
-true
when a node should be painted on top of its children,false
when the node should be painted underneath its child layers- See Also:
-
isPaintOnTopOfChildrenHint
public boolean isPaintOnTopOfChildrenHint()Description copied from interface:ILcdLayerTreeNode
Returns whether a node should be painted on top of its children when the node is added to a view, or beneath its child layers.
- Specified by:
isPaintOnTopOfChildrenHint
in interfaceILcdLayerTreeNode
- Returns:
true
when a node should be painted on top of its children,false
when the node should be painted underneath its child layers- See Also:
-
getInitialLayerIndexProvider
Description copied from interface:ILcdLayerTreeNode
Returns the initial layer index provider, which can be used to determine the best index when a layer is added without specifying an index.
It is however up to the implementation to decide whether it uses the
ILcdInitialLayerIndexProvider
.- Specified by:
getInitialLayerIndexProvider
in interfaceILcdLayerTreeNode
- Returns:
- the initial layer index provider. Can be
null
- See Also:
-
setInitialLayerIndexProvider
Description copied from interface:ILcdLayerTreeNode
Sets an initial layer index provider, which can be used to determine the best index when a layer is added without specifying an index.
- Specified by:
setInitialLayerIndexProvider
in interfaceILcdLayerTreeNode
- Parameters:
aInitialLayerIndexProvider
- The new initial layer index provider. May benull
- See Also:
-
isEditableSupported
public boolean isEditableSupported()Description copied from class:TLspLayer
Returnstrue
if the layer supports editing its objects. This implementation returns true if the layer has an editor.- Specified by:
isEditableSupported
in interfaceILcdLayer
- Overrides:
isEditableSupported
in classTLspLayer
- Returns:
true
- See Also:
-
isSelectableSupported
public boolean isSelectableSupported()Description copied from class:TLspLayer
Returnstrue
if this layer supports selecting objects,false
otherwise.- Specified by:
isSelectableSupported
in interfaceILcdLayer
- Overrides:
isSelectableSupported
in classTLspLayer
- Returns:
true
- See Also:
-
isSelectable
public boolean isSelectable()Description copied from interface:ILcdLayer
Returns whether the layer's objects can be selected, for example, by clicking on them.- Specified by:
isSelectable
in interfaceILcdLayer
- Overrides:
isSelectable
in classALspLayer
- Returns:
true
if the layer allows selection,false
otherwise.- See Also:
-
isEditable
public boolean isEditable()Description copied from interface:ILcdLayer
Returns whether the layer allows editing the content that it visualizes.- Specified by:
isEditable
in interfaceILcdLayer
- Overrides:
isEditable
in classALspLayer
- Returns:
true
if thisILcdLayer
is editable,false
otherwise- See Also:
-
isSelected
Description copied from interface:ILcdSelection
Checks whether the givenObject
is currently in the set of selected objects.- Specified by:
isSelected
in interfaceILcdSelection<Object>
- Overrides:
isSelected
in classALspLayer
- Parameters:
aObject
- theObject
to be checked.- Returns:
true
if theObject
is in thisILcdSelection
, false otherwise.- Throws:
IllegalArgumentException
-
getLayerType
Returns the layer type of the first layer in this layer tree node.If this layer tree node is empty, returns
EDITABLE
.- Specified by:
getLayerType
in interfaceILspLayer
- Overrides:
getLayerType
in classTLspLayer
- Returns:
- The layer type of the first layer in this tree node, or
EDITABLE
if empty. - See Also:
-