public class IlpDefaultNetworkSelectionModel extends IlpAbstractNetworkSelectionModel
IlpNetworkSelectionModel
.
It manages an unordered set of selected objects. When this set changes,
NetworkSelectionEvent
s are sent.helper
Constructor and Description |
---|
IlpDefaultNetworkSelectionModel() |
addNetworkSelectionListener, fireNetworkSelectionEvent, removeNetworkSelectionListener
addSelectionListener, fireGraphSelectionEvent, getRepresentationObjectMapper, removeSelectionListener, setRepresentationObjectMapper
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRepresentationObjectMapper, setRepresentationObjectMapper
public IlpRepresentationObject getSelectedRepresentationObject()
IlpRepresentationObject
from the collection of selected representation objects.
Returns null
if there is no selected object.null
if
the selection is empty.public Collection getSelectedRepresentationObjects()
IlpRepresentationObject
s.
The set should be ordered if the component implementing this interface
supports an ordered selection.
Returns an empty set if there is no selected object.IlpRepresentationObject
s.public void setSelectedRepresentationObject(IlpRepresentationObject object)
IlpRepresentationObject
.
This has no effect if the given object is already selected.object
- The object that will become the selection.public void setSelectedRepresentationObjects(Collection selected)
IlpRepresentationObject
s.selected
- The collection of representation objects that will become
the selection.public boolean isRepresentationObjectSelected(IlpRepresentationObject object)
object
- The representation object which may be selected.public void addSelectionRepresentationObject(IlpRepresentationObject object)
IlpRepresentationObject
to the
selection.
This has no effect if the given object is null
or if
it is already selected.object
- The representation object that will be added to the
selection.public void removeSelectionRepresentationObject(IlpRepresentationObject object)
IlpRepresentationObject
from the
selection.
This has no effect if the given object is null
or if it
is currently unselected.object
- The representation object that will be removed from the
selection.public void removeSelectionRepresentationObjects(Collection ros)
IlpRepresentationObject
s from
the selection.
This has no effect if the given objects are null
or if
they are currently unselected.ros
- The collection of representation objects to be removedpublic void clearSelection()
public IlpObject getSelectedObject()
IlpObject
from the collection of selected objects.
Returns null
if there is no selected object.public Collection getSelectedObjects()
IlpObject
s.
The set should be ordered if the component implementing this interface
supports an ordered selection.
Returns an empty set if there is no selected object.IlpObject
s.public void setSelectedObject(IlpObject object)
IlpObject
.
This has no effect if the given object is already selected.object
- The object that will become the selection.public void setSelectedObjects(Collection objects)
IlpObject
s.objects
- The collection of objects that will become the selection.public boolean isObjectSelected(IlpObject object)
object
- The object which may be selected.public void addSelectionObject(IlpObject object)
IlpObject
to the selection.
This has no effect if the given object is null
or if
it is already selected.object
- The object that will be added to the selection.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.