|
|||||||||||
| 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 to| Method Detail |
public void mouseDown(MouseEvent e,
int x,
int y)
mouseDown in interface CH.ifa.draw.framework.ToolmouseDown in class CH.ifa.draw.standard.AbstractToolaction(CH.ifa.draw.framework.Figure)
public void mouseUp(MouseEvent e,
int x,
int y)
mouseUp in interface CH.ifa.draw.framework.ToolmouseUp in class CH.ifa.draw.standard.AbstractToolpublic abstract void action(CH.ifa.draw.framework.Figure figure)
public boolean isActive()
isActive in interface CH.ifa.draw.framework.ToolisActive in class CH.ifa.draw.standard.AbstractTool
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||