Package com.luciad.lucy.map
Class TLcyLayerSubsetList
java.lang.Object
com.luciad.lucy.map.TLcyLayerSubsetList
- All Implemented Interfaces:
ILcyLayerSubsetList
This is an implementation of the
ILcyLayerSubsetList
interface.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Object aObject, ILcdLayer aLayer) Adds anObject
to the subset associated with the givenILcdLayer
.asAssocs()
Retrieves an array ofILcdAssoc
.boolean
Tests contains by comparing reference (not using Object.equals).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.
-
Constructor Details
-
TLcyLayerSubsetList
public TLcyLayerSubsetList()
-
-
Method Details
-
addElement
Description copied from interface:ILcyLayerSubsetList
Adds anObject
to the subset associated with the givenILcdLayer
.aObject
must belong to theILcdModel
that aLayer refers to.- Specified by:
addElement
in interfaceILcyLayerSubsetList
- Parameters:
aObject
- TheObject
to add.aLayer
- TheILcdLayer
aObject
belongs to.
-
removeElement
Description copied from interface:ILcyLayerSubsetList
Removes anObject
that was in the subset associated with the givenILcdLayer
.- Specified by:
removeElement
in interfaceILcyLayerSubsetList
- Parameters:
aObject
- TheObject
to remove.aLayer
- TheILcdLayer
aObject
belongs to.
-
layers
Description copied from interface:ILcyLayerSubsetList
Returns anEnumeration
of allILcdLayer
s in this list which are associated with at least oneObject
.- Specified by:
layers
in interfaceILcyLayerSubsetList
- Returns:
- An
Enumeration
of allILcdLayer
s in this list which are associated with at least oneObject
.
-
layerSubset
Description copied from interface:ILcyLayerSubsetList
Returns anEnumeration
of all Objects currently in the subset associated with the givenILcdLayer
- Specified by:
layerSubset
in interfaceILcyLayerSubsetList
- Returns:
- An
Enumeration
of all Objects currently in the subset associated with the givenILcdLayer
.
-
retrieveLayer
Description copied from interface:ILcyLayerSubsetList
Returns the firstILcdLayer
encountered in this list that is associated with the givenObject
. Returnsnull
ifaObject
is not associated with anyILcdLayer
in this list.- Specified by:
retrieveLayer
in interfaceILcyLayerSubsetList
- Parameters:
aObject
- The object for which the layer should be retrieved.- Returns:
- The first
ILcdLayer
associated withaObject
.
-
asAssocs
Retrieves an array ofILcdAssoc
. For eachILcdAssoc
, the methodgetKey()
returns anILcdLayer
, the methodgetValue()
returns aVector
containing the Objects part of the subset of thisILcdLayer
.- Specified by:
asAssocs
in interfaceILcyLayerSubsetList
- Returns:
- The array of
ILcdAssoc
objects associating the layers with their objects.
-
removeAllElements
public void removeAllElements()Description copied from interface:ILcyLayerSubsetList
Removes all the subsets.- Specified by:
removeAllElements
in interfaceILcyLayerSubsetList
-
elements
Description copied from interface:ILcyLayerSubsetList
Returns anEnumeration
of all the Objects in all theILcdLayer
subsets.- Specified by:
elements
in interfaceILcyLayerSubsetList
- Returns:
- An
Enumeration
of all the Objects in all theILcdLayer
subsets.
-
size
public int size()Description copied from interface:ILcyLayerSubsetList
Returns the number of Objects in all theILcdLayer
subsets.- Specified by:
size
in interfaceILcyLayerSubsetList
- Returns:
- The number of Objects in all the
ILcdLayer
subsets.
-
contains
Tests contains by comparing reference (not using Object.equals).- Specified by:
contains
in interfaceILcyLayerSubsetList
- 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.
-