Package com.luciad.lucy.map
Interface ILcyLayerSubsetList
- All Known Implementing Classes:
TLcyLayerSubsetList
public interface ILcyLayerSubsetList
This is an interface for defining a list of one or more
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.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Object aObject, ILcdLayer aLayer) Adds anObject
to the subset associated with the givenILcdLayer
.asAssocs()
Retrieves all the subsets as an array ofILcdAssoc
.boolean
Checks ifaObject
is contained in one of the layer subsets of this list.elements()
Returns anEnumeration
of all the Objects in all theILcdLayer
subsets.layers()
Returns anEnumeration
of allILcdLayer
s in this list which are associated with at least oneObject
.layerSubset
(ILcdLayer aLayer) Returns anEnumeration
of all Objects currently in the subset associated with the givenILcdLayer
void
Removes all the subsets.void
removeElement
(Object aObject, ILcdLayer aLayer) Removes anObject
that was in the subset associated with the givenILcdLayer
.retrieveLayer
(Object aObject) Returns the firstILcdLayer
encountered in this list that is associated with the givenObject
.int
size()
Returns the number of Objects in all theILcdLayer
subsets.
-
Method Details
-
addElement
Adds anObject
to the subset associated with the givenILcdLayer
.aObject
must belong to theILcdModel
that aLayer refers to.- Parameters:
aObject
- TheObject
to add.aLayer
- TheILcdLayer
aObject
belongs to.
-
removeElement
Removes anObject
that was in the subset associated with the givenILcdLayer
.- Parameters:
aObject
- TheObject
to remove.aLayer
- TheILcdLayer
aObject
belongs to.
-
layerSubset
Returns anEnumeration
of all Objects currently in the subset associated with the givenILcdLayer
- Returns:
- An
Enumeration
of all Objects currently in the subset associated with the givenILcdLayer
.
-
layers
Enumeration layers()Returns anEnumeration
of allILcdLayer
s in this list which are associated with at least oneObject
.- Returns:
- An
Enumeration
of allILcdLayer
s in this list which are associated with at least oneObject
.
-
retrieveLayer
Returns the firstILcdLayer
encountered in this list that is associated with the givenObject
. Returnsnull
ifaObject
is not associated with anyILcdLayer
in this list.- Parameters:
aObject
- The object for which the layer should be retrieved.- Returns:
- The first
ILcdLayer
associated withaObject
.
-
asAssocs
ILcdAssoc[] asAssocs()Retrieves all the subsets as an array ofILcdAssoc
. The key of theILcdAssoc
refers to anILcdLayer
, the value to aVector
that contains the subset of Objects that belongs to theILcdLayer
.- Returns:
- The array of
ILcdAssoc
objects associating the layers with their objects.
-
removeAllElements
void removeAllElements()Removes all the subsets. -
elements
Enumeration elements()Returns anEnumeration
of all the Objects in all theILcdLayer
subsets.- Returns:
- An
Enumeration
of all the Objects in all theILcdLayer
subsets.
-
size
int size()Returns the number of Objects in all theILcdLayer
subsets.- Returns:
- The number of Objects in all the
ILcdLayer
subsets.
-
contains
Checks ifaObject
is contained in one of the layer subsets of this list. Tests shall be done by comparing Object reference (not using Object.equals)- Parameters:
aObject
- The object whose presence in this list is to be tested.- Returns:
true
if the givenObject
belongs to one of theILcdLayer
subsets, false otherwise.
-