Class DefaultSelectionContext
- java.lang.Object
-
- org.opennms.features.topology.api.DefaultSelectionContext
-
- All Implemented Interfaces:
SelectionContext
public class DefaultSelectionContext extends Object implements SelectionContext
-
-
Constructor Summary
Constructors Constructor Description DefaultSelectionContext(GraphContainer graphContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deselectAll()
boolean
deselectVertexRefs(Collection<? extends VertexRef> vertexRefs)
GraphContainer
getGraphContainer()
Collection<EdgeRef>
getSelectedEdgeRefs()
Collection<VertexRef>
getSelectedVertexRefs()
boolean
isEdgeRefSelected(EdgeRef edgeRef)
boolean
isVertexRefSelected(VertexRef vertexRef)
boolean
selectVertexRefs(Collection<? extends VertexRef> vertexRefs)
boolean
setSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)
boolean
setSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
-
-
-
Constructor Detail
-
DefaultSelectionContext
public DefaultSelectionContext(GraphContainer graphContainer)
-
-
Method Detail
-
isVertexRefSelected
public boolean isVertexRefSelected(VertexRef vertexRef)
- Specified by:
isVertexRefSelected
in interfaceSelectionContext
-
isEdgeRefSelected
public boolean isEdgeRefSelected(EdgeRef edgeRef)
- Specified by:
isEdgeRefSelected
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
-
selectVertexRefs
public boolean selectVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
selectVertexRefs
in interfaceSelectionContext
-
deselectVertexRefs
public boolean deselectVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
deselectVertexRefs
in interfaceSelectionContext
-
deselectAll
public boolean deselectAll()
- Specified by:
deselectAll
in interfaceSelectionContext
-
setSelectedVertexRefs
public boolean setSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
- Specified by:
setSelectedVertexRefs
in interfaceSelectionContext
-
setSelectedEdgeRefs
public boolean setSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)
- Specified by:
setSelectedEdgeRefs
in interfaceSelectionContext
-
-