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 Action
Basic Interface for all editor actions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCursor()
boolean
isCommand()
void
onActionEnter()
void
onActionLeave()
void
onCommand()
boolean
onDoubleClick(IMouseEvent ev)
boolean
onKeyPressed(IKeyEvent evt)
boolean
onKeyReleased(IKeyEvent evt)
boolean
onMouseDown(IMouseEvent ev)
Handles Mouse down eventsboolean
onMouseMove(IMouseEvent ev, boolean drag)
boolean
onMouseUp(IMouseEvent ev)
Handles the MouseUp eventboolean
paint(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()
-
-