Class BondHighlightAction
- 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
-
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
AddRingAction,BondBaseAction,DeleteAction,NewChainAction,SelectionAction
public abstract class BondHighlightAction extends AtomHighlightAction
Project: User: rufenec Date: 1/28/13 Time: 1:07 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 BondHighlightAction(Model model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanonDrag(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.AtomHighlightAction
findAtom
-
Methods inherited from class com.actelion.research.share.gui.editor.actions.DrawAction
drawAtomHighlight, drawAtomKeyStrokes, drawBondHighlight, getCursor, highlightAtom, isCommand, onActionEnter, onActionLeave, onCommand, onDoubleClick, onKeyReleased, suggestNewX2AndY2
-
-
-
-
Constructor Detail
-
BondHighlightAction
public BondHighlightAction(Model model)
-
-
Method Detail
-
onMouseDown
public boolean onMouseDown(IMouseEvent evt)
Description copied from interface:ActionHandles Mouse down events- Specified by:
onMouseDownin interfaceAction- Overrides:
onMouseDownin classAtomHighlightAction- Returns:
- true if the action handles the event
-
onMouseMove
public boolean onMouseMove(IMouseEvent evt, boolean drag)
- Specified by:
onMouseMovein interfaceAction- Overrides:
onMouseMovein classAtomHighlightAction
-
onDrag
protected boolean onDrag(java.awt.geom.Point2D pt)
-
paint
public boolean paint(IDrawContext _ctx)
- Specified by:
paintin interfaceAction- Overrides:
paintin classAtomHighlightAction
-
onKeyPressed
public boolean onKeyPressed(IKeyEvent evt)
- Specified by:
onKeyPressedin interfaceAction- Overrides:
onKeyPressedin classAtomHighlightAction
-
-