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 voidaddSelectionListener(SelectionListener listener)booleandeselectAll()booleandeselectVertexRefs(Collection<? extends VertexRef> vertexRefs)GraphContainergetGraphContainer()Collection<EdgeRef>getSelectedEdgeRefs()Collection<VertexRef>getSelectedVertexRefs()booleanisEdgeRefSelected(EdgeRef edgeRef)booleanisVertexRefSelected(VertexRef vertexRef)voidremoveSelectionListener(SelectionListener listener)voidselectionChanged(SelectionContext selectionContext)booleanselectVertexRefs(Collection<? extends VertexRef> vertexRefs)booleansetSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)booleansetSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
-
-
-
Constructor Detail
-
DefaultSelectionManager
public DefaultSelectionManager(GraphContainer graphContainer)
-
-
Method Detail
-
deselectAll
public boolean deselectAll()
- Specified by:
deselectAllin interfaceSelectionContext
-
deselectVertexRefs
public boolean deselectVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
deselectVertexRefsin interfaceSelectionContext
-
getSelectedVertexRefs
public Collection<VertexRef> getSelectedVertexRefs()
- Specified by:
getSelectedVertexRefsin interfaceSelectionContext
-
getSelectedEdgeRefs
public Collection<EdgeRef> getSelectedEdgeRefs()
- Specified by:
getSelectedEdgeRefsin interfaceSelectionContext
-
getGraphContainer
public GraphContainer getGraphContainer()
- Specified by:
getGraphContainerin interfaceSelectionContext
-
isEdgeRefSelected
public boolean isEdgeRefSelected(EdgeRef edgeRef)
- Specified by:
isEdgeRefSelectedin interfaceSelectionContext
-
isVertexRefSelected
public boolean isVertexRefSelected(VertexRef vertexRef)
- Specified by:
isVertexRefSelectedin interfaceSelectionContext
-
selectVertexRefs
public boolean selectVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
selectVertexRefsin interfaceSelectionContext
-
setSelectedEdgeRefs
public boolean setSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)
- Specified by:
setSelectedEdgeRefsin interfaceSelectionContext
-
setSelectedVertexRefs
public boolean setSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
setSelectedVertexRefsin interfaceSelectionContext
-
addSelectionListener
public void addSelectionListener(SelectionListener listener)
- Specified by:
addSelectionListenerin interfaceSelectionNotifier
-
removeSelectionListener
public void removeSelectionListener(SelectionListener listener)
- Specified by:
removeSelectionListenerin interfaceSelectionNotifier
-
selectionChanged
public void selectionChanged(SelectionContext selectionContext)
- Specified by:
selectionChangedin interfaceSelectionListener
-
-