All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.samples.statechart.TransitionTool

CH.ifa.draw.standard.AbstractTool
   |
   +----CH.ifa.draw.standard.ConnectionTool
           |
           +----CH.ifa.draw.samples.statechart.TransitionTool

public class TransitionTool
extends ConnectionTool

Variable Index

 o fAnchor
 o fDragged
Flag to indicate that the mouse is being dragged.

Constructor Index

 o TransitionTool(DrawingView, ConnectionFigure)

Method Index

 o keyDown(KeyEvent, int)
Handles key down events in the drawing view.
 o mouseDown(MouseEvent, int, int)
Turn fDragged-flag off.
 o mouseDrag(MouseEvent, int, int)
Adjust the created connection or split segment.
 o mouseUp(MouseEvent, int, int)
Turn fDragged-flag off.

Variables

 o fDragged
 protected boolean fDragged
Flag to indicate that the mouse is being dragged.

 o fAnchor
 protected Point fAnchor

Constructors

 o TransitionTool
 public TransitionTool(DrawingView view,
                       ConnectionFigure prototype)

Methods

 o mouseDown
 public void mouseDown(MouseEvent e,
                       int x,
                       int y)
Turn fDragged-flag off.

Overrides:
mouseDown in class ConnectionTool
 o mouseUp
 public void mouseUp(MouseEvent e,
                     int x,
                     int y)
Turn fDragged-flag off.

Overrides:
mouseUp in class ConnectionTool
 o mouseDrag
 public void mouseDrag(MouseEvent e,
                       int x,
                       int y)
Adjust the created connection or split segment. Turn fDragged-flag on if not yet set.

Overrides:
mouseDrag in class ConnectionTool
 o keyDown
 public void keyDown(KeyEvent evt,
                     int key)
Handles key down events in the drawing view.

Overrides:
keyDown in class AbstractTool

All Packages  Class Hierarchy  This Package  Previous  Next  Index