chemaxon.marvin.sketch.modules
Class TextBoxSM

java.lang.Object
  extended bychemaxon.marvin.sketch.SketchMode
      extended bychemaxon.marvin.sketch.MObjectSM
          extended bychemaxon.marvin.sketch.modules.RectangleSM
              extended bychemaxon.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

Field Summary
 
Fields inherited from class chemaxon.marvin.sketch.modules.RectangleSM
clickPoint, startPoint
 
Constructor Summary
TextBoxSM()
          Constructs a text box object for sketching.
TextBoxSM(TextBoxSM so)
          Copy constructor.
 
Method Summary
protected  void addObject(MObject o)
           
 int buttonDown(boolean dblClick, int modifiers)
           
 int buttonUp(int modifiers, boolean doHist)
           
 java.lang.Object clone()
          Clones the object.
 MTextBox getTextBox()
           
 void initMObject(MObject o)
          Initializes a sketcher text box object.
 boolean pointerDrag(int modifiers)
           
 boolean pointerMove(int modifiers)
           
 
Methods inherited from class chemaxon.marvin.sketch.modules.RectangleSM
getRectangle, isTemporaryObjectPaintingNeeded, newRectangle, paintTemporaryObject, reset, setCorners
 
Methods inherited from class chemaxon.marvin.sketch.MObjectSM
canPointToMObject, containedObjectEquals, getMObject, getMol
 
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
 

Constructor Detail

TextBoxSM

public TextBoxSM()
Constructs a text box object for sketching.


TextBoxSM

public TextBoxSM(TextBoxSM so)
Copy constructor.

Parameters:
so - the sketch object to copy
Method Detail

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