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 SelectionContextpublic boolean deselectVertexRefs(Collection<? extends VertexRef> vertexRefs)
deselectVertexRefs in interface SelectionContextpublic Collection<VertexRef> getSelectedVertexRefs()
getSelectedVertexRefs in interface SelectionContextpublic Collection<EdgeRef> getSelectedEdgeRefs()
getSelectedEdgeRefs in interface SelectionContextpublic GraphContainer getGraphContainer()
getGraphContainer in interface SelectionContextpublic boolean isEdgeRefSelected(EdgeRef edgeRef)
isEdgeRefSelected in interface SelectionContextpublic boolean isVertexRefSelected(VertexRef vertexRef)
isVertexRefSelected in interface SelectionContextpublic boolean selectVertexRefs(Collection<? extends VertexRef> vertexRefs)
selectVertexRefs in interface SelectionContextpublic boolean setSelectedEdgeRefs(Collection<? extends EdgeRef> edgeRefs)
setSelectedEdgeRefs in interface SelectionContextpublic boolean setSelectedVertexRefs(Collection<? extends VertexRef> vertexRefs)
setSelectedVertexRefs in interface SelectionContextpublic void addSelectionListener(SelectionListener listener)
addSelectionListener in interface SelectionNotifierpublic void removeSelectionListener(SelectionListener listener)
removeSelectionListener in interface SelectionNotifierpublic void selectionChanged(SelectionContext selectionContext)
selectionChanged in interface SelectionListenerCopyright © 2020. All rights reserved.