Class AtomHighlightAction
- java.lang.Object
-
- com.actelion.research.share.gui.editor.actions.DrawAction
-
- com.actelion.research.share.gui.editor.actions.AtomHighlightAction
-
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
AtomMapAction,BondHighlightAction,ChangeAtomAction,ChangeAtomPropertiesAction,ChangeChargeAction,UnknownParityAction
public abstract class AtomHighlightAction extends DrawAction
Project: User: rufenec Date: 2/1/13 Time: 4:13 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.geom.Point2DlastHightlightPoint-
Fields inherited from class com.actelion.research.share.gui.editor.actions.DrawAction
HIGHLIGHT_ATOM_RADIUS, KEYSTROKEFONTSIZE, MAX_CONNATOMS, model, UNKNOWN
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfindAtom(StereoMolecule mol, java.awt.geom.Point2D pt)booleanonKeyPressed(IKeyEvent evt)booleanonMouseDown(IMouseEvent evt)Handles Mouse down eventsbooleanonMouseMove(IMouseEvent evt, boolean drag)booleanpaint(IDrawContext _ctx)-
Methods inherited from class com.actelion.research.share.gui.editor.actions.DrawAction
drawAtomHighlight, drawAtomKeyStrokes, drawBondHighlight, getCursor, highlightAtom, isCommand, onActionEnter, onActionLeave, onCommand, onDoubleClick, onKeyReleased, suggestNewX2AndY2
-
-
-
-
Method Detail
-
onMouseDown
public boolean onMouseDown(IMouseEvent evt)
Description copied from interface:ActionHandles Mouse down events- Returns:
- true if the action handles the event
-
onMouseMove
public boolean onMouseMove(IMouseEvent evt, boolean drag)
-
paint
public boolean paint(IDrawContext _ctx)
-
onKeyPressed
public boolean onKeyPressed(IKeyEvent evt)
- Specified by:
onKeyPressedin interfaceAction- Overrides:
onKeyPressedin classDrawAction
-
findAtom
public int findAtom(StereoMolecule mol, java.awt.geom.Point2D pt)
-
-