Class SelectionAction
- java.lang.Object
-
- com.actelion.research.share.gui.editor.actions.DrawAction
-
- com.actelion.research.share.gui.editor.actions.AtomHighlightAction
-
- com.actelion.research.share.gui.editor.actions.BondHighlightAction
-
- com.actelion.research.share.gui.editor.actions.SelectionAction
-
- All Implemented Interfaces:
Action
public class SelectionAction extends BondHighlightAction
Project: User: rufenec Date: 1/24/13 Time: 5:57 PM
-
-
Field Summary
-
Fields inherited from class com.actelion.research.share.gui.editor.actions.AtomHighlightAction
lastHightlightPoint
-
Fields inherited from class com.actelion.research.share.gui.editor.actions.DrawAction
HIGHLIGHT_ATOM_RADIUS, KEYSTROKEFONTSIZE, MAX_CONNATOMS, model, UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description SelectionAction(Model model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCursor()
boolean
onDoubleClick(IMouseEvent evt)
boolean
onKeyPressed(IKeyEvent evt)
boolean
onKeyReleased(IKeyEvent evt)
boolean
onMouseDown(IMouseEvent evt)
Handles Mouse down eventsboolean
onMouseMove(IMouseEvent evt, boolean drag)
boolean
onMouseUp(IMouseEvent ev)
Handles the MouseUp eventboolean
paint(IDrawContext ctx)
-
Methods inherited from class com.actelion.research.share.gui.editor.actions.BondHighlightAction
onDrag
-
Methods inherited from class com.actelion.research.share.gui.editor.actions.AtomHighlightAction
findAtom
-
Methods inherited from class com.actelion.research.share.gui.editor.actions.DrawAction
drawAtomHighlight, drawAtomKeyStrokes, drawBondHighlight, highlightAtom, isCommand, onActionEnter, onActionLeave, onCommand, suggestNewX2AndY2
-
-
-
-
Constructor Detail
-
SelectionAction
public SelectionAction(Model model)
-
-
Method Detail
-
onKeyPressed
public boolean onKeyPressed(IKeyEvent evt)
- Specified by:
onKeyPressed
in interfaceAction
- Overrides:
onKeyPressed
in classBondHighlightAction
-
onKeyReleased
public boolean onKeyReleased(IKeyEvent evt)
- Specified by:
onKeyReleased
in interfaceAction
- Overrides:
onKeyReleased
in classDrawAction
-
onMouseDown
public boolean onMouseDown(IMouseEvent evt)
Description copied from interface:Action
Handles Mouse down events- Specified by:
onMouseDown
in interfaceAction
- Overrides:
onMouseDown
in classBondHighlightAction
- Returns:
- true if the action handles the event
-
onMouseUp
public boolean onMouseUp(IMouseEvent ev)
Description copied from interface:Action
Handles the MouseUp event- Returns:
- true if the action handles the event
-
onMouseMove
public boolean onMouseMove(IMouseEvent evt, boolean drag)
- Specified by:
onMouseMove
in interfaceAction
- Overrides:
onMouseMove
in classBondHighlightAction
-
onDoubleClick
public boolean onDoubleClick(IMouseEvent evt)
- Specified by:
onDoubleClick
in interfaceAction
- Overrides:
onDoubleClick
in classDrawAction
-
getCursor
public int getCursor()
- Specified by:
getCursor
in interfaceAction
- Overrides:
getCursor
in classDrawAction
-
paint
public boolean paint(IDrawContext ctx)
- Specified by:
paint
in interfaceAction
- Overrides:
paint
in classBondHighlightAction
-
-