Package com.luciad.view.gxy
Interface ILcdGXYLayerList
- All Superinterfaces:
ILcdGXYLayer
,ILcdLayer
,ILcdPropertyChangeSource
,ILcdSelection<Object>
,Serializable
- All Known Implementing Classes:
TLcdGXYLayerList
,TLcdS52GXYCatalogueLayerList
,TLcdS52GXYLevelLayerList
Deprecated.
An ordered collection of
ILcdGXYLayer
objects, called subGXYLayers,
which is an ILcdGXYLayer
implementation. It can be added to an ILcdGXYView
,
enabling grouping a number of ILcdGXYLayer objects into themes.
As the layer list is regarded as an ILcdGXYLayer
by the view, some restrictions apply
to the layers that can be added:
- All the models in the sublayers need to have the same model reference.
-
As a consequence, the
ILcdModelXYWorldTransformation
should be identical for all sublayers. - All sublayers will be rendered with the same ILcdGXYPen.
Layer properties should not be set on the sublayers, they should be set on the layer list. The view has no knowledge of the sublayers and thus it is possible that settings on the sublayers are ignored. For example:
- Set the layer list labeled.
- Set one sub layer not labeled.
When adding a sublayer to the layer list, a filter may be passed enabling the layer list to determine whether an object
is in the sublayers model. Methods retrieving a property based on an Object parameter may use this filter to retrieve the property from the sublayer that
contains the object passed. As such a method may be called frequently, for example
getGXYPainter(Object)
, the implementation of such a filter can have a
considerable impact on the performance of the layer list.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.boolean
containsSubGXYLayer
(ILcdGXYLayer aSubGXYLayer) Deprecated.Checks whether the sublayer is in thisILcdGXYLayerList
.getObjectInLayerFilter
(ILcdGXYLayer aSubGXYLayer) Deprecated.Returns the filter used to find objects in the given sublayer.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.void
moveSubGXYLayerAt
(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Moves the sublayer to the location in the list with the given index.void
removeAllSubGXYLayers
(boolean aIsAdjusting) Deprecated.Removes all sublayers from this list.void
removeSubGXYLayer
(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Removes the sublayer from this list.void
setGXYPen
(ILcdGXYPen aGXYPen) Deprecated.Sets theILcdGXYPen
to be used for the rendering operations for all sub layers.Methods inherited from interface com.luciad.view.gxy.ILcdGXYLayer
applyOnInteract, getBounds, getGXYEditor, getGXYLabelPainter, getGXYPainter, getGXYPen, getLabelMapScaleRange, getLabelScaleRange, getMapScaleRange, getModelXYWorldTransfoClass, getScaleRange, isLabeled, isLabeledSupported, paint, setLabeled, stopPainting
Methods inherited from interface com.luciad.view.ILcdLayer
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isEditable, isEditableSupported, isSelectable, isSelectableSupported, isVisible, selectObject, setEditable, setIcon, setLabel, setSelectable, setVisible
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.luciad.util.ILcdSelection
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
-
Method Details
-
getSubGXYLayerCount
int getSubGXYLayerCount()Deprecated.Returns the number of sublayers in thisILcdGXYLayerList
.- Returns:
- the number of sublayers in this
ILcdGXYLayerList
.
-
addSubGXYLayer
void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Adds the givenILcdGXYLayer
as a sublayer to thisILcdGXYLayerList
.- Parameters:
aSubGXYLayer
- theILcdGXYLayer
to add to 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
void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Inserts the givenILcdGXYLayer
as a sublayer at the given index.- 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.
-
addSubGXYLayer
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.- 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
- will be thrown if thisILcdGXYLayerList
contains at least oneILcdGXYLayer
and theILcdModelXYWorldTransfo
class are different.
-
insertSubGXYLayerAt
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.- 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
- will be thrown if thisILcdGXYLayerList
contains at least oneILcdGXYLayer
and theILcdModelXYWorldTransfo
class are different.
-
getSubGXYLayer
Deprecated.Returns the sublayer at the location with the given index in the list.- Parameters:
aIndex
- the index of the location in the list.- Returns:
- the
ILcdGXYLayer
at the location with the given index.
-
indexOf
Deprecated.Gets the index of the given sublayer.- 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
void moveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException, ArrayIndexOutOfBoundsException Deprecated.Moves the sublayer to the location in the list with the given index.- 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
void removeSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException Deprecated.Removes the sublayer from this list.- 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
void removeAllSubGXYLayers(boolean aIsAdjusting) Deprecated.Removes all sublayers from this list.- Parameters:
aIsAdjusting
- true if more changes will be made immediately after this.
-
containsSubGXYLayer
Deprecated.Checks whether the sublayer is in thisILcdGXYLayerList
.- Parameters:
aSubGXYLayer
- the sublayer.- Returns:
- true if the sublayer is in this
ILcdGXYLayerList
, false otherwise.
-
getObjectInLayerFilter
Deprecated.Returns the filter used to find objects in the given sublayer.- 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.
-
setGXYPen
Deprecated.Sets theILcdGXYPen
to be used for the rendering operations for all sub layers.- Parameters:
aGXYPen
- theILcdGXYPen
to be used for the rendering operations for all sub layers.
-
ILcdLayerTreeNode
instead