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

Constructor Index

 o SelectionCollector()
SelectionCollector constructor comment.

Method Index

 o clear()
Clears the hashtables of selected edges and nodes
 o clearMarks()
Removes the selection marks from the selected nodes and edges.
 o close()
 o copy()
Copy performs copying selected part of the graph to the clipboard.
 o delete()
Deletes the selected edges and nodes.
 o deselect(Edge)
 o deselect(Node)
 o drawEdgeMarks(Edge, Graphics)
 o drawNodeMarks(Node, Graphics)
 o flipSelection(Edge)
If the edge was selected, this method deselects it (and vice versa)
 o flipSelection(Node)
If the node was selected it deselects it, and vice versa.
 o keyPressed(KeyEvent)
 o keyReleased(KeyEvent)
 o keyTyped(KeyEvent)
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
mouseDragged method comment.
 o mousePressed(MouseEvent)
mousePressed method comment.
 o mouseReleased(MouseEvent)
mouseReleased method comment.
 o paint(Graphics)
 o paste()
Pastes cloned nodes and edges from the clipboard to the Panel
 o select(Edge)
 o select(Node)
 o selectEdges()
 o transfer(GraphEventsCollector)
 o update(Graphics)

Constructors

 o SelectionCollector
 public SelectionCollector()
SelectionCollector constructor comment.

Methods

 o clear
 public void clear()
Clears the hashtables of selected edges and nodes

 o clearMarks
 public void clearMarks()
Removes the selection marks from the selected nodes and edges.

 o close
 public void close()
Overrides:
close in class GraphEventsCollector
 o 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.

 o delete
 public void delete()
Deletes the selected edges and nodes.

 o deselect
 public void deselect(Edge e)
 o deselect
 public void deselect(Node n)
 o drawEdgeMarks
 public void drawEdgeMarks(Edge e,
                           Graphics g)
 o drawNodeMarks
 public void drawNodeMarks(Node n,
                           Graphics g)
 o flipSelection
 public void flipSelection(Edge e)
If the edge was selected, this method deselects it (and vice versa)

 o flipSelection
 public void flipSelection(Node n)
If the node was selected it deselects it, and vice versa.

 o keyPressed
 public void keyPressed(KeyEvent e)
Overrides:
keyPressed in class GraphEventsCollector
 o keyReleased
 public void keyReleased(KeyEvent e)
Overrides:
keyReleased in class GraphEventsCollector
 o keyTyped
 public void keyTyped(KeyEvent e)
Overrides:
keyTyped in class GraphEventsCollector
 o mouseClicked
 public void mouseClicked(MouseEvent e)
Overrides:
mouseClicked in class GraphEventsCollector
 o mouseDragged
 public void mouseDragged(MouseEvent e)
mouseDragged method comment.

Overrides:
mouseDragged in class GraphEventsCollector
 o mousePressed
 public void mousePressed(MouseEvent e)
mousePressed method comment.

Overrides:
mousePressed in class GraphEventsCollector
 o mouseReleased
 public void mouseReleased(MouseEvent e)
mouseReleased method comment.

Overrides:
mouseReleased in class GraphEventsCollector
 o paint
 public void paint(Graphics g)
Overrides:
paint in class GraphEventsCollector
 o paste
 public void paste()
Pastes cloned nodes and edges from the clipboard to the Panel

 o select
 public void select(Edge e)
 o select
 public void select(Node n)
 o selectEdges
 public void selectEdges()
 o transfer
 public void transfer(GraphEventsCollector gec)
 o update
 public void update(Graphics g)
Overrides:
update in class GraphEventsCollector

All Packages  Class Hierarchy  This Package  Previous  Next  Index