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