|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.standard.AbstractTool
org.objectweb.jac.ide.diagrams.AbstractActionTool
Nested Class Summary |
Nested classes inherited from class CH.ifa.draw.standard.AbstractTool |
CH.ifa.draw.standard.AbstractTool.EventDispatcher |
Field Summary | |
protected DisplayContext |
context
|
Fields inherited from class CH.ifa.draw.standard.AbstractTool |
fAnchorX, fAnchorY |
Constructor Summary | |
AbstractActionTool(CH.ifa.draw.framework.DrawingEditor drawingEditor,
DisplayContext context,
Class figureClass)
|
Method Summary | |
abstract void |
action(CH.ifa.draw.framework.Figure figure)
|
boolean |
isActive()
|
void |
mouseDown(MouseEvent e,
int x,
int y)
Add the touched figure to the selection an invoke action |
void |
mouseUp(MouseEvent e,
int x,
int y)
|
Methods inherited from class CH.ifa.draw.standard.AbstractTool |
activate, addToolListener, checkUsable, createEventDispatcher, deactivate, drawing, editor, getEventDispatcher, isEnabled, isUsable, keyDown, mouseDrag, mouseMove, removeToolListener, setEnabled, setUsable, view, viewCreated, viewDestroying, viewSelectionChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DisplayContext context
Constructor Detail |
public AbstractActionTool(CH.ifa.draw.framework.DrawingEditor drawingEditor, DisplayContext context, Class figureClass)
drawingEditor
- the editor the tool is attached tocontext
- the display contextfigureClass
- the type of figures the action applies toMethod Detail |
public void mouseDown(MouseEvent e, int x, int y)
action(CH.ifa.draw.framework.Figure)
public void mouseUp(MouseEvent e, int x, int y)
public abstract void action(CH.ifa.draw.framework.Figure figure)
public boolean isActive()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |