Class AddRingAction
- 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.AddRingAction
-
- All Implemented Interfaces:
Action
public class AddRingAction extends BondHighlightAction
Project: User: rufenec Date: 2/1/13 Time: 4:03 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, UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description AddRingAction(Model m, int ringSize, boolean aromatic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanonDrag(java.awt.geom.Point2D pt)booleanonMouseDown(IMouseEvent evt)Handles Mouse down eventsbooleanonMouseUp(IMouseEvent evt)Handles the MouseUp event-
Methods inherited from class com.actelion.research.share.gui.editor.actions.BondHighlightAction
onKeyPressed, onMouseMove, paint
-
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
-
AddRingAction
public AddRingAction(Model m, int ringSize, boolean aromatic)
-
-
Method Detail
-
onMouseDown
public boolean onMouseDown(IMouseEvent evt)
Description copied from interface:ActionHandles Mouse down events- Specified by:
onMouseDownin interfaceAction- Overrides:
onMouseDownin classBondHighlightAction- Returns:
- true if the action handles the event
-
onMouseUp
public boolean onMouseUp(IMouseEvent evt)
Description copied from interface:ActionHandles the MouseUp event- Returns:
- true if the action handles the event
-
onDrag
protected boolean onDrag(java.awt.geom.Point2D pt)
- Overrides:
onDragin classBondHighlightAction
-
-