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
-
fAnchor
-
-
fDragged
- Flag to indicate that the mouse is being dragged.
-
TransitionTool(DrawingView, ConnectionFigure)
-
-
keyDown(KeyEvent, int)
- Handles key down events in the drawing view.
-
mouseDown(MouseEvent, int, int)
- Turn fDragged-flag off.
-
mouseDrag(MouseEvent, int, int)
- Adjust the created connection or split segment.
-
mouseUp(MouseEvent, int, int)
- Turn fDragged-flag off.
fDragged
protected boolean fDragged
- Flag to indicate that the mouse is being dragged.
fAnchor
protected Point fAnchor
TransitionTool
public TransitionTool(DrawingView view,
ConnectionFigure prototype)
mouseDown
public void mouseDown(MouseEvent e,
int x,
int y)
- Turn fDragged-flag off.
- Overrides:
- mouseDown in class ConnectionTool
mouseUp
public void mouseUp(MouseEvent e,
int x,
int y)
- Turn fDragged-flag off.
- Overrides:
- mouseUp in class ConnectionTool
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
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