Class NewChainAction
- 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.NewChainAction
-
- All Implemented Interfaces:
Action
public class NewChainAction extends BondHighlightAction
Project: User: rufenec Date: 3/26/13 Time: 3:42 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 NewChainAction(Model model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCursor()
protected boolean
onDrag(java.awt.geom.Point2D pt)
boolean
onMouseDown(IMouseEvent evt)
Handles Mouse down eventsboolean
onMouseUp(IMouseEvent evt)
Handles the MouseUp eventboolean
paint(IDrawContext ctx)
-
Methods inherited from class com.actelion.research.share.gui.editor.actions.BondHighlightAction
onKeyPressed, 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, highlightAtom, isCommand, onActionEnter, onActionLeave, onCommand, onDoubleClick, onKeyReleased, suggestNewX2AndY2
-
-
-
-
Constructor Detail
-
NewChainAction
public NewChainAction(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 classBondHighlightAction
- Returns:
- true if the action handles the event
-
onMouseUp
public boolean onMouseUp(IMouseEvent evt)
Description copied from interface:Action
Handles the MouseUp event- Returns:
- true if the action handles the event
-
onDrag
protected boolean onDrag(java.awt.geom.Point2D pt)
- Overrides:
onDrag
in classBondHighlightAction
-
paint
public boolean paint(IDrawContext ctx)
- Specified by:
paint
in interfaceAction
- Overrides:
paint
in classBondHighlightAction
-
getCursor
public int getCursor()
- Specified by:
getCursor
in interfaceAction
- Overrides:
getCursor
in classDrawAction
-
-