Package com.luciad.view
Interface ILcdLayer
- All Superinterfaces:
ILcdPropertyChangeSource,ILcdSelection<Object>,Serializable
- All Known Subinterfaces:
ILcdGXYAsynchronousLayerWrapper,ILcdGXYEditableLabelsLayer,ILcdGXYLayer,ILcdGXYLayerList,ILcdLayerTreeNode,ILspEditableStyledLayer,ILspImageProjectionLayer,ILspInteractivePaintableLayer,ILspLayer,ILspPaintableLayer,ILspStyledLayer
- All Known Implementing Classes:
ALspLayer,TLcdGXYAsynchronousEditableLabelsLayerTreeNodeWrapper,TLcdGXYAsynchronousEditableLabelsLayerWrapper,TLcdGXYAsynchronousLayerTreeNodeWrapper,TLcdGXYAsynchronousLayerWrapper,TLcdGXYDensityLayer,TLcdGXYLayer,TLcdGXYLayerList,TLcdGXYLayerTreeNode,TLcdGXYLspAsynchronousLayerTreeNodeWrapper,TLcdGXYLspAsynchronousLayerWrapper,TLcdKML22GXYLayer,TLcdLayer,TLcdMapGeorefGridLayer,TLcdMapLonLatGridLayer,TLcdMGRSGridLayer,TLcdMultilevelGridLayer,TLcdPOLLayer,TLcdS52GXYCatalogueLayer,TLcdS52GXYCatalogueLayerList,TLcdS52GXYLayer,TLcdS52GXYLevelLayerList,TLcdUPSGridLayer,TLcdUTMGridLayer,TLcdVPFLayer,TLcdWMSProxyGXYLayer,TLcdXYGridLayer,TLcyAreaOfInterestLayer,TLcyDynamicLonLatGridLayer,TLcyPIMGXYLayer,TLcySnappableGXYLayer,com.luciad.internal.lucy.map.TLcyStyledSnappableGXYLayer,TLfnGXYVectorLayer,TLspGXYLayerAdapter,TLspGXYLayerTreeNodeAdapter,TLspLayer,TLspLayerTreeNode,TLspRasterLayer
Provides the combined representation in an 
ILcdView of the objects
in an ILcdModel. Extensions of this interface
will contain additional information how to represent (render) or edit
elements of an ILcdModel in "specialized" ILcdView
interfaces (for example, in a 2D or 3D view).
A layer has the following properties that can be changed:
- whether it will be
visiblein the view - whether its elements can be
selected - whether its elements can be
edited
ILcdView, and unselected in another.
The layer allows to subscribe for changes in these properties.
A layer can also be queried for selected elements.
The selection can be changed by calling selectObject(java.lang.Object, boolean, int), provided that the layer
supports it.

- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearSelection(int aDispatchEventMode) Deselect all the Objects in thisILcdLayer, i.e., the selection of thisILcdLayeris empty afterward.voidFires aTLcdSelectionChangedEventthat contains all the selection changes appended by successively callingselectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER).getIcon()Returns a visual indication of the contents of this layer.getLabel()A short textual representation of thisILcdLayer.getModel()booleanReturns whether the layer allows editing the content that it visualizes.booleanReturnstrueif the layer supports editing its objects.booleanReturns whether the layer's objects can be selected, for example, by clicking on them.booleanReturnstrueif this layer supports selecting objects,falseotherwise.booleanReturns whether or not the layer's content is painted.voidselectObject(Object aObject, boolean aSelection, int aDispatchEventMode) Changes the selection state of any element contained in theILcdModelthisILcdLayerrefers to.voidsetEditable(boolean aEditable) Sets whether the layer should allow editing the content that it visualizes.voidSets a visual indication of the contents of this layer.voidSets the textual representation of thisILcdLayer.voidsetSelectable(boolean aSelectable) Sets the Selectable property of thisILcdLayer.voidsetVisible(boolean aVisible) Sets whether or not the layer's content is painted.Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListenerMethods inherited from interface com.luciad.util.ILcdSelection
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
-
Method Details
-
getModel
ILcdModel getModel()- Returns:
- the
ILcdModelassociated to thisILcdLayer
-
isVisible
boolean isVisible()Returns whether or not the layer's content is painted.- Returns:
trueif the layer is visible,falseotherwise.- See Also:
-
setVisible
void setVisible(boolean aVisible) Sets whether or not the layer's content is painted.- Parameters:
aVisible-trueif the layer should be visible,falseotherwise.- See Also:
-
isSelectableSupported
boolean isSelectableSupported()Returnstrueif this layer supports selecting objects,falseotherwise.- Returns:
trueif thisILcdLayersupports the selectable property,falseotherwise. I.e. if thisILcdLayercan be put or not in a selectable mode.- See Also:
-
isSelectable
boolean isSelectable()Returns whether the layer's objects can be selected, for example, by clicking on them.- Returns:
trueif the layer allows selection,falseotherwise.- See Also:
-
setSelectable
void setSelectable(boolean aSelectable) Sets the Selectable property of thisILcdLayer. CheckisSelectableSupportedto see if the layer supports selection.- Parameters:
aSelectable-trueif the layer allows selection,falseotherwise.- See Also:
-
isEditableSupported
boolean isEditableSupported()Returnstrueif the layer supports editing its objects.- Returns:
trueif the layer supports editing,falseotherwise.- See Also:
-
isEditable
boolean isEditable()Returns whether the layer allows editing the content that it visualizes.- Returns:
trueif thisILcdLayeris editable,falseotherwise- See Also:
-
setEditable
void setEditable(boolean aEditable) Sets whether the layer should allow editing the content that it visualizes. CheckisEditableSupportedto see if the layer supports editing.- Parameters:
aEditable- true if the layer content can be edited- See Also:
-
selectObject
Changes the selection state of any element contained in theILcdModelthisILcdLayerrefers to. This method shall have an effect only if isSelectableSupported and isSelectable return true.- Parameters:
aObject- theObjectto select or deselect. The object should be in the model of this layer. The implementation of this method is not responsible for checking this.aSelection- the selection state,trueto select,falseto deselect.aDispatchEventMode- shall be one amongILcdFireEventMode.FIRE_NOW,ILcdFireEventMode.FIRE_LATER,ILcdFireEventMode.NO_EVENT- See Also:
-
fireCollectedSelectionChanges
void fireCollectedSelectionChanges()Fires aTLcdSelectionChangedEventthat contains all the selection changes appended by successively callingselectObject(Object, boolean, ILcdFireEventMode.FIRE_LATER). -
clearSelection
void clearSelection(int aDispatchEventMode) Deselect all the Objects in thisILcdLayer, i.e., the selection of thisILcdLayeris empty afterward.- Parameters:
aDispatchEventMode- shall be one amongILcdFireEventMode.FIRE_NOW,ILcdFireEventMode.FIRE_LATER,ILcdFireEventMode.NO_EVENT- See Also:
-
getLabel
String getLabel()A short textual representation of thisILcdLayer.- Returns:
- a short textual representation of this
ILcdLayer
-
setLabel
Sets the textual representation of thisILcdLayer.- Parameters:
aLabel- the the textual representation to use for thisILcdLayer.
-
getIcon
ILcdIcon getIcon()Returns a visual indication of the contents of this layer. For example, for a grid layer, an icon containing a grid could be used.- Returns:
- a visual indication of the contents of this layer.
-
setIcon
Sets a visual indication of the contents of this layer.- Parameters:
aIcon- a visual indication of the contents of this layer.- See Also:
-