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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Object aObject, ILcdGXYLayer aGXYLayer) Adds a domain object that is part of the given layer.asAssocs()
Retrieves an array ofILcdAssoc
.boolean
Tests contains by comparing reference (not using Object.equals).elements()
Returns anEnumeration
of all the Objects in all theILcdGXYLayer
subsets.static TLcdGXYLayerSubsetList
fromViewSelection
(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.void
Removes all the subsets.void
removeElement
(Object aObject, ILcdGXYLayer aGXYLayer) Removes the domain object part of the given layer.retrieveGXYLayer
(Object aObject) Returns theILcdGXYLayer
for which the givenObject
was added.int
size()
Returns the number of all the Objects in all theILcdGXYLayer
subsets.
-
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:ILcdGXYLayerSubsetList
Adds a domain object that is part of the given layer.- Specified by:
addElement
in interfaceILcdGXYLayerSubsetList
- Parameters:
aObject
- theObject
to add.aGXYLayer
- theILcdGXYLayer
theObject
belongs to.
-
removeElement
Description copied from interface:ILcdGXYLayerSubsetList
Removes the domain object part of the given layer.- Specified by:
removeElement
in interfaceILcdGXYLayerSubsetList
- Parameters:
aObject
- theObject
to remove.aGXYLayer
- theILcdGXYLayer
theObject
belongs to.
-
layers
Description copied from interface:ILcdGXYLayerSubsetList
Returns an Enumeration of all layers for which objects are present.- Specified by:
layers
in interfaceILcdGXYLayerSubsetList
- Returns:
- an Enumeration of all objects that are part of the given layer.
-
layerSubset
Description copied from interface:ILcdGXYLayerSubsetList
Returns an Enumeration of all objects that are part of the given layer.- Specified by:
layerSubset
in 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:ILcdGXYLayerSubsetList
Returns theILcdGXYLayer
for which the givenObject
was added.- Specified by:
retrieveGXYLayer
in interfaceILcdGXYLayerSubsetList
- Returns:
- the
ILcdGXYLayer
if aObject has been added, ornull
if aObject does not belong to thisILcdGXYLayerSubsetList
- See Also:
-
asAssocs
Retrieves an array ofILcdAssoc
. For eachILcdAssoc
, the methodgetKey()
returns anILcdGXYLayer
, the methodgetValue()
returns aVector
containing the Objects part of the subset of thisILcdGXYLayer
.- Specified by:
asAssocs
in 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:ILcdGXYLayerSubsetList
Removes all the subsets.- Specified by:
removeAllElements
in interfaceILcdGXYLayerSubsetList
-
elements
Description copied from interface:ILcdGXYLayerSubsetList
Returns anEnumeration
of all the Objects in all theILcdGXYLayer
subsets.- Specified by:
elements
in interfaceILcdGXYLayerSubsetList
- Returns:
- an
Enumeration
of all the Objects in all theILcdGXYLayer
subsets
-
size
public int size()Description copied from interface:ILcdGXYLayerSubsetList
Returns the number of all the Objects in all theILcdGXYLayer
subsets.- Specified by:
size
in interfaceILcdGXYLayerSubsetList
- Returns:
- the number of all the Objects in all the
ILcdGXYLayer
subsets
-
contains
Tests contains by comparing reference (not using Object.equals).- Specified by:
contains
in interfaceILcdGXYLayerSubsetList
- Returns:
true
if the givenObject
belongs to one of theILcdGXYLayer
subsets. Tests shall be done by comparing Object reference (not using Object.equals)
-