|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object chemaxon.struc.Sgroup chemaxon.struc.sgroup.SuperatomSgroup
S-group.
Field Summary |
Fields inherited from class chemaxon.struc.Sgroup |
SCN_EITHER_UNKNOWN, SCN_HEAD_TO_HEAD, SCN_HEAD_TO_TAIL, sgroupGraph, sgroupType, SST_ALTERNATING, SST_BLOCK, SST_RANDOM, ST_ANY, ST_COPOLYMER, ST_CROSSLINK, ST_DATA, ST_FORMULATION, ST_GENERIC, ST_MER, ST_MIXTURE, ST_MODIFICATION, ST_MONOMER, ST_MULTIPLE, ST_SRU, ST_SUPERATOM |
Fields inherited from interface chemaxon.struc.sgroup.Expandable |
DEFAULT_OPTIONS, MDL_EXPAND |
Constructor Summary | |
SuperatomSgroup(Molecule parent,
boolean expanded)
Constructs a superatom S-group. |
Method Summary | |
protected void |
addAttachAtom(MolAtom a)
Adds an atom to the list of attachments. |
boolean |
contract(int opts)
Contracts this S-group. |
protected void |
copy(Sgroup sg2,
Molecule m)
Make a copy of this S-group. |
boolean |
expand(int opts)
Expands this S-group. |
MolBond[] |
findCrossingBonds()
Finds the crossing bonds. |
MolAtom |
getAttachAtom(int i)
Gets an attachment point. |
MolAtom[] |
getCrossingAtoms(MolBond[] xbonds)
Gets the atoms that have crossing bonds. |
MolAtom[] |
getFreeLegalAttachAtoms()
Gets the unused legal attachment points. |
MolAtom[] |
getLegalAttachAtoms()
Gets the legal attachment points. |
SelectionMolecule |
getSgroupGraph()
Gets the molecule graph as a selection. |
SgroupAtom |
getSuperAtom()
Gets the superatom. |
boolean |
hasBrackets()
Checks if brackets should be painted or not. |
boolean |
isContracted()
Is this S-group contracted? |
boolean |
isExpanded()
Is this S-group expanded? |
Sgroup |
newInstance()
Gets a new SuperatomSgroup instance. |
void |
removeAtom(MolAtom a)
Removes an atom from the S-group. |
void |
removeBond(MolBond b)
Removes a bond from the S-group. |
void |
setAtom(int i,
MolAtom a)
Sets the specified atom in the S-group graph. |
void |
setSgroupGraph(SelectionMolecule smol)
Sets the molecule graph. |
MolBond[] |
updateSgroupCrossings()
Deprecated. as of Marvin 3.3, replaced by Sgroup.findCrossingBonds() |
Methods inherited from class chemaxon.struc.Sgroup |
add, cloneStructure, countAllAtoms, createMolecule, getAtom, getAtomArray, getAtomCount, getConnectivity, getParentMolecule, getSubscript, getSubType, getSuperscript, getType, indexOf, isEmpty, removeEdges, removeGroupedAtom, setConnectivity, setParentMolecule, setSubscript, setSubType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SuperatomSgroup(Molecule parent, boolean expanded)
parent
- the parent moleculeexpanded
- whether the S-group is created in expanded state or notMethod Detail |
public final SgroupAtom getSuperAtom()
public final MolAtom getAttachAtom(int i)
i
- the attachment point index
public SelectionMolecule getSgroupGraph()
getSgroupGraph
in class Sgroup
public void setSgroupGraph(SelectionMolecule smol)
setSgroupGraph
in class Sgroup
smol
- the molecule graphpublic Sgroup newInstance()
newInstance
in class Sgroup
public final void setAtom(int i, MolAtom a)
setAtom
in class Sgroup
i
- the indexa
- the atompublic final void removeAtom(MolAtom a)
removeAtom
in class Sgroup
a
- the atompublic final void removeBond(MolBond b)
removeBond
in class Sgroup
b
- the bondpublic MolBond[] findCrossingBonds()
findCrossingBonds
in class Sgroup
public MolAtom[] getCrossingAtoms(MolBond[] xbonds)
getCrossingAtoms
in class Sgroup
xbonds
- the crossing bonds
protected final void copy(Sgroup sg2, Molecule m)
copy
in class Sgroup
sg2
- the target S-groupm
- the target molecule or nullpublic boolean hasBrackets()
hasBrackets
in class Sgroup
public final boolean expand(int opts)
expand
in interface Expandable
opts
- expansion options
Expandable.DEFAULT_OPTIONS
,
Expandable.MDL_EXPAND
public final boolean isExpanded()
isExpanded
in interface Expandable
public final boolean contract(int opts)
contract
in interface Expandable
opts
- contraction options
Expandable.DEFAULT_OPTIONS
public final boolean isContracted()
public final MolAtom[] getLegalAttachAtoms()
public final MolAtom[] getFreeLegalAttachAtoms()
protected void addAttachAtom(MolAtom a)
a
- the atompublic final MolBond[] updateSgroupCrossings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |