Class BondBaseAction
- 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.BondBaseAction
-
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
NewBondAction
public abstract class BondBaseAction extends BondHighlightAction
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 Modifier Constructor Description protected
BondBaseAction(Model model)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
getBondType()
void
onAddBond(int srcAtom, int targetAtom)
void
onChangeBond(int bond)
boolean
onMouseUp(IMouseEvent evt)
Handles the MouseUp eventboolean
paint(IDrawContext _ctx)
-
Methods inherited from class com.actelion.research.share.gui.editor.actions.BondHighlightAction
onDrag, onKeyPressed, onMouseDown, onMouseMove
-
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
-
BondBaseAction
protected BondBaseAction(Model model)
-
-
Method Detail
-
getBondType
public abstract int getBondType()
-
onAddBond
public void onAddBond(int srcAtom, int targetAtom)
-
onChangeBond
public void onChangeBond(int bond)
-
onMouseUp
public boolean onMouseUp(IMouseEvent evt)
Description copied from interface:Action
Handles the MouseUp event- Returns:
- true if the action handles the event
-
paint
public boolean paint(IDrawContext _ctx)
- Specified by:
paint
in interfaceAction
- Overrides:
paint
in classBondHighlightAction
-
-