chemaxon.marvin.sketch
Class SgroupSM

java.lang.Object
  extended bychemaxon.marvin.sketch.SketchMode
      extended bychemaxon.marvin.sketch.SgroupSM
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SgroupSM
extends SketchMode

S-group 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

Constructor Summary
SgroupSM(chemaxon.marvin.sketch.MolEditor e, Sgroup sg)
          Creates a sketcher S-group object.
SgroupSM(SgroupSM so)
          Copy constructor.
 
Method Summary
 int buttonDown(boolean dblClick, int modifiers)
           
 int buttonUp(int modifiers, boolean doHist)
           
 boolean canPointToAtom()
          Can the user point to an atom in this sketching mode?
 boolean canPointToSgroup()
          Can the user point to an S-group in this sketching mode?
 java.lang.Object clone()
          Clones the selection object.
 boolean containedObjectEquals(SketchMode o)
           
 Molecule getMol()
          Gets a molecule instance containing the S-group's clone.
 boolean pointerDrag(int modifiers)
           
 boolean pointerMove(int modifiers)
           
 
Methods inherited from class chemaxon.marvin.sketch.SketchMode
canPointToAtomPair, canPointToBond, canPointToMObject, getEditor, getPointableAtomPairs, getPointableAtoms, getPointableBonds, getPointedAtomPairMinDstRatio2, getSelectUtil, initSketchMode, isCurrentJoinHighlighted, isRubber, isTemporaryObjectPaintingNeeded, moveTo, paintTemporaryObject, paintTemps1, prepareMolPaint, reset, setMol
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SgroupSM

public SgroupSM(chemaxon.marvin.sketch.MolEditor e,
                Sgroup sg)
Creates a sketcher S-group object.

Parameters:
e - the molecule editor
sg - the S-group

SgroupSM

public SgroupSM(SgroupSM so)
Copy constructor.

Parameters:
so - the object to copy
Method Detail

containedObjectEquals

public boolean containedObjectEquals(SketchMode o)
Specified by:
containedObjectEquals in class SketchMode

clone

public java.lang.Object clone()
Clones the selection object.

Specified by:
clone in class SketchMode
Returns:
the clone

getMol

public Molecule getMol()
Gets a molecule instance containing the S-group's clone.

Overrides:
getMol in class SketchMode
Returns:
the molecule

canPointToAtom

public boolean canPointToAtom()
Can the user point to an atom in this sketching mode?

Overrides:
canPointToAtom in class SketchMode
Returns:
true

canPointToSgroup

public boolean canPointToSgroup()
Can the user point to an S-group in this sketching mode?

Overrides:
canPointToSgroup in class SketchMode
Returns:
true

buttonDown

public int buttonDown(boolean dblClick,
                      int modifiers)
Specified by:
buttonDown in class SketchMode

buttonUp

public int buttonUp(int modifiers,
                    boolean doHist)
Specified by:
buttonUp in class SketchMode

pointerMove

public boolean pointerMove(int modifiers)
Specified by:
pointerMove in class SketchMode

pointerDrag

public boolean pointerDrag(int modifiers)
Specified by:
pointerDrag in class SketchMode