Class DefaultSelectionContext
- java.lang.Object
-
- org.opennms.features.topology.api.DefaultSelectionContext
-
- All Implemented Interfaces:
SelectionContext
public class DefaultSelectionContext extends java.lang.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(java.util.Collection<? extends VertexRef> vertexRefs)
GraphContainer
getGraphContainer()
java.util.Collection<EdgeRef>
getSelectedEdgeRefs()
java.util.Collection<VertexRef>
getSelectedVertexRefs()
boolean
isEdgeRefSelected(EdgeRef edgeRef)
boolean
isVertexRefSelected(VertexRef vertexRef)
boolean
selectVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
boolean
setSelectedEdgeRefs(java.util.Collection<? extends EdgeRef> edgeRefs)
boolean
setSelectedVertexRefs(java.util.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 java.util.Collection<VertexRef> getSelectedVertexRefs()
- Specified by:
getSelectedVertexRefs
in interfaceSelectionContext
-
getSelectedEdgeRefs
public java.util.Collection<EdgeRef> getSelectedEdgeRefs()
- Specified by:
getSelectedEdgeRefs
in interfaceSelectionContext
-
getGraphContainer
public GraphContainer getGraphContainer()
- Specified by:
getGraphContainer
in interfaceSelectionContext
-
selectVertexRefs
public boolean selectVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
- Specified by:
selectVertexRefs
in interfaceSelectionContext
-
deselectVertexRefs
public boolean deselectVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
- Specified by:
deselectVertexRefs
in interfaceSelectionContext
-
deselectAll
public boolean deselectAll()
- Specified by:
deselectAll
in interfaceSelectionContext
-
setSelectedVertexRefs
public boolean setSelectedVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
- Specified by:
setSelectedVertexRefs
in interfaceSelectionContext
-
setSelectedEdgeRefs
public boolean setSelectedEdgeRefs(java.util.Collection<? extends EdgeRef> edgeRefs)
- Specified by:
setSelectedEdgeRefs
in interfaceSelectionContext
-
-