Package com.luciad.view.gxy
Class TLcdGXYLayerSubsetList
java.lang.Object
com.luciad.view.gxy.TLcdGXYLayerSubsetList
- All Implemented Interfaces:
ILcdGXYLayerSubsetList
This is an implementation of the
ILcdGXYLayerSubsetList
interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(Object aObject, ILcdGXYLayer aGXYLayer) Adds a domain object that is part of the given layer.asAssocs()Retrieves an array ofILcdAssoc.booleanTests contains by comparing reference (not using Object.equals).elements()Returns anEnumerationof all the Objects in all theILcdGXYLayersubsets.static TLcdGXYLayerSubsetListfromViewSelection(ILcdGXYView aView) Returns a list with the selected elements in the view, ordered from top to bottom.layers()Returns an Enumeration of all layers for which objects are present.layerSubset(ILcdGXYLayer aGXYLayer) Returns an Enumeration of all objects that are part of the given layer.voidRemoves all the subsets.voidremoveElement(Object aObject, ILcdGXYLayer aGXYLayer) Removes the domain object part of the given layer.retrieveGXYLayer(Object aObject) Returns theILcdGXYLayerfor which the givenObjectwas added.intsize()Returns the number of all the Objects in all theILcdGXYLayersubsets.
-
Constructor Details
-
TLcdGXYLayerSubsetList
public TLcdGXYLayerSubsetList()
-
-
Method Details
-
fromViewSelection
Returns a list with the selected elements in the view, ordered from top to bottom.- Parameters:
aView- the view with selected elements- Returns:
- a list containing all selected elements
-
addElement
Description copied from interface:ILcdGXYLayerSubsetListAdds a domain object that is part of the given layer.- Specified by:
addElementin interfaceILcdGXYLayerSubsetList- Parameters:
aObject- theObjectto add.aGXYLayer- theILcdGXYLayertheObjectbelongs to.
-
removeElement
Description copied from interface:ILcdGXYLayerSubsetListRemoves the domain object part of the given layer.- Specified by:
removeElementin interfaceILcdGXYLayerSubsetList- Parameters:
aObject- theObjectto remove.aGXYLayer- theILcdGXYLayertheObjectbelongs to.
-
layers
Description copied from interface:ILcdGXYLayerSubsetListReturns an Enumeration of all layers for which objects are present.- Specified by:
layersin interfaceILcdGXYLayerSubsetList- Returns:
- an Enumeration of all objects that are part of the given layer.
-
layerSubset
Description copied from interface:ILcdGXYLayerSubsetListReturns an Enumeration of all objects that are part of the given layer.- Specified by:
layerSubsetin interfaceILcdGXYLayerSubsetList- Parameters:
aGXYLayer- the layer whose objects to return- Returns:
- an Enumeration of all objects that are part of the given layer.
-
retrieveGXYLayer
Description copied from interface:ILcdGXYLayerSubsetListReturns theILcdGXYLayerfor which the givenObjectwas added.- Specified by:
retrieveGXYLayerin interfaceILcdGXYLayerSubsetList- Returns:
- the
ILcdGXYLayerif aObject has been added, ornullif aObject does not belong to thisILcdGXYLayerSubsetList - See Also:
-
asAssocs
Retrieves an array ofILcdAssoc. For eachILcdAssoc, the methodgetKey()returns anILcdGXYLayer, the methodgetValue()returns aVectorcontaining the Objects part of the subset of thisILcdGXYLayer.- Specified by:
asAssocsin interfaceILcdGXYLayerSubsetList- Returns:
- an array of ILcdAssoc objects, with the key being an ILcdGXYLayer, and the value a Vector.
-
removeAllElements
public void removeAllElements()Description copied from interface:ILcdGXYLayerSubsetListRemoves all the subsets.- Specified by:
removeAllElementsin interfaceILcdGXYLayerSubsetList
-
elements
Description copied from interface:ILcdGXYLayerSubsetListReturns anEnumerationof all the Objects in all theILcdGXYLayersubsets.- Specified by:
elementsin interfaceILcdGXYLayerSubsetList- Returns:
- an
Enumerationof all the Objects in all theILcdGXYLayersubsets
-
size
public int size()Description copied from interface:ILcdGXYLayerSubsetListReturns the number of all the Objects in all theILcdGXYLayersubsets.- Specified by:
sizein interfaceILcdGXYLayerSubsetList- Returns:
- the number of all the Objects in all the
ILcdGXYLayersubsets
-
contains
Tests contains by comparing reference (not using Object.equals).- Specified by:
containsin interfaceILcdGXYLayerSubsetList- Returns:
trueif the givenObjectbelongs to one of theILcdGXYLayersubsets. Tests shall be done by comparing Object reference (not using Object.equals)
-