|
|||||||||
| Home >> All >> jac >> ide >> [ diagrams overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jac.ide.diagrams
Class SelectionTool

java.lang.ObjectCH.ifa.draw.standard.AbstractTool
jac.ide.diagrams.AbstractTool
jac.ide.diagrams.SelectionTool
- public class SelectionTool
- extends AbstractTool
| Field Summary | |
protected jac.aspects.gui.DisplayContext |
context
|
protected Tool |
fChild
|
| Constructor Summary | |
SelectionTool(DrawingEditor newDrawingEditor,
jac.aspects.gui.DisplayContext context)
|
|
| Method Summary | |
protected Tool |
createAreaTracker()
Factory method to create an area tracker. |
protected Tool |
createDragTracker(Figure f)
Factory method to create a Drag tracker. |
protected Tool |
createHandleTracker(DrawingView view,
Handle handle)
Factory method to create a Handle tracker. |
void |
mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse down events and starts the corresponding tracker. |
void |
mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse drag events. |
void |
mouseMove(java.awt.event.MouseEvent evt,
int x,
int y)
Handles mouse moves (if the mouse button is up). |
void |
mouseUp(java.awt.event.MouseEvent e,
int x,
int y)
Handles mouse up events. |
| Methods inherited from class jac.ide.diagrams.AbstractTool |
diagramView, isActive |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fChild
protected Tool fChild
context
protected jac.aspects.gui.DisplayContext context
| Constructor Detail |
SelectionTool
public SelectionTool(DrawingEditor newDrawingEditor,
jac.aspects.gui.DisplayContext context)
| Method Detail |
mouseDown
public void mouseDown(java.awt.event.MouseEvent e, int x, int y)
- Handles mouse down events and starts the corresponding tracker.
mouseMove
public void mouseMove(java.awt.event.MouseEvent evt, int x, int y)
- Handles mouse moves (if the mouse button is up).
Switches the cursors depending on whats under them.
mouseDrag
public void mouseDrag(java.awt.event.MouseEvent e, int x, int y)
- Handles mouse drag events. The events are forwarded to the
current tracker.
mouseUp
public void mouseUp(java.awt.event.MouseEvent e, int x, int y)
- Handles mouse up events. The events are forwarded to the
current tracker.
createHandleTracker
protected Tool createHandleTracker(DrawingView view,
Handle handle)
- Factory method to create a Handle tracker. It is used to track a handle.
createDragTracker
protected Tool createDragTracker(Figure f)
- Factory method to create a Drag tracker. It is used to drag a figure.
createAreaTracker
protected Tool createAreaTracker()
- Factory method to create an area tracker. It is used to select an
area.
|
|||||||||
| Home >> All >> jac >> ide >> [ diagrams overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
CH.ifa.draw.standard.AbstractTool