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 boolean
onDrag(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.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:Action
Handles Mouse down events- Specified by:
onMouseDown
in interfaceAction
- Overrides:
onMouseDown
in classAtomHighlightAction
- Returns:
- true if the action handles the event
-
onMouseMove
public boolean onMouseMove(IMouseEvent evt, boolean drag)
- Specified by:
onMouseMove
in interfaceAction
- Overrides:
onMouseMove
in classAtomHighlightAction
-
onDrag
protected boolean onDrag(java.awt.geom.Point2D pt)
-
paint
public boolean paint(IDrawContext _ctx)
- Specified by:
paint
in interfaceAction
- Overrides:
paint
in classAtomHighlightAction
-
onKeyPressed
public boolean onKeyPressed(IKeyEvent evt)
- Specified by:
onKeyPressed
in interfaceAction
- Overrides:
onKeyPressed
in classAtomHighlightAction
-
-