|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.marvin.sketch.SketchMode
chemaxon.marvin.sketch.BondSM
Bond drawing mode. This class is under development, use it at your own risk!
| Field Summary |
| Fields inherited from interface chemaxon.struc.StereoConstants |
ATOMSTEREO_EITHER, ATOMSTEREO_MASK, ATOMSTEREO_NONE, ATOMSTEREO_SPECIFIC, CHIRALITY_MASK, CHIRALITY_R, CHIRALITY_S, CHIRALITYSUPPORT_ALL, CHIRALITYSUPPORT_NONE, CHIRALITYSUPPORT_SELECTED, CIS, CTUMASK, CTUNKNOWN, CTUNSPEC, DBS_ALL, DBS_MARKED, DBS_NONE, PARITY_EITHER, PARITY_EVEN, PARITY_MASK, PARITY_ODD, PARITY_UNSPEC, STGRP_ABS, STGRP_AND, STGRP_NONE, STGRP_OR, TRANS |
| Constructor Summary | |
protected |
BondSM(BondSM sm)
|
|
BondSM(chemaxon.marvin.sketch.MolEditor e,
int flags)
Creates a sketcher bond object for the specified molecule editor. |
|
BondSM(chemaxon.marvin.sketch.MolEditor e,
MolBond b)
Creates a sketcher bond object for the specified molecule editor. |
| 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 |
canPointToBond()
Can the user point to a bond in this sketching mode? |
boolean |
canPointToSgroup()
Can the user point to an S-group in this sketching mode? |
java.lang.Object |
clone()
|
boolean |
containedObjectEquals(SketchMode o)
|
static Molecule |
createBondMol(int f)
|
static Molecule |
createBondMol(int f,
MolAtom a1,
MolAtom a2)
|
Molecule |
getMol()
Gets a molecule instance corresponding to this bond object. |
int |
getType()
|
void |
hilitJoins(chemaxon.marvin.sketch.MolJoin j,
chemaxon.marvin.util.MolPainter p,
MoleculeGraph m,
MoleculeGraph frag,
double sr,
java.awt.Graphics g)
|
boolean |
isFloatingObjectPainted()
Tests whether the floating object is visible. |
void |
moveTo(DPoint3 o)
|
boolean |
pointerCopyDrag(int modifiers)
|
boolean |
pointerDrag(int modifiers)
|
boolean |
pointerMove(int modifiers)
|
void |
setType(int type)
|
| Methods inherited from class chemaxon.marvin.sketch.SketchMode |
canPointToAtomPair, canPointToMObject, getAtomPairLocationWeights, getEditor, getPointableAtomPairs, getPointableAtoms, getPointableBonds, getPointedAtomPairMinDstRatio2, getSelectUtil, initSketchMode, isCurrentJoinHighlighted, isRubber, isTemporaryObjectPaintingNeeded, modkeyChange, paintTemporaryObject, paintTemps1, prepareMolPaint, reset, setMol, willBranchAtButtonPress |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BondSM(chemaxon.marvin.sketch.MolEditor e,
int flags)
e - the molecule editorflags - the bond flags
public BondSM(chemaxon.marvin.sketch.MolEditor e,
MolBond b)
e - the molecule editorb - the bondprotected BondSM(BondSM sm)
| Method Detail |
public int getType()
public void setType(int type)
public boolean containedObjectEquals(SketchMode o)
containedObjectEquals in class SketchModepublic java.lang.Object clone()
clone in class SketchModepublic Molecule getMol()
getMol in class SketchModepublic void moveTo(DPoint3 o)
moveTo in class SketchModepublic static Molecule createBondMol(int f)
public static Molecule createBondMol(int f,
MolAtom a1,
MolAtom a2)
public boolean canPointToAtom()
canPointToAtom in class SketchModetruepublic boolean canPointToBond()
canPointToBond in class SketchModetruepublic boolean canPointToSgroup()
canPointToSgroup in class SketchModetrue
public void hilitJoins(chemaxon.marvin.sketch.MolJoin j,
chemaxon.marvin.util.MolPainter p,
MoleculeGraph m,
MoleculeGraph frag,
double sr,
java.awt.Graphics g)
hilitJoins in class SketchModepublic boolean isFloatingObjectPainted()
isFloatingObjectPainted in class SketchMode
public int buttonDown(boolean dblClick,
int modifiers)
buttonDown in class SketchMode
public int buttonUp(int modifiers,
boolean doHist)
buttonUp in class SketchModepublic boolean pointerMove(int modifiers)
pointerMove in class SketchModepublic boolean pointerDrag(int modifiers)
pointerDrag in class SketchModepublic boolean pointerCopyDrag(int modifiers)
pointerCopyDrag in class SketchMode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||