|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CH.ifa.draw.standard.AbstractTool | +--org.objectweb.jac.ide.diagrams.AbstractActionTool
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)
mouseDown
in interface CH.ifa.draw.framework.Tool
mouseDown
in class CH.ifa.draw.standard.AbstractTool
action(CH.ifa.draw.framework.Figure)
public void mouseUp(MouseEvent e, int x, int y)
mouseUp
in interface CH.ifa.draw.framework.Tool
mouseUp
in class CH.ifa.draw.standard.AbstractTool
public abstract void action(CH.ifa.draw.framework.Figure figure)
public boolean isActive()
isActive
in interface CH.ifa.draw.framework.Tool
isActive
in class CH.ifa.draw.standard.AbstractTool
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |