Class DefaultSelectionManager
- java.lang.Object
-
- org.opennms.features.topology.app.internal.DefaultSelectionManager
-
- All Implemented Interfaces:
SelectionContext
,SelectionListener
,SelectionManager
,SelectionNotifier
public class DefaultSelectionManager extends Object implements SelectionManager
-
-
Constructor Summary
Constructors Constructor Description DefaultSelectionManager(GraphContainer graphContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionListener(SelectionListener listener)
boolean
deselectAll()
boolean
deselectVertexRefs(Collection<? extends VertexRef> vertexRefs)
GraphContainer
getGraphContainer()
Collection<EdgeRef>
getSelectedEdgeRefs()
Collection<VertexRef>
getSelectedVertexRefs()
boolean
isEdgeRefSelected(EdgeRef edgeRef)
boolean
isVertexRefSelected(VertexRef vertexRef)
void
removeSelectionListener(SelectionListener listener)
void
selectionChanged(SelectionContext selectionContext)
boolean
selectVertexRefs(Collection<? extends VertexRef> vertexRefs)
boolean
setSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)
boolean
setSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
-
-
-
Constructor Detail
-
DefaultSelectionManager
public DefaultSelectionManager(GraphContainer graphContainer)
-
-
Method Detail
-
deselectAll
public boolean deselectAll()
- Specified by:
deselectAll
in interfaceSelectionContext
-
deselectVertexRefs
public boolean deselectVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
deselectVertexRefs
in interfaceSelectionContext
-
getSelectedVertexRefs
public Collection<VertexRef> getSelectedVertexRefs()
- Specified by:
getSelectedVertexRefs
in interfaceSelectionContext
-
getSelectedEdgeRefs
public Collection<EdgeRef> getSelectedEdgeRefs()
- Specified by:
getSelectedEdgeRefs
in interfaceSelectionContext
-
getGraphContainer
public GraphContainer getGraphContainer()
- Specified by:
getGraphContainer
in interfaceSelectionContext
-
isEdgeRefSelected
public boolean isEdgeRefSelected(EdgeRef edgeRef)
- Specified by:
isEdgeRefSelected
in interfaceSelectionContext
-
isVertexRefSelected
public boolean isVertexRefSelected(VertexRef vertexRef)
- Specified by:
isVertexRefSelected
in interfaceSelectionContext
-
selectVertexRefs
public boolean selectVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
selectVertexRefs
in interfaceSelectionContext
-
setSelectedEdgeRefs
public boolean setSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)
- Specified by:
setSelectedEdgeRefs
in interfaceSelectionContext
-
setSelectedVertexRefs
public boolean setSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
setSelectedVertexRefs
in interfaceSelectionContext
-
addSelectionListener
public void addSelectionListener(SelectionListener listener)
- Specified by:
addSelectionListener
in interfaceSelectionNotifier
-
removeSelectionListener
public void removeSelectionListener(SelectionListener listener)
- Specified by:
removeSelectionListener
in interfaceSelectionNotifier
-
selectionChanged
public void selectionChanged(SelectionContext selectionContext)
- Specified by:
selectionChanged
in interfaceSelectionListener
-
-