public class TLcdGXYLayerSubsetList extends Object implements ILcdGXYLayerSubsetList
ILcdGXYLayerSubsetList
interface.Constructor and Description |
---|
TLcdGXYLayerSubsetList() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(Object aObject,
ILcdGXYLayer aGXYLayer)
Adds a domain object that is part of the given layer.
|
ILcdAssoc[] |
asAssocs()
Retrieves an array of
ILcdAssoc . |
boolean |
contains(Object aObject)
Tests contains by comparing reference (not using Object.equals).
|
Enumeration |
elements()
Returns an
Enumeration of all the Objects in all the ILcdGXYLayer subsets. |
static TLcdGXYLayerSubsetList |
fromViewSelection(ILcdGXYView aView)
Returns a list with the selected elements in the view, ordered from top to bottom.
|
Enumeration |
layers()
Returns an Enumeration of all layers for which objects are present.
|
Enumeration |
layerSubset(ILcdGXYLayer aGXYLayer)
Returns an Enumeration of all objects that are part of the given layer.
|
void |
removeAllElements()
Removes all the subsets.
|
void |
removeElement(Object aObject,
ILcdGXYLayer aGXYLayer)
Removes the domain object part of the given layer.
|
ILcdGXYLayer |
retrieveGXYLayer(Object aObject)
Returns the
ILcdGXYLayer for which the given Object was added. |
int |
size()
Returns the number of all the Objects in all the
ILcdGXYLayer subsets. |
public static TLcdGXYLayerSubsetList fromViewSelection(ILcdGXYView aView)
aView
- the view with selected elementspublic void addElement(Object aObject, ILcdGXYLayer aGXYLayer)
ILcdGXYLayerSubsetList
addElement
in interface ILcdGXYLayerSubsetList
aObject
- the Object
to add.aGXYLayer
- the ILcdGXYLayer
the Object
belongs to.public void removeElement(Object aObject, ILcdGXYLayer aGXYLayer)
ILcdGXYLayerSubsetList
removeElement
in interface ILcdGXYLayerSubsetList
aObject
- the Object
to remove.aGXYLayer
- the ILcdGXYLayer
the Object
belongs to.public Enumeration layers()
ILcdGXYLayerSubsetList
layers
in interface ILcdGXYLayerSubsetList
public Enumeration layerSubset(ILcdGXYLayer aGXYLayer)
ILcdGXYLayerSubsetList
layerSubset
in interface ILcdGXYLayerSubsetList
aGXYLayer
- the layer whose objects to returnpublic ILcdGXYLayer retrieveGXYLayer(Object aObject)
ILcdGXYLayerSubsetList
ILcdGXYLayer
for which the given Object
was added.retrieveGXYLayer
in interface ILcdGXYLayerSubsetList
ILcdGXYLayer
if aObject has been added, or null
if aObject does not belong to this ILcdGXYLayerSubsetList
ILcdGXYLayerSubsetList.contains(java.lang.Object)
public ILcdAssoc[] asAssocs()
ILcdAssoc
.
For each ILcdAssoc
, the method getKey()
returns
an ILcdGXYLayer
, the method getValue()
returns
a Vector
containing the Objects part of the subset of this
ILcdGXYLayer
.asAssocs
in interface ILcdGXYLayerSubsetList
public void removeAllElements()
ILcdGXYLayerSubsetList
removeAllElements
in interface ILcdGXYLayerSubsetList
public Enumeration elements()
ILcdGXYLayerSubsetList
Enumeration
of all the Objects in all the ILcdGXYLayer
subsets.elements
in interface ILcdGXYLayerSubsetList
Enumeration
of all the Objects in all the ILcdGXYLayer
subsetspublic int size()
ILcdGXYLayerSubsetList
ILcdGXYLayer
subsets.size
in interface ILcdGXYLayerSubsetList
ILcdGXYLayer
subsetspublic boolean contains(Object aObject)
contains
in interface ILcdGXYLayerSubsetList
true
if the given Object
belongs to
one of the ILcdGXYLayer
subsets.
Tests shall be done by comparing Object reference (not using Object.equals)