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