Package com.luciad.view.gxy
Interface ILcdGXYLayerSubsetList
- All Known Implementing Classes:
TLcdGXYLayerSubsetList
public interface ILcdGXYLayerSubsetList
A layer subset list defines a set of domain objects that are present in one or more layers.
It is structured as a list of layer subsets.
Individual domain objects can be
added
or removed
.
The set of domain objects can be retrieved for a given layer
or for all layers
.
You can iterate over this list by enumerating over the layers first, and then enumerating over the subset:
Enumeration layers = list.layers();
while (layers.hasMoreElements() ) {
ILcdGXYLayer layer = (ILcdGXYLayer) layers.nextElement();
Enumeration objects = list.layerSubset( layer );
while (objects.hasMoreElements()) {
Object object = objects.nextElement();
}
}
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Object aObject, ILcdGXYLayer aGXYLayer) Adds a domain object that is part of the given layer.asAssocs()
Retrieves all the subsets as an array ofILcdAssoc
.boolean
Returns whether the given object is contained in this subset list.elements()
Returns anEnumeration
of all the Objects in all theILcdGXYLayer
subsets.layers()
Returns an Enumeration of all layers for which objects are present.layerSubset
(ILcdGXYLayer aGXYLayer) Returns an Enumeration of all objects that are part of the given layer.void
Removes all the subsets.void
removeElement
(Object aObject, ILcdGXYLayer aGXYLayer) Removes the domain object part of the given layer.retrieveGXYLayer
(Object aObject) Returns theILcdGXYLayer
for which the givenObject
was added.int
size()
Returns the number of all the Objects in all theILcdGXYLayer
subsets.
-
Method Details
-
addElement
Adds a domain object that is part of the given layer.- Parameters:
aObject
- theObject
to add.aGXYLayer
- theILcdGXYLayer
theObject
belongs to.
-
removeElement
Removes the domain object part of the given layer.- Parameters:
aObject
- theObject
to remove.aGXYLayer
- theILcdGXYLayer
theObject
belongs to.
-
layerSubset
Returns an Enumeration of all objects that are part of the given layer.- Parameters:
aGXYLayer
- the layer whose objects to return- Returns:
- an Enumeration of all objects that are part of the given layer.
-
layers
Enumeration layers()Returns an Enumeration of all layers for which objects are present.- Returns:
- an Enumeration of all objects that are part of the given layer.
-
retrieveGXYLayer
Returns theILcdGXYLayer
for which the givenObject
was added.- Returns:
- the
ILcdGXYLayer
if aObject has been added, ornull
if aObject does not belong to thisILcdGXYLayerSubsetList
- See Also:
-
asAssocs
ILcdAssoc[] asAssocs()Retrieves all the subsets as an array ofILcdAssoc
. Each association in this array maps an ILcdGXYLayer to a Vector of domain objects.- Returns:
- an array of ILcdAssoc objects, with the key being an ILcdGXYLayer, and the value a Vector.
-
removeAllElements
void removeAllElements()Removes all the subsets. -
elements
Enumeration elements()Returns anEnumeration
of all the Objects in all theILcdGXYLayer
subsets.- Returns:
- an
Enumeration
of all the Objects in all theILcdGXYLayer
subsets
-
size
int size()Returns the number of all the Objects in all theILcdGXYLayer
subsets.- Returns:
- the number of all the Objects in all the
ILcdGXYLayer
subsets
-
contains
Returns whether the given object is contained in this subset list.- Returns:
true
if the givenObject
belongs to one of theILcdGXYLayer
subsets. Tests shall be done by comparing Object reference (not using Object.equals)
-