chemaxon.marvin.sketch.modules
Class TextBoxSM
java.lang.Object
chemaxon.marvin.sketch.SketchMode
chemaxon.marvin.sketch.MObjectSM
chemaxon.marvin.sketch.modules.RectangleSM
chemaxon.marvin.sketch.modules.TextBoxSM
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class TextBoxSM
- extends RectangleSM
Text box creation mode.
This class is under development, use it at your own risk!
- Since:
- Marvin 3.5, 07/08/2004
- Version:
- 3.5.1, 11/15/2004
- Author:
- Peter Csizmadia
- See Also:
- Serialized Form
Methods inherited from class chemaxon.marvin.sketch.SketchMode |
canPointToAtom, canPointToAtomPair, canPointToBond, canPointToSgroup, getEditor, getPointableAtomPairs, getPointableAtoms, getPointableBonds, getPointedAtomPairMinDstRatio2, getSelectUtil, initSketchMode, isCurrentJoinHighlighted, isRubber, moveTo, paintTemps1, prepareMolPaint, setMol |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextBoxSM
public TextBoxSM()
- Constructs a text box object for sketching.
TextBoxSM
public TextBoxSM(TextBoxSM so)
- Copy constructor.
- Parameters:
so
- the sketch object to copy
initMObject
public void initMObject(MObject o)
- Initializes a sketcher text box object.
- Overrides:
initMObject
in class RectangleSM
- Parameters:
o
- text box object from a document
getTextBox
public MTextBox getTextBox()
clone
public java.lang.Object clone()
- Clones the object.
- Overrides:
clone
in class RectangleSM
- Returns:
- the clone
buttonDown
public int buttonDown(boolean dblClick,
int modifiers)
- Overrides:
buttonDown
in class RectangleSM
buttonUp
public int buttonUp(int modifiers,
boolean doHist)
- Overrides:
buttonUp
in class RectangleSM
pointerMove
public boolean pointerMove(int modifiers)
- Overrides:
pointerMove
in class RectangleSM
pointerDrag
public boolean pointerDrag(int modifiers)
- Overrides:
pointerDrag
in class RectangleSM
addObject
protected void addObject(MObject o)
- Overrides:
addObject
in class RectangleSM