Package com.luciad.view.gxy
Class TLcdGXYLayerList
java.lang.Object
com.luciad.view.gxy.TLcdGXYLayerList
- All Implemented Interfaces:
ILcdPropertyChangeSource
,ILcdSelection<Object>
,ILcdGXYLayer
,ILcdGXYLayerList
,ILcdLayer
,Serializable
- Direct Known Subclasses:
TLcdS52GXYCatalogueLayerList
,TLcdS52GXYLevelLayerList
Deprecated.
Default implementation of a
ILcdGXYLayerList
.
It provides functionality to:
- listen to property changes of the list, even if these are caused by the sublayers,
- listen to selection changes of any sublayer in the list,
- set properties of the list, which are applied to all sublayers,
- poll properties of the list, which are combined values of the sublayers.
Since a layer list is an implementation of ILcdGXYLayer
, it is regarded as such by the view to which
it is added. Some care should thus be taken for certain operations:
- Polling property values should be done on the layer list level. For example, this implementation will return true for the visible property when one of the sublayers is visible. However, it is still possible that some of the sublayers are invisible.
- Setting property values may be done on the sublayer, but there may be no effect on the layer list properties. For example: setting a sublayer invisible, while other sublayers are still visible will not change the value of the visible property for the list.
- Listeners should be added to the layer list. This implementation ensures that the proper listeners are added to the sublayers. Adding a listener to a sublayer will prevent notification of changes in other sublayers. Adding a listener to both the sublayer and the layer list will notify the listeners of the same change twice.
By overriding the method canAddSubGXYLayer(ILcdGXYLayer)
method the layers to add to this list can be
restricted, which would for example enable the creation of a layer list that represents a theme.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
Deprecated.Indicates whether tracing information should be generated on the log or not. -
Constructor Summary
ConstructorDescriptionDeprecated.Creates a layer list with no layers.TLcdGXYLayerList
(TLcdModelList aModelList, ILcdGXYLayerFactory aGXYLayerFactory) Deprecated.Constructor to create a TLcdGXYLayerList based on an existing TLcdModelList. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aListener) Deprecated.Adds a listener that will be notified of any changes of properties of this list.void
addSelectionListener
(ILcdSelectionListener aListener) Deprecated.Adds a listener that will be notified of changes to the selection of sublayers in this list.void
addSubGXYLayer
(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Adds the givenILcdGXYLayer
as a sublayer to thisILcdGXYLayerList
.void
addSubGXYLayer
(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) Deprecated.Adds the givenILcdGXYLayer
as a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not.int
applyOnInteract
(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView) Deprecated.Passes the function to apply to all of the visible sub layers as long as the function returns true for objects in that sublayer.boolean
canAddSubGXYLayer
(ILcdGXYLayer aSubGXYLayer) Deprecated.Returns whether the sublayer can be added, meaning it has the sameILcdModelXYWorldTransfo
class set as the layers already in the list, and itsILcdModel
has the sameILcdModelReference
.void
clearSelection
(int aDispatchEventMode) Deprecated.Clears the selection on all sublayers.boolean
containsSubGXYLayer
(ILcdGXYLayer aSubGXYLayer) Deprecated.Checks whether the sublayer is in thisILcdGXYLayerList
.void
Deprecated.Fires events for all selection events collected by all sublayers.protected void
Deprecated.Fire an existing PropertyChangeEvent to any registered listeners.getBounds
(int aMode, ILcdGXYView aGXYView) Deprecated.Returns the union of the bounds of the sublayers.getGXYEditor
(Object aObject) Deprecated.Finds a suitable editor for the given object by requesting the sublayers for a suitable editor.getGXYLabelPainter
(Object aObject) Deprecated.Finds a suitable label painter for the given object by requesting the sublayers for a suitable label painter.getGXYPainter
(Object aObject) Deprecated.Finds a suitable painter for the given object by requesting the sublayers for a suitable painter.Deprecated.Returns the pen used for all basic drawing operations for all sublayers.getIcon()
Deprecated.Returns a small graphical representation for this layer list.getLabel()
Deprecated.Returns the short textual representation for this list.Deprecated.Returns the union of all label scale ranges of the sublayers.getModel()
Deprecated.Returns a model list that contains all models of the layers in this list as submodels.Deprecated.Returns the class of the transformation used to transform model coordinates to view coordinates.getObjectInLayerFilter
(ILcdGXYLayer aSubGXYLayer) Deprecated.Returns the filter used to find objects in the given sublayer.Deprecated.Returns the union of all scale ranges of the sublayers.int
Deprecated.Returns the sum of all selection counts of all sublayers.getSubGXYLayer
(int aIndex) Deprecated.Returns the sublayer at the location with the given index in the list.int
Deprecated.Returns the number of sublayers in thisILcdGXYLayerList
.int
indexOf
(ILcdGXYLayer aSubGXYLayer) Deprecated.Gets the index of the given sublayer.void
insertSubGXYLayerAt
(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Inserts the givenILcdGXYLayer
as a sublayer at the given index.void
insertSubGXYLayerAt
(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) Deprecated.Inserts the givenILcdGXYLayer
as a sublayer at the given index, accompanied by a filter to determine whether an object is in the sublayers model or not.boolean
Deprecated.Returns whether at least one of the sublayers is editable.boolean
Deprecated.Returns whether at least one of the sublayers supports editing.boolean
Deprecated.Returns whether at least one of the sublayers is labeled.boolean
Deprecated.Returns whether at least one of the sublayers supports labeling.protected boolean
isObjectInLayer
(Object aObject, ILcdGXYLayer aGXYLayer) Deprecated.Determines if the given layers model contains the given object, by checking if the object passes the filter associated with the layer.boolean
Deprecated.Returns whether at least one of the sublayers is selectable.boolean
Deprecated.Returns whether at least on the sublayers supports selection.boolean
isSelected
(Object aObject) Deprecated.Returns whether an object is selected in any of the sublayers.boolean
Deprecated.Returns whether at least one of the sublayers is visible.void
moveSubGXYLayerAt
(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Moves the givenILcdGXYLayer
at the given index.void
paint
(Graphics aGraphics, int aMode, ILcdGXYView aGXYView) Deprecated.Paints all sublayers, one by one.void
removeAllSubGXYLayers
(boolean aIsAdjusting) Deprecated.Removes all sublayers from this list.void
Deprecated.Removes a listener that will no longer be notified of any changes of properties of this list.void
removeSelectionListener
(ILcdSelectionListener aListener) Deprecated.Removes a listener that will no longer be notified of changes to the selection of sublayers in this list.void
removeSubGXYLayer
(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Removes the sublayer from this list.Deprecated.Returns a collection of all selected objects in all sublayers.void
selectObject
(Object aObject, boolean aSelection, int aDispatchEventMode) Deprecated.Selects or deselects an object in the last sublayer in which it appears.void
setEditable
(boolean aEditable) Deprecated.Sets all sublayers editable.void
setGXYPen
(ILcdGXYPen aGXYPen) Deprecated.The pen to use for all basic drawing operations for all sublayers.void
Deprecated.Sets the small graphical representation for this layer list.void
Deprecated.Sets the short textual representation for this list.void
setLabeled
(boolean aLabeled) Deprecated.Sets all sublayers labeled or not labeled.void
setSelectable
(boolean aSelectable) Deprecated.Sets all sublayers selectable at once.void
setVisible
(boolean aVisible) Deprecated.Sets the visibility of all sublayers at once.void
Deprecated.Stops painting on all sublayers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYLayer
getLabelMapScaleRange, getMapScaleRange
Methods inherited from interface com.luciad.util.ILcdSelection
getSelectedObjects
-
Field Details
-
TRACEON
public static boolean TRACEONDeprecated.Indicates whether tracing information should be generated on the log or not.
-
-
Constructor Details
-
TLcdGXYLayerList
public TLcdGXYLayerList()Deprecated.Creates a layer list with no layers. Note that in order to render this list, at least the pen should be set.- See Also:
-
TLcdGXYLayerList
Deprecated.Constructor to create a TLcdGXYLayerList based on an existing TLcdModelList. The layers for the individual models of the model set are created using the given layer factory. Only layers which passcanAddSubGXYLayer(ILcdGXYLayer)
will be added. Note that in order to render this list, the pen should be set explicitly withsetGXYPen(ILcdGXYPen)
.- Parameters:
aModelList
- Model set for which the layer list has to be created.aGXYLayerFactory
- Layer factory for creating layers for the individual models of the set.- See Also:
-
-
Method Details
-
firePropertyChange
Deprecated.Fire an existing PropertyChangeEvent to any registered listeners.- Parameters:
aEvent
- The PropertyChangeEvent object.
-
getSubGXYLayerCount
public int getSubGXYLayerCount()Deprecated.Description copied from interface:ILcdGXYLayerList
Returns the number of sublayers in thisILcdGXYLayerList
.- Specified by:
getSubGXYLayerCount
in interfaceILcdGXYLayerList
- Returns:
- the number of sublayers in this
ILcdGXYLayerList
.
-
addSubGXYLayer
public void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Adds the givenILcdGXYLayer
as a sublayer to thisILcdGXYLayerList
. This implementation delegates toaddSubGXYLayer(ILcdGXYLayer, com.luciad.util.ILcdFilter, boolean)
with a null filter.- Specified by:
addSubGXYLayer
in interfaceILcdGXYLayerList
- Parameters:
aSubGXYLayer
- theILcdGXYLayer
to add to the list.aIsAdjusting
- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException
- if the layer could not be added when failingcanAddSubGXYLayer(ILcdGXYLayer)
.- See Also:
-
addSubGXYLayer
public void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Adds the givenILcdGXYLayer
as a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not. Note that this can have an influence on the properties of the layer list. For example, when all sublayers currently in the list are not visible, but the sublayer to be added is visible, the layer list property visible will change from false to true.- Specified by:
addSubGXYLayer
in interfaceILcdGXYLayerList
- Parameters:
aSubGXYLayer
- theILcdGXYLayer
to add to the list.aObjectInLayerFilter
- theILcdFilter
used to determine if an object is contained in this layer.aIsAdjusting
- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException
- if the layer could not be added when failingcanAddSubGXYLayer(ILcdGXYLayer)
.- See Also:
-
insertSubGXYLayerAt
public void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Inserts the givenILcdGXYLayer
as a sublayer at the given index. This implementation delegates toinsertSubGXYLayerAt(int, ILcdGXYLayer, com.luciad.util.ILcdFilter, boolean)
with a null filter.- Specified by:
insertSubGXYLayerAt
in interfaceILcdGXYLayerList
- Parameters:
aIndex
- the index of the location in the list where this layer should be placed.aSubGXYLayer
- theILcdGXYLayer
to insert into the list.aIsAdjusting
- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException
- will be thrown if thisILcdGXYLayerList
contains at least oneILcdGXYLayer
and theILcdModelXYWorldTransfo
class are different.
-
insertSubGXYLayerAt
public void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Inserts the givenILcdGXYLayer
as a sublayer at the given index, accompanied by a filter to determine whether an object is in the sublayers model or not. Note that this can have an influence on the properties of the layer list. For example, when all sublayers currently in the list are not visible, but the sublayer to be inserted is visible, the layer list property visible will change from false to true.- Specified by:
insertSubGXYLayerAt
in interfaceILcdGXYLayerList
- Parameters:
aIndex
- the index of the location in the list where this layer should be placed.aSubGXYLayer
- the sublayer.aObjectInLayerFilter
- theILcdFilter
used to determine if an object is contained in this layer.aIsAdjusting
- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException
- if the layer could not be added when failingcanAddSubGXYLayer(ILcdGXYLayer)
.- See Also:
-
canAddSubGXYLayer
Deprecated.Returns whether the sublayer can be added, meaning it has the sameILcdModelXYWorldTransfo
class set as the layers already in the list, and itsILcdModel
has the sameILcdModelReference
. This method is called from all methods adding or inserting sublayers to the layer list.- Parameters:
aSubGXYLayer
- the sublayer.- Returns:
- true if the sublayers model has the same model reference as the layers already in the list and the layer has the same model XY world transformation class set as the layers already in the list.
- See Also:
-
getSubGXYLayer
Deprecated.Description copied from interface:ILcdGXYLayerList
Returns the sublayer at the location with the given index in the list.- Specified by:
getSubGXYLayer
in interfaceILcdGXYLayerList
- Parameters:
aIndex
- the index of the location in the list.- Returns:
- the
ILcdGXYLayer
at the location with the given index.
-
indexOf
Deprecated.Description copied from interface:ILcdGXYLayerList
Gets the index of the given sublayer.- Specified by:
indexOf
in interfaceILcdGXYLayerList
- Parameters:
aSubGXYLayer
- the sublayer to find the index of.- Returns:
- the index of the given sublayer.
- Throws:
NoSuchElementException
- when the given sublayer is not in thisILcdGXYLayerList
.
-
moveSubGXYLayerAt
public void moveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException, ArrayIndexOutOfBoundsException Deprecated.Moves the givenILcdGXYLayer
at the given index. If aIsAdjusting is true, then a PropertyChanged event will be sent, no event will be sent otherwise.- Specified by:
moveSubGXYLayerAt
in interfaceILcdGXYLayerList
- Parameters:
aIndex
- the index of the new location in theILcdGXYLayerList
.aSubGXYLayer
- the sublayer to move.aIsAdjusting
- true if more changes will be made immediately after this.- Throws:
NoSuchElementException
- when the given sublayer is not in thisILcdGXYLayerList
.ArrayIndexOutOfBoundsException
- when the given index is negative or not smaller than the number of sublayers.
-
removeSubGXYLayer
public void removeSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException Deprecated.Description copied from interface:ILcdGXYLayerList
Removes the sublayer from this list.- Specified by:
removeSubGXYLayer
in interfaceILcdGXYLayerList
- Parameters:
aSubGXYLayer
- the sublayer.aIsAdjusting
- true if more changes will be made immediately after this.- Throws:
NoSuchElementException
- when the given sublayer is not in thisILcdGXYLayerList
.
-
removeAllSubGXYLayers
public void removeAllSubGXYLayers(boolean aIsAdjusting) Deprecated.Description copied from interface:ILcdGXYLayerList
Removes all sublayers from this list.- Specified by:
removeAllSubGXYLayers
in interfaceILcdGXYLayerList
- Parameters:
aIsAdjusting
- true if more changes will be made immediately after this.
-
containsSubGXYLayer
Deprecated.Description copied from interface:ILcdGXYLayerList
Checks whether the sublayer is in thisILcdGXYLayerList
.- Specified by:
containsSubGXYLayer
in interfaceILcdGXYLayerList
- Parameters:
aSubGXYLayer
- the sublayer.- Returns:
- true if the sublayer is in this
ILcdGXYLayerList
, false otherwise.
-
getObjectInLayerFilter
Deprecated.Description copied from interface:ILcdGXYLayerList
Returns the filter used to find objects in the given sublayer.- Specified by:
getObjectInLayerFilter
in interfaceILcdGXYLayerList
- Parameters:
aSubGXYLayer
- the sublayer for which all elements in its model should pass the filter.- Returns:
- the
ILcdFilter
that selects the elements in the given sublayer.
-
paint
Deprecated.Paints all sublayers, one by one.- Specified by:
paint
in interfaceILcdGXYLayer
- Parameters:
aGraphics
- the Graphics to paint on.aMode
- indicates what should be painted and how it should be painted.aGXYView
- the view to paint for.- See Also:
-
getModel
Deprecated.Returns a model list that contains all models of the layers in this list as submodels. -
getSelectionCount
public int getSelectionCount()Deprecated.Returns the sum of all selection counts of all sublayers.- Specified by:
getSelectionCount
in interfaceILcdSelection<Object>
- Returns:
- the sum of all selection counts of all sublayers.
-
applyOnInteract
public int applyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView) Deprecated.Passes the function to apply to all of the visible sub layers as long as the function returns true for objects in that sublayer.- Specified by:
applyOnInteract
in interfaceILcdGXYLayer
- Parameters:
aFunction
- the function to apply to all objects in the models of the sublayers. Note that this function may be wrapped and sublayers must not assume that this function is applied directly to them.aBounds
- the view bounds containing the objects to which the function will be applied.aStrictInteract
- whether or not only objects strictly interacting with the view bounds should be taken into accountaGXYView
- the view in which the objects are rendered.- Returns:
- the number of objects to which the function was applied.
- See Also:
-
setLabel
Deprecated.Sets the short textual representation for this list. -
getLabel
Deprecated.Returns the short textual representation for this list. -
selectedObjects
Deprecated.Returns a collection of all selected objects in all sublayers. Note that an object might appear multiple times as it may be selected in multiple sublayers.- Specified by:
selectedObjects
in interfaceILcdSelection<Object>
- Returns:
- a collection of all selected objects in all sublayers.
-
getBounds
Deprecated.Returns the union of the bounds of the sublayers. Sublayers which do not have bounds are ignored.- Specified by:
getBounds
in interfaceILcdGXYLayer
- Parameters:
aMode
- the layer mode to generate the bounds for.aGXYView
- the view in which this layer list is displayed.- Returns:
- the union of the bounds of the sublayers.
- Throws:
TLcdNoBoundsException
- when the list contains no layers, or when all the sublayers of the list generated a no bounds exception.- See Also:
-
isSelected
Deprecated.Returns whether an object is selected in any of the sublayers.- Specified by:
isSelected
in interfaceILcdSelection<Object>
- Parameters:
aObject
- the object to check.- Returns:
- true if the object is selected in any of the sublayers.
false
otherwise.
-
stopPainting
public void stopPainting()Deprecated.Stops painting on all sublayers.- Specified by:
stopPainting
in interfaceILcdGXYLayer
- See Also:
-
isVisible
public boolean isVisible()Deprecated.Returns whether at least one of the sublayers is visible. -
addSelectionListener
Deprecated.Adds a listener that will be notified of changes to the selection of sublayers in this list. Note that the source of the event will always be the list, not the sublayer in which selection changes may have occurred.- Specified by:
addSelectionListener
in interfaceILcdSelection<Object>
- Parameters:
aListener
- a listener that will be notified of changes to the selection of sublayers in this list.
-
getScaleRange
Deprecated.Returns the union of all scale ranges of the sublayers. This will be null only if none of the sublayers have a scale range. This implies that even when only one layer has a scale range, the layer list will assume that scale range.- Specified by:
getScaleRange
in interfaceILcdGXYLayer
- Returns:
- the union of the scale ranges of all sublayers.
- See Also:
-
setVisible
public void setVisible(boolean aVisible) Deprecated.Sets the visibility of all sublayers at once. Note that this will only fire one property change event for the layer list.- Specified by:
setVisible
in interfaceILcdLayer
- Parameters:
aVisible
- true to make all sublayers visible at once, false to make them all invisible at once.- See Also:
-
removeSelectionListener
Deprecated.Removes a listener that will no longer be notified of changes to the selection of sublayers in this list.- Specified by:
removeSelectionListener
in interfaceILcdSelection<Object>
- Parameters:
aListener
- a listener that no longer will be notified of changes to the selection of sublayers in this list.
-
getLabelScaleRange
Deprecated.Returns the union of all label scale ranges of the sublayers. This will be null only if none of the sublayers have a label scale range. This implies that even when only one layer has a label scale range, the layer list will assume that labeled scale range.- Specified by:
getLabelScaleRange
in interfaceILcdGXYLayer
- Returns:
- the union of all label scale ranges of the sublayers.
- See Also:
-
isSelectableSupported
public boolean isSelectableSupported()Deprecated.Returns whether at least on the sublayers supports selection.- Specified by:
isSelectableSupported
in interfaceILcdLayer
- Returns:
- true if at least on the sublayers supports selection, false only if none of the sublayers support selection.
- See Also:
-
isObjectInLayer
Deprecated.Determines if the given layers model contains the given object, by checking if the object passes the filter associated with the layer. If no filter was associated with the layer, the models elements are traversed to find the object.- Parameters:
aObject
- the object to findaGXYLayer
- the ILcdGXYLayer to check- Returns:
- true if the layers model contains the object.
- See Also:
-
getGXYPainter
Deprecated.Finds a suitable painter for the given object by requesting the sublayers for a suitable painter. If multiple painters are found the painter for the first sublayer that contains the object is returned.- Specified by:
getGXYPainter
in interfaceILcdGXYLayer
- Parameters:
aObject
- the object to find a painter for. Note that it would be possible to request a painter for an object that is not in any of the sublayers.- Returns:
- a suitable painter for the given object. If multiple painters are found the painter for the first sublayer that contains the object is returned.
-
isSelectable
public boolean isSelectable()Deprecated.Returns whether at least one of the sublayers is selectable.- Specified by:
isSelectable
in interfaceILcdLayer
- Returns:
- true if one of the sublayers is selectable, false only if none of the sublayers are selectable.
- See Also:
-
getGXYEditor
Deprecated.Finds a suitable editor for the given object by requesting the sublayers for a suitable editor. If multiple editors are found the editor for the first sublayer that contains the object is returned.- Specified by:
getGXYEditor
in interfaceILcdGXYLayer
- Parameters:
aObject
- the object to find a editor for. Note that it would be possible to request an editor for an object that is not in any of the sublayers.- Returns:
- a suitable editor for the given object. If multiple editors are found the editor for the first sublayer that contains the object is returned.
-
setSelectable
public void setSelectable(boolean aSelectable) Deprecated.Sets all sublayers selectable at once.- Specified by:
setSelectable
in interfaceILcdLayer
- Parameters:
aSelectable
- true to set all sublayers selectable at once, false to set all sublayers not selectable at once.- See Also:
-
getGXYLabelPainter
Deprecated.Finds a suitable label painter for the given object by requesting the sublayers for a suitable label painter. If multiple label painters are found the label painter for the first sublayer that contains the object is returned.- Specified by:
getGXYLabelPainter
in interfaceILcdGXYLayer
- Parameters:
aObject
- the object to find a label painter for. Note that it would be possible to request a label painter for an object that is not in any of the sublayers.- Returns:
- a suitable label painter for the given object. If multiple label painters are found the label painter for the first sublayer that contains the object is returned.
-
isEditableSupported
public boolean isEditableSupported()Deprecated.Returns whether at least one of the sublayers supports editing.- Specified by:
isEditableSupported
in interfaceILcdLayer
- Returns:
- true if one of the sublayers supports editing, false only if none of the sublayers supports editing.
- See Also:
-
getGXYPen
Deprecated.Returns the pen used for all basic drawing operations for all sublayers. This property should be set on the list itself, as no pen of any of the sublayers is used.- Specified by:
getGXYPen
in interfaceILcdGXYLayer
- Returns:
- the pen used for all basic drawing operations for all sublayers.
- See Also:
-
setGXYPen
Deprecated.The pen to use for all basic drawing operations for all sublayers. The default value is null. Note that this value needs to be set before any rendering operation can occur.- Specified by:
setGXYPen
in interfaceILcdGXYLayerList
- Parameters:
aGXYPen
- the pen to use for all basic drawing operations for all sublayers.- See Also:
-
isEditable
public boolean isEditable()Deprecated.Returns whether at least one of the sublayers is editable.- Specified by:
isEditable
in interfaceILcdLayer
- Returns:
- true if one of the sublayers is editable, false only if none of the sublayers is editable.
- See Also:
-
setIcon
Deprecated.Sets the small graphical representation for this layer list. By default no icon is set. -
getIcon
Deprecated.Returns a small graphical representation for this layer list. -
setEditable
public void setEditable(boolean aEditable) Deprecated.Sets all sublayers editable.- Specified by:
setEditable
in interfaceILcdLayer
- Parameters:
aEditable
- true to make all sublayers editable, false to make all sublayers non editable.- See Also:
-
getModelXYWorldTransfoClass
Deprecated.Returns the class of the transformation used to transform model coordinates to view coordinates. Note that this value should be common for all sublayers.- Specified by:
getModelXYWorldTransfoClass
in interfaceILcdGXYLayer
- Returns:
- the common model XY world transformation class for all sublayers.
-
selectObject
Deprecated.Selects or deselects an object in the last sublayer in which it appears.- Specified by:
selectObject
in interfaceILcdLayer
- Parameters:
aObject
- the object to select or deselectaSelection
- whether to select or deselect the objectaDispatchEventMode
- indication of whether the selection listeners should be notified.- See Also:
-
isLabeledSupported
public boolean isLabeledSupported()Deprecated.Returns whether at least one of the sublayers supports labeling.- Specified by:
isLabeledSupported
in interfaceILcdGXYLayer
- Returns:
- true if at least one of the sublayers supports labeling, false only if none of the sublayers supports labeling.
-
fireCollectedSelectionChanges
public void fireCollectedSelectionChanges()Deprecated.Fires events for all selection events collected by all sublayers. Note that the source of the event will always be the layer list, not the sublayer.- Specified by:
fireCollectedSelectionChanges
in interfaceILcdLayer
-
isLabeled
public boolean isLabeled()Deprecated.Returns whether at least one of the sublayers is labeled.- Specified by:
isLabeled
in interfaceILcdGXYLayer
- Returns:
- true if one of the sublayers is labeled, false only if none of the sublayers is labeled.
- See Also:
-
setLabeled
public void setLabeled(boolean aLabeled) Deprecated.Sets all sublayers labeled or not labeled.- Specified by:
setLabeled
in interfaceILcdGXYLayer
- Parameters:
aLabeled
- true to set all sublayers labeled, false to set all sublayers not labeled.
-
clearSelection
public void clearSelection(int aDispatchEventMode) Deprecated.Clears the selection on all sublayers.- Specified by:
clearSelection
in interfaceILcdLayer
- Parameters:
aDispatchEventMode
- designates whether listeners should be notified of this clearance.- See Also:
-
addPropertyChangeListener
Deprecated.Adds a listener that will be notified of any changes of properties of this list. Note that property changes of the list may be caused by a property change of a sublayer. For example, when the last visible layer is turned invisible, an event will be fired. If however, another sublayer is visible, the visibility of the list has not changed and no event will be fired. In any case, if an event is fired, the source of the event will be the list, never a sublayer.- Specified by:
addPropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aListener
- will be notified when one of the properties of the list changes.- See Also:
-
removePropertyChangeListener
Deprecated.Removes a listener that will no longer be notified of any changes of properties of this list.- Specified by:
removePropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aListener
- will no longer be notified when one of the properties of the list changes.- See Also:
-
TLcdGXYLayerTreeNode
instead