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 booleandeselectAll()booleandeselectVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)GraphContainergetGraphContainer()java.util.Collection<EdgeRef>getSelectedEdgeRefs()java.util.Collection<VertexRef>getSelectedVertexRefs()booleanisEdgeRefSelected(EdgeRef edgeRef)booleanisVertexRefSelected(VertexRef vertexRef)booleanselectVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)booleansetSelectedEdgeRefs(java.util.Collection<? extends EdgeRef> edgeRefs)booleansetSelectedVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
-
-
-
Constructor Detail
-
DefaultSelectionContext
public DefaultSelectionContext(GraphContainer graphContainer)
-
-
Method Detail
-
isVertexRefSelected
public boolean isVertexRefSelected(VertexRef vertexRef)
- Specified by:
isVertexRefSelectedin interfaceSelectionContext
-
isEdgeRefSelected
public boolean isEdgeRefSelected(EdgeRef edgeRef)
- Specified by:
isEdgeRefSelectedin interfaceSelectionContext
-
getSelectedVertexRefs
public java.util.Collection<VertexRef> getSelectedVertexRefs()
- Specified by:
getSelectedVertexRefsin interfaceSelectionContext
-
getSelectedEdgeRefs
public java.util.Collection<EdgeRef> getSelectedEdgeRefs()
- Specified by:
getSelectedEdgeRefsin interfaceSelectionContext
-
getGraphContainer
public GraphContainer getGraphContainer()
- Specified by:
getGraphContainerin interfaceSelectionContext
-
selectVertexRefs
public boolean selectVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
- Specified by:
selectVertexRefsin interfaceSelectionContext
-
deselectVertexRefs
public boolean deselectVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
- Specified by:
deselectVertexRefsin interfaceSelectionContext
-
deselectAll
public boolean deselectAll()
- Specified by:
deselectAllin interfaceSelectionContext
-
setSelectedVertexRefs
public boolean setSelectedVertexRefs(java.util.Collection<? extends VertexRef> vertexRefs)
- Specified by:
setSelectedVertexRefsin interfaceSelectionContext
-
setSelectedEdgeRefs
public boolean setSelectedEdgeRefs(java.util.Collection<? extends EdgeRef> edgeRefs)
- Specified by:
setSelectedEdgeRefsin interfaceSelectionContext
-
-