Constructor and Description |
---|
GraphSelection(GraphGUI gui) |
Modifier and Type | Method and Description |
---|---|
void |
addEdgesToSelection(Collection<E> l)
Add the edges in l to the list of selected edges
|
void |
addEdgeToSelection(E edge) |
void |
addNodesToSelection(Collection<V> l)
Add the nodes in l to the list of selected nodes
|
void |
addNodeToSelection(V node) |
void |
backendSelectionUpdated(List<V> nodes,
List<E> edges)
Set the selection.
|
void |
extendSelectionToIncomingEdges()
Add all the incoming edges of the selected nodes to the list of selected edges
|
void |
extendSelectionToIncomingNodes()
Add all the incoming nodes of the selected nodes to the list of selected nodes
|
void |
extendSelectionToInternalEdges()
Add all the edges between the selected nodes to the list of selected edges
|
void |
extendSelectionToOutgoingEdges()
Add all the outgoing edges of the selected nodes to the list of selected edges
|
void |
extendSelectionToOutgoingNodes()
Add all the outgoing nodes of the selected nodes to the list of selected nodes
|
List<E> |
getSelectedEdges() |
List<V> |
getSelectedNodes() |
SelectionType |
getSelectionType() |
void |
invertEdgesSelection()
Invert the selection of edges
|
void |
invertNodesSelection()
Invert the selection of nodes
|
void |
invertSelection()
Invert the selection of nodes and edges
|
void |
selectAll()
Select all the edges and
|
void |
selectAllEdges()
Select all the edges
|
void |
selectAllNodes()
Select all the nodes
|
void |
selectEdge(E edge)
Select a single edge
|
void |
selectNode(V node)
Select a single node.
|
void |
setSelectedEdges(Collection<E> l)
Set the list of selected edges to the edges in the list l
|
void |
setSelectedNodes(Collection<V> l)
Set the list of selected nodes to the nodes in the list l
|
void |
setSelection(Collection<V> nodes,
Collection<E> edges)
Set the selection
|
void |
unselectAll()
Unselect all the edges and nodes
|
void |
unselectAllEdges()
Unselect all the edges
|
void |
unselectAllNodes()
Unselect all the nodes
|
void |
unselectEdge(E edge) |
void |
unselectNode(V node) |
public GraphSelection(GraphGUI gui)
public SelectionType getSelectionType()
public void backendSelectionUpdated(List<V> nodes, List<E> edges)
nodes
- edges
- public void selectNode(V node)
node
- public void selectEdge(E edge)
edge
- public void selectAll()
public void selectAllNodes()
public void selectAllEdges()
public void unselectAll()
public void unselectAllNodes()
public void unselectAllEdges()
public void unselectNode(V node)
public void unselectEdge(E edge)
public void addNodeToSelection(V node)
public void addEdgeToSelection(E edge)
public void addNodesToSelection(Collection<V> l)
l
- the list of nodes to selectpublic void addEdgesToSelection(Collection<E> l)
l
- the list of edges to selectpublic void setSelectedNodes(Collection<V> l)
l
- the list of nodes to selectpublic void setSelectedEdges(Collection<E> l)
l
- the list of edges to selectpublic void setSelection(Collection<V> nodes, Collection<E> edges)
nodes
- edges
- public void extendSelectionToIncomingNodes()
public void extendSelectionToIncomingEdges()
public void extendSelectionToInternalEdges()
public void extendSelectionToOutgoingNodes()
public void extendSelectionToOutgoingEdges()
public void invertSelection()
public void invertNodesSelection()
public void invertEdgesSelection()
Copyright © 2005–2020. All rights reserved.