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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(Object aObject, ILcdLayer aLayer) Adds anObjectto the subset associated with the givenILcdLayer.asAssocs()Retrieves an array ofILcdAssoc.booleanTests contains by comparing reference (not using Object.equals).elements()Returns anEnumerationof all the Objects in all theILcdLayersubsets.layers()Returns anEnumerationof allILcdLayers in this list which are associated with at least oneObject.layerSubset(ILcdLayer aLayer) Returns anEnumerationof all Objects currently in the subset associated with the givenILcdLayervoidRemoves all the subsets.voidremoveElement(Object aObject, ILcdLayer aLayer) Removes anObjectthat was in the subset associated with the givenILcdLayer.retrieveLayer(Object aObject) Returns the firstILcdLayerencountered in this list that is associated with the givenObject.intsize()Returns the number of Objects in all theILcdLayersubsets.
-
Constructor Details
-
TLcyLayerSubsetList
public TLcyLayerSubsetList()
-
-
Method Details
-
addElement
Description copied from interface:ILcyLayerSubsetListAdds anObjectto the subset associated with the givenILcdLayer.aObjectmust belong to theILcdModelthat aLayer refers to.- Specified by:
addElementin interfaceILcyLayerSubsetList- Parameters:
aObject- TheObjectto add.aLayer- TheILcdLayeraObjectbelongs to.
-
removeElement
Description copied from interface:ILcyLayerSubsetListRemoves anObjectthat was in the subset associated with the givenILcdLayer.- Specified by:
removeElementin interfaceILcyLayerSubsetList- Parameters:
aObject- TheObjectto remove.aLayer- TheILcdLayeraObjectbelongs to.
-
layers
Description copied from interface:ILcyLayerSubsetListReturns anEnumerationof allILcdLayers in this list which are associated with at least oneObject.- Specified by:
layersin interfaceILcyLayerSubsetList- Returns:
- An
Enumerationof allILcdLayers in this list which are associated with at least oneObject.
-
layerSubset
Description copied from interface:ILcyLayerSubsetListReturns anEnumerationof all Objects currently in the subset associated with the givenILcdLayer- Specified by:
layerSubsetin interfaceILcyLayerSubsetList- Returns:
- An
Enumerationof all Objects currently in the subset associated with the givenILcdLayer.
-
retrieveLayer
Description copied from interface:ILcyLayerSubsetListReturns the firstILcdLayerencountered in this list that is associated with the givenObject. ReturnsnullifaObjectis not associated with anyILcdLayerin this list.- Specified by:
retrieveLayerin interfaceILcyLayerSubsetList- Parameters:
aObject- The object for which the layer should be retrieved.- Returns:
- The first
ILcdLayerassociated withaObject.
-
asAssocs
Retrieves an array ofILcdAssoc. For eachILcdAssoc, the methodgetKey()returns anILcdLayer, the methodgetValue()returns aVectorcontaining the Objects part of the subset of thisILcdLayer.- Specified by:
asAssocsin interfaceILcyLayerSubsetList- Returns:
- The array of
ILcdAssocobjects associating the layers with their objects.
-
removeAllElements
public void removeAllElements()Description copied from interface:ILcyLayerSubsetListRemoves all the subsets.- Specified by:
removeAllElementsin interfaceILcyLayerSubsetList
-
elements
Description copied from interface:ILcyLayerSubsetListReturns anEnumerationof all the Objects in all theILcdLayersubsets.- Specified by:
elementsin interfaceILcyLayerSubsetList- Returns:
- An
Enumerationof all the Objects in all theILcdLayersubsets.
-
size
public int size()Description copied from interface:ILcyLayerSubsetListReturns the number of Objects in all theILcdLayersubsets.- Specified by:
sizein interfaceILcyLayerSubsetList- Returns:
- The number of Objects in all the
ILcdLayersubsets.
-
contains
Tests contains by comparing reference (not using Object.equals).- Specified by:
containsin interfaceILcyLayerSubsetList- Parameters:
aObject- The object whose presence in this list is to be tested.- Returns:
trueif the givenObjectbelongs to one of theILcdLayersubsets, false otherwise.
-