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
ILcdModelXYWorldTransformationshould 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 TypeMethodDescriptionvoidaddSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Adds the givenILcdGXYLayeras a sublayer to thisILcdGXYLayerList.voidaddSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) Deprecated.Adds the givenILcdGXYLayeras a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not.booleancontainsSubGXYLayer(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.intDeprecated.Returns the number of sublayers in thisILcdGXYLayerList.intindexOf(ILcdGXYLayer aSubGXYLayer) Deprecated.Gets the index of the given sublayer.voidinsertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Inserts the givenILcdGXYLayeras a sublayer at the given index.voidinsertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) Deprecated.Inserts the givenILcdGXYLayeras a sublayer at the given index, accompanied by a filter to determine whether an object is in the sublayers model or not.voidmoveSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Moves the sublayer to the location in the list with the given index.voidremoveAllSubGXYLayers(boolean aIsAdjusting) Deprecated.Removes all sublayers from this list.voidremoveSubGXYLayer(ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) Deprecated.Removes the sublayer from this list.voidsetGXYPen(ILcdGXYPen aGXYPen) Deprecated.Sets theILcdGXYPento 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, stopPaintingMethods inherited from interface com.luciad.view.ILcdLayer
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isEditable, isEditableSupported, isSelectable, isSelectableSupported, isVisible, selectObject, setEditable, setIcon, setLabel, setSelectable, setVisibleMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListenerMethods 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 givenILcdGXYLayeras a sublayer to thisILcdGXYLayerList.- Parameters:
aSubGXYLayer- theILcdGXYLayerto add to the list.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException- will be thrown if thisILcdGXYLayerListcontains at least oneILcdGXYLayerand theILcdModelXYWorldTransfoclass are different.
-
insertSubGXYLayerAt
void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Inserts the givenILcdGXYLayeras a sublayer at the given index.- Parameters:
aIndex- the index of the location in the list where this layer should be placed.aSubGXYLayer- theILcdGXYLayerto insert into the list.aIsAdjusting- true if more changes will be made immediately after this.- Throws:
IllegalArgumentException- will be thrown if thisILcdGXYLayerListcontains at least oneILcdGXYLayerand theILcdModelXYWorldTransfoclass are different.
-
addSubGXYLayer
void addSubGXYLayer(ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Adds the givenILcdGXYLayeras a sublayer, accompanied by a filter to determine whether an object is in the sublayers model or not.- Parameters:
aSubGXYLayer- theILcdGXYLayerto add to the list.aObjectInLayerFilter- theILcdFilterused 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 thisILcdGXYLayerListcontains at least oneILcdGXYLayerand theILcdModelXYWorldTransfoclass are different.
-
insertSubGXYLayerAt
void insertSubGXYLayerAt(int aIndex, ILcdGXYLayer aSubGXYLayer, ILcdFilter aObjectInLayerFilter, boolean aIsAdjusting) throws IllegalArgumentException Deprecated.Inserts the givenILcdGXYLayeras 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- theILcdFilterused 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 thisILcdGXYLayerListcontains at least oneILcdGXYLayerand theILcdModelXYWorldTransfoclass 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
ILcdGXYLayerat 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
ILcdFilterthat selects the elements in the given sublayer.
-
setGXYPen
Deprecated.Sets theILcdGXYPento be used for the rendering operations for all sub layers.- Parameters:
aGXYPen- theILcdGXYPento be used for the rendering operations for all sub layers.
-
ILcdLayerTreeNodeinstead