public interface ILcdGXYLayerSubsetList
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();
}
}
ILcdGXYLayer
Modifier and Type | Method and Description |
---|---|
void |
addElement(Object aObject,
ILcdGXYLayer aGXYLayer)
Adds a domain object that is part of the given layer.
|
ILcdAssoc[] |
asAssocs()
Retrieves all the subsets as an array of
ILcdAssoc . |
boolean |
contains(Object aObject)
Returns whether the given object is contained in this subset list.
|
Enumeration |
elements()
Returns an
Enumeration of all the Objects in all the ILcdGXYLayer subsets. |
Enumeration |
layers()
Returns an Enumeration of all layers for which objects are present.
|
Enumeration |
layerSubset(ILcdGXYLayer aGXYLayer)
Returns an Enumeration of all objects that are part of the given layer.
|
void |
removeAllElements()
Removes all the subsets.
|
void |
removeElement(Object aObject,
ILcdGXYLayer aGXYLayer)
Removes the domain object part of the given layer.
|
ILcdGXYLayer |
retrieveGXYLayer(Object aObject)
Returns the
ILcdGXYLayer for which the given Object was added. |
int |
size()
Returns the number of all the Objects in all the
ILcdGXYLayer subsets. |
void addElement(Object aObject, ILcdGXYLayer aGXYLayer)
aObject
- the Object
to add.aGXYLayer
- the ILcdGXYLayer
the Object
belongs to.void removeElement(Object aObject, ILcdGXYLayer aGXYLayer)
aObject
- the Object
to remove.aGXYLayer
- the ILcdGXYLayer
the Object
belongs to.Enumeration layerSubset(ILcdGXYLayer aGXYLayer)
aGXYLayer
- the layer whose objects to returnEnumeration layers()
ILcdGXYLayer retrieveGXYLayer(Object aObject)
ILcdGXYLayer
for which the given Object
was added.ILcdGXYLayer
if aObject has been added, or null
if aObject does not belong to this ILcdGXYLayerSubsetList
contains(java.lang.Object)
ILcdAssoc[] asAssocs()
ILcdAssoc
.
Each association in this array maps an ILcdGXYLayer to a Vector of domain objects.void removeAllElements()
Enumeration elements()
Enumeration
of all the Objects in all the ILcdGXYLayer
subsets.Enumeration
of all the Objects in all the ILcdGXYLayer
subsetsint size()
ILcdGXYLayer
subsets.ILcdGXYLayer
subsetsboolean contains(Object aObject)
true
if the given Object
belongs to
one of the ILcdGXYLayer
subsets.
Tests shall be done by comparing Object reference (not using Object.equals)