All Packages Class Hierarchy This Package Previous Next Index
Class Graph.SelectionCollector
java.lang.Object
|
+----java.awt.Component
|
+----Graph.GraphEventsCollector
|
+----Graph.SelectionCollector
- public class SelectionCollector
- extends GraphEventsCollector
- implements HostCollector
Selection Collector is used for the most of the
standard manipulation: selecting, deleting and copy-paste
What makes this collector interesting is its ability
to serve as a host to another collector, that will
perform some changes on the selected part of the
graph. Nice example of this is Movement Collector, that
is used for moving selected parts of graph.
- See Also:
- MovementCollector
-
SelectionCollector()
- SelectionCollector constructor comment.
-
clear()
-
Clears the hashtables of selected edges and nodes
-
clearMarks()
- Removes the selection marks from the selected nodes and edges.
-
close()
-
-
copy()
-
Copy performs copying selected part of the graph
to the clipboard.
-
delete()
-
Deletes the selected edges and nodes.
-
deselect(Edge)
-
-
deselect(Node)
-
-
drawEdgeMarks(Edge, Graphics)
-
-
drawNodeMarks(Node, Graphics)
-
-
flipSelection(Edge)
-
If the edge was selected, this method deselects it (and vice versa)
-
flipSelection(Node)
-
If the node was selected it deselects it, and vice versa.
-
keyPressed(KeyEvent)
-
-
keyReleased(KeyEvent)
-
-
keyTyped(KeyEvent)
-
-
mouseClicked(MouseEvent)
-
-
mouseDragged(MouseEvent)
- mouseDragged method comment.
-
mousePressed(MouseEvent)
- mousePressed method comment.
-
mouseReleased(MouseEvent)
- mouseReleased method comment.
-
paint(Graphics)
-
-
paste()
-
Pastes cloned nodes and edges from the clipboard to the Panel
-
select(Edge)
-
-
select(Node)
-
-
selectEdges()
-
-
transfer(GraphEventsCollector)
-
-
update(Graphics)
-
SelectionCollector
public SelectionCollector()
- SelectionCollector constructor comment.
clear
public void clear()
- Clears the hashtables of selected edges and nodes
clearMarks
public void clearMarks()
- Removes the selection marks from the selected nodes and edges.
close
public void close()
- Overrides:
- close in class GraphEventsCollector
copy
public void copy()
- Copy performs copying selected part of the graph
to the clipboard. Note that this copying is performed
by cloning selected objects.
delete
public void delete()
- Deletes the selected edges and nodes.
deselect
public void deselect(Edge e)
deselect
public void deselect(Node n)
drawEdgeMarks
public void drawEdgeMarks(Edge e,
Graphics g)
drawNodeMarks
public void drawNodeMarks(Node n,
Graphics g)
flipSelection
public void flipSelection(Edge e)
- If the edge was selected, this method deselects it (and vice versa)
flipSelection
public void flipSelection(Node n)
- If the node was selected it deselects it, and vice versa.
keyPressed
public void keyPressed(KeyEvent e)
- Overrides:
- keyPressed in class GraphEventsCollector
keyReleased
public void keyReleased(KeyEvent e)
- Overrides:
- keyReleased in class GraphEventsCollector
keyTyped
public void keyTyped(KeyEvent e)
- Overrides:
- keyTyped in class GraphEventsCollector
mouseClicked
public void mouseClicked(MouseEvent e)
- Overrides:
- mouseClicked in class GraphEventsCollector
mouseDragged
public void mouseDragged(MouseEvent e)
- mouseDragged method comment.
- Overrides:
- mouseDragged in class GraphEventsCollector
mousePressed
public void mousePressed(MouseEvent e)
- mousePressed method comment.
- Overrides:
- mousePressed in class GraphEventsCollector
mouseReleased
public void mouseReleased(MouseEvent e)
- mouseReleased method comment.
- Overrides:
- mouseReleased in class GraphEventsCollector
paint
public void paint(Graphics g)
- Overrides:
- paint in class GraphEventsCollector
paste
public void paste()
- Pastes cloned nodes and edges from the clipboard to the Panel
select
public void select(Edge e)
select
public void select(Node n)
selectEdges
public void selectEdges()
transfer
public void transfer(GraphEventsCollector gec)
update
public void update(Graphics g)
- Overrides:
- update in class GraphEventsCollector
All Packages Class Hierarchy This Package Previous Next Index