public class DefaultSelectionContext extends Object implements SelectionContext
Constructor and Description |
---|
DefaultSelectionContext(GraphContainer graphContainer) |
Modifier and Type | Method and 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) |
public DefaultSelectionContext(GraphContainer graphContainer)
public boolean isVertexRefSelected(VertexRef vertexRef)
isVertexRefSelected
in interface SelectionContext
public boolean isEdgeRefSelected(EdgeRef edgeRef)
isEdgeRefSelected
in interface SelectionContext
public Collection<VertexRef> getSelectedVertexRefs()
getSelectedVertexRefs
in interface SelectionContext
public Collection<EdgeRef> getSelectedEdgeRefs()
getSelectedEdgeRefs
in interface SelectionContext
public GraphContainer getGraphContainer()
getGraphContainer
in interface SelectionContext
public boolean selectVertexRefs(Collection<? extends VertexRef> vertexRefs)
selectVertexRefs
in interface SelectionContext
public boolean deselectVertexRefs(Collection<? extends VertexRef> vertexRefs)
deselectVertexRefs
in interface SelectionContext
public boolean deselectAll()
deselectAll
in interface SelectionContext
public boolean setSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
setSelectedVertexRefs
in interface SelectionContext
public boolean setSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)
setSelectedEdgeRefs
in interface SelectionContext
Copyright © 2021. All rights reserved.