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.Point2D
lastHightlightPoint
-
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 int
findAtom(StereoMolecule mol, java.awt.geom.Point2D pt)
boolean
onKeyPressed(IKeyEvent evt)
boolean
onMouseDown(IMouseEvent evt)
Handles Mouse down eventsboolean
onMouseMove(IMouseEvent evt, boolean drag)
boolean
paint(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:Action
Handles 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:
onKeyPressed
in interfaceAction
- Overrides:
onKeyPressed
in classDrawAction
-
findAtom
public int findAtom(StereoMolecule mol, java.awt.geom.Point2D pt)
-
-