Interface Action
-
- All Known Implementing Classes:
AddRingAction,ArrowAction,AtomHighlightAction,AtomMapAction,BondBaseAction,BondHighlightAction,ChangeAtomAction,ChangeAtomPropertiesAction,ChangeChargeAction,CleanAction,ClearAction,CommandAction,CopyAction,CutAction,DeleteAction,DownBondAction,DrawAction,NewBondAction,NewChainAction,PasteAction,SelectionAction,UndoAction,UnknownParityAction,UpBondAction,ZoomRotateAction
public interface ActionBasic Interface for all editor actions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCursor()booleanisCommand()voidonActionEnter()voidonActionLeave()voidonCommand()booleanonDoubleClick(IMouseEvent ev)booleanonKeyPressed(IKeyEvent evt)booleanonKeyReleased(IKeyEvent evt)booleanonMouseDown(IMouseEvent ev)Handles Mouse down eventsbooleanonMouseMove(IMouseEvent ev, boolean drag)booleanonMouseUp(IMouseEvent ev)Handles the MouseUp eventbooleanpaint(IDrawContext ctx)
-
-
-
Method Detail
-
onMouseDown
boolean onMouseDown(IMouseEvent ev)
Handles Mouse down events- Parameters:
ev-- Returns:
- true if the action handles the event
-
onMouseUp
boolean onMouseUp(IMouseEvent ev)
Handles the MouseUp event- Parameters:
ev-- Returns:
- true if the action handles the event
-
onMouseMove
boolean onMouseMove(IMouseEvent ev, boolean drag)
-
onKeyPressed
boolean onKeyPressed(IKeyEvent evt)
-
onKeyReleased
boolean onKeyReleased(IKeyEvent evt)
-
onDoubleClick
boolean onDoubleClick(IMouseEvent ev)
-
isCommand
boolean isCommand()
-
onCommand
void onCommand()
-
paint
boolean paint(IDrawContext ctx)
-
getCursor
int getCursor()
-
onActionLeave
void onActionLeave()
-
onActionEnter
void onActionEnter()
-
-