ILcdLayerTreeNode
insteadpublic interface ILcdGXYLayerList extends ILcdGXYLayer
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:
ILcdModelXYWorldTransformation
should be identical for all sublayers.
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:
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.
Modifier and Type | Method and Description |
---|---|
void |
addSubGXYLayer(ILcdGXYLayer aSubGXYLayer,
boolean aIsAdjusting)
Deprecated.
Adds the given
ILcdGXYLayer as a sublayer to this ILcdGXYLayerList . |
void |
addSubGXYLayer(ILcdGXYLayer aSubGXYLayer,
ILcdFilter aObjectInLayerFilter,
boolean aIsAdjusting)
Deprecated.
Adds the given
ILcdGXYLayer 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 this
ILcdGXYLayerList . |
ILcdFilter |
getObjectInLayerFilter(ILcdGXYLayer aSubGXYLayer)
Deprecated.
Returns the filter used to find objects in the given sublayer.
|
ILcdGXYLayer |
getSubGXYLayer(int aIndex)
Deprecated.
Returns the sublayer at the location with the given index in the list.
|
int |
getSubGXYLayerCount()
Deprecated.
Returns the number of sublayers in this
ILcdGXYLayerList . |
int |
indexOf(ILcdGXYLayer aSubGXYLayer)
Deprecated.
Gets the index of the given sublayer.
|
void |
insertSubGXYLayerAt(int aIndex,
ILcdGXYLayer aSubGXYLayer,
boolean aIsAdjusting)
Deprecated.
Inserts the given
ILcdGXYLayer as a sublayer at the given index. |
void |
insertSubGXYLayerAt(int aIndex,
ILcdGXYLayer aSubGXYLayer,
ILcdFilter aObjectInLayerFilter,
boolean aIsAdjusting)
Deprecated.
Inserts the given
ILcdGXYLayer 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 the
ILcdGXYPen to be used for the rendering operations for all sub layers. |
applyOnInteract, getBounds, getGXYEditor, getGXYLabelPainter, getGXYPainter, getGXYPen, getLabelMapScaleRange, getLabelScaleRange, getMapScaleRange, getModelXYWorldTransfoClass, getScaleRange, isLabeled, isLabeledSupported, paint, setLabeled, stopPainting
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isEditable, isEditableSupported, isSelectable, isSelectableSupported, isVisible, selectObject, setEditable, setIcon, setLabel, setSelectable, setVisible
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
addPropertyChangeListener, removePropertyChangeListener
int getSubGXYLayerCount()
ILcdGXYLayerList
.ILcdGXYLayerList
.void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException
ILcdGXYLayer
as a sublayer to this ILcdGXYLayerList
.aSubGXYLayer
- the ILcdGXYLayer
to add to the list.aIsAdjusting
- true if more changes will be made immediately after this.IllegalArgumentException
- will be thrown if this ILcdGXYLayerList
contains
at least one ILcdGXYLayer
and the ILcdModelXYWorldTransfo
class
are different.void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException
ILcdGXYLayer
as a sublayer at the given index.aIndex
- the index of the location in the list where this layer should be placed.aSubGXYLayer
- the ILcdGXYLayer
to insert into the list.aIsAdjusting
- true if more changes will be made immediately after this.IllegalArgumentException
- will be thrown if this ILcdGXYLayerList
contains
at least one ILcdGXYLayer
and the ILcdModelXYWorldTransfo
class
are different.void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException
ILcdGXYLayer
as a sublayer, accompanied by a filter to determine whether an object is
in the sublayers model or not.aSubGXYLayer
- the ILcdGXYLayer
to add to the list.aObjectInLayerFilter
- the ILcdFilter
used to determine if an object is contained in this layer.aIsAdjusting
- true if more changes will be made immediately after this.IllegalArgumentException
- will be thrown if this ILcdGXYLayerList
contains
at least one ILcdGXYLayer
and the ILcdModelXYWorldTransfo
class
are different.void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException
ILcdGXYLayer
as a sublayer at the given index, accompanied by a filter to determine
whether an object is in the sublayers model or not.aIndex
- the index of the location in the list where this layer should be placed.aSubGXYLayer
- the sublayer.aObjectInLayerFilter
- the ILcdFilter
used to determine if an object is contained in this layer.aIsAdjusting
- true if more changes will be made immediately after this.IllegalArgumentException
- will be thrown if this ILcdGXYLayerList
contains
at least one ILcdGXYLayer
and the ILcdModelXYWorldTransfo
class
are different.ILcdGXYLayer getSubGXYLayer(int aIndex)
aIndex
- the index of the location in the list.ILcdGXYLayer
at the location with the given index.int indexOf(ILcdGXYLayer aSubGXYLayer) throws NoSuchElementException
aSubGXYLayer
- the sublayer to find the index of.NoSuchElementException
- when the given sublayer is not in this ILcdGXYLayerList
.void moveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException, ArrayIndexOutOfBoundsException
aIndex
- the index of the new location in the ILcdGXYLayerList
.aSubGXYLayer
- the sublayer to move.aIsAdjusting
- true if more changes will be made immediately after this.NoSuchElementException
- when the given sublayer is not in this ILcdGXYLayerList
.ArrayIndexOutOfBoundsException
- when the given index is negative or not smaller than the number of sublayers.void removeSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws NoSuchElementException
aSubGXYLayer
- the sublayer.aIsAdjusting
- true if more changes will be made immediately after this.NoSuchElementException
- when the given sublayer is not in this ILcdGXYLayerList
.void removeAllSubGXYLayers(boolean aIsAdjusting)
aIsAdjusting
- true if more changes will be made immediately after this.boolean containsSubGXYLayer(ILcdGXYLayer aSubGXYLayer)
ILcdGXYLayerList
.aSubGXYLayer
- the sublayer.ILcdGXYLayerList
, false otherwise.ILcdFilter getObjectInLayerFilter(ILcdGXYLayer aSubGXYLayer)
aSubGXYLayer
- the sublayer for which all elements in its model should pass the filter.ILcdFilter
that selects the elements in the given sublayer.void setGXYPen(ILcdGXYPen aGXYPen)
ILcdGXYPen
to be used for the rendering operations for all sub layers.aGXYPen
- the ILcdGXYPen
to be used for the rendering operations for all sub layers.