|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.tools.ModelerTool
public abstract class ModelerTool
Abstract modeler tool.
| Constructor Summary | |
|---|---|
ModelerTool(ModelerToolSupport toolSupport)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
activate()
|
boolean |
appliesTo(java.lang.Object affectedObject)
Checks if the tool can be applied to the given figure. |
void |
deactivate()
|
CH.ifa.draw.framework.Figure |
getAffectedFigure()
Gets the affected figure. |
java.lang.Object |
getAffectedObject()
Gets the affected object. |
CH.ifa.draw.framework.Drawing |
getDrawing()
|
DrawingEditorPlugin |
getEditor()
Gets the editor that owns this tool. |
java.awt.Point |
getLastPoint()
Returns the last known mouse coordinates. |
java.awt.Cursor |
getToolCursor()
Gets the tool cursor. |
java.lang.String |
getToolHintMsg()
Gets the hint message for this tool. |
ModelerToolSupport |
getToolSupport()
Gets the tool support object that owns this tool. |
WorkspaceDrawingView |
getView()
Gets the view that owns this tool. |
void |
keyDown(java.awt.event.KeyEvent e,
int key)
|
void |
keyUp(java.awt.event.KeyEvent e,
int key)
|
void |
mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
|
void |
mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
|
void |
mouseMove(java.awt.event.MouseEvent e,
int x,
int y)
|
void |
mouseUp(java.awt.event.MouseEvent e,
int x,
int y)
|
void |
setAffectedObject(java.lang.Object affectedObject)
Sets the affected object. |
void |
setToolCursor(java.awt.Cursor toolCursor)
Sets the tool cursor. |
void |
setToolHintMsg(java.lang.String toolHintMsg)
Sets the hint message for this tool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelerTool(ModelerToolSupport toolSupport)
toolSupport - Tool support object that owns this tool| Method Detail |
|---|
public boolean appliesTo(java.lang.Object affectedObject)
affectedObject - Object the cursor is over
public java.awt.Cursor getToolCursor()
public void setToolCursor(java.awt.Cursor toolCursor)
public java.lang.String getToolHintMsg()
public void setToolHintMsg(java.lang.String toolHintMsg)
public CH.ifa.draw.framework.Figure getAffectedFigure()
public java.lang.Object getAffectedObject()
public void setAffectedObject(java.lang.Object affectedObject)
public DrawingEditorPlugin getEditor()
public WorkspaceDrawingView getView()
public CH.ifa.draw.framework.Drawing getDrawing()
public java.awt.Point getLastPoint()
public ModelerToolSupport getToolSupport()
public void activate()
public void deactivate()
public void mouseMove(java.awt.event.MouseEvent e,
int x,
int y)
public void mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
public void mouseUp(java.awt.event.MouseEvent e,
int x,
int y)
public void mouseDrag(java.awt.event.MouseEvent e,
int x,
int y)
public void keyDown(java.awt.event.KeyEvent e,
int key)
public void keyUp(java.awt.event.KeyEvent e,
int key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||