public interface ILcyLayerSubsetList
ILcdLayer
subset(s)
. This can be seen as a list of Vectors. Each Vector
is
associated to an ILcdLayer
. It contains a subset of Objects of the
ILcdModel
the ILcdLayer
refers to. The method asAssocs
returns and array of ILcdAssoc
. The key of the ILcdAssoc
refers to the
ILcdLayer
, the value to the Vector.Modifier and Type | Method and Description |
---|---|
void |
addElement(Object aObject,
ILcdLayer aLayer)
Adds an
Object to the subset associated with the given ILcdLayer . |
ILcdAssoc[] |
asAssocs()
Retrieves all the subsets as an array of
ILcdAssoc . |
boolean |
contains(Object aObject)
Checks if
aObject is contained in one of the layer subsets of this list. |
Enumeration |
elements()
Returns an
Enumeration of all the Objects in all the ILcdLayer
subsets. |
Enumeration |
layers()
Returns an
Enumeration of all ILcdLayer s in this list which are
associated with at least one Object . |
Enumeration |
layerSubset(ILcdLayer aLayer)
Returns an
Enumeration of all Objects currently in the subset associated with the
given ILcdLayer |
void |
removeAllElements()
Removes all the subsets.
|
void |
removeElement(Object aObject,
ILcdLayer aLayer)
Removes an
Object that was in the subset associated with the given
ILcdLayer . |
ILcdLayer |
retrieveLayer(Object aObject)
Returns the first
ILcdLayer encountered in this list that is associated with the
given Object . |
int |
size()
Returns the number of Objects in all the
ILcdLayer subsets. |
void addElement(Object aObject, ILcdLayer aLayer)
Object
to the subset associated with the given ILcdLayer
.
aObject
must belong to the ILcdModel
that aLayer refers to.aObject
- The Object
to add.aLayer
- The ILcdLayer
aObject
belongs to.void removeElement(Object aObject, ILcdLayer aLayer)
Object
that was in the subset associated with the given
ILcdLayer
.aObject
- The Object
to remove.aLayer
- The ILcdLayer
aObject
belongs to.Enumeration layerSubset(ILcdLayer aLayer)
Enumeration
of all Objects currently in the subset associated with the
given ILcdLayer
Enumeration
of all Objects currently in the subset associated with the
given ILcdLayer
.Enumeration layers()
Enumeration
of all ILcdLayer
s in this list which are
associated with at least one Object
.Enumeration
of all ILcdLayer
s in this list which are
associated with at least one Object
.ILcdLayer retrieveLayer(Object aObject)
ILcdLayer
encountered in this list that is associated with the
given Object
. Returns null
if aObject
is not
associated with any ILcdLayer
in this list.aObject
- The object for which the layer should be retrieved.ILcdLayer
associated with aObject
.ILcdAssoc[] asAssocs()
ILcdAssoc
. The key of the
ILcdAssoc
refers to an ILcdLayer
, the value to a Vector
that contains the subset of Objects that belongs to the ILcdLayer
.ILcdAssoc
objects associating the layers with their objects.void removeAllElements()
Enumeration elements()
Enumeration
of all the Objects in all the ILcdLayer
subsets.Enumeration
of all the Objects in all the ILcdLayer
subsets.int size()
ILcdLayer
subsets.ILcdLayer
subsets.boolean contains(Object aObject)
aObject
is contained in one of the layer subsets of this list. Tests
shall be done by comparing Object reference (not using Object.equals)aObject
- The object whose presence in this list is to be tested.true
if the given Object
belongs to one of the
ILcdLayer
subsets, false otherwise.