public class MulticenterSgroup extends Sgroup
MolAtom.MULTICENTER
.
The represented atoms are in the sgroup graph.
Only the parent molecule of the sgroup contains the central atom, the
sgroup graph doesn't.getCentralAtom()
,
setCentralAtom(MolAtom)
,
MolAtom.MULTICENTER
,
MolAtom.getAtno()
,
Sgroup.getParentMolecule()
,
Sgroup.getSgroupGraph()
,
Serialized FormatomSet, brackets, CHARGE_ON_ATOMS, CHARGE_ON_GROUP, parentSgroup, PR_ATSYMS, RA_IN_EXPAND, RA_REMOVE_EXCEPT_RU, SCN_EITHER_UNKNOWN, SCN_HEAD_TO_HEAD, SCN_HEAD_TO_TAIL, SGROUP_TYPE_COUNT, sgroupGraph, sgroupType, SORT_CHILD_PARENT, SORT_PARENT_CHILD, SST_ALTERNATING, SST_BLOCK, SST_RANDOM, ST_AMINOACID, ST_ANY, ST_COMPONENT, ST_COPOLYMER, ST_CROSSLINK, ST_DATA, ST_FORMULATION, ST_GENERIC, ST_GRAFT, ST_MER, ST_MIXTURE, ST_MODIFICATION, ST_MONOMER, ST_MULTICENTER, ST_MULTIPLE, ST_SRU, ST_SUPERATOM, XSTATE_C, XSTATE_NONE, XSTATE_X, XSTATE_XC
Modifier | Constructor and Description |
---|---|
|
MulticenterSgroup(Molecule parent)
Constructs a Multicenter S-group.
|
protected |
MulticenterSgroup(MulticenterSgroup sg,
Molecule m,
Sgroup psg)
Copy constructor.
|
protected |
MulticenterSgroup(MulticenterSgroup sg,
Molecule m,
Sgroup psg,
int[] atomIndexMap)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCentralAtom()
Adds a central atom to this sgroup.
|
protected Sgroup |
cloneSgroup(Molecule m,
Sgroup psg,
int[] atomIndexMap)
Gets a new Sgroup instance.
|
MolAtom |
getCentralAtom()
Gets the central atom of this sgroup.
|
boolean |
hasBrackets()
Does a bracket belong to this sgroup?
|
boolean |
hasNonCoordinateBond()
Decides whether the central atom of the sgroup has a non-coordinate bond.
|
DPoint3 |
recalcCentralAtom()
Recalculates and sets the coordinates of the central atom of this sgroup.
|
void |
replaceMulticenterAtom(MolAtom atom,
MolAtom atom2)
Deprecated.
as of Marvin 2014.08.25.0, use
setCentralAtom(chemaxon.struc.MolAtom)
instead |
void |
setCentralAtom(MolAtom atom)
Sets the central atom of this sgroup.
|
add, addBracket, addChildSgroup, areChildSgroupsVisible, checkBondConsistency, checkBonds, checkConsistencyInEmbeddings, checkSgroupGraphConsistency, clearObjects, cloneSgroup, cloneStructure, contains, containsAllAtomsOf, contract, countAllAtoms, createMolecule, createMolecule, expand, findCrossingBonds, findSmallestSgroupContaining, findSmallestSgroupOf, getAtom, getAtomArray, getAtomCount, getAtomSymbolListAsString, getAttach, getBondArray, getBracketCount, getBrackets, getChargeLocation, getChildSgroup, getChildSgroupCount, getChildSgroups, getConnectivity, getCrossingAtoms, getParentMolecule, getParentSgroup, getSgroupGraph, getSgroupType, getSubscript, getSubType, getSuperscript, getTotalCharge, getType, getXState, hasAtom, indexOf, indexOf, initBrackets, isBracketCrossingBond, isBracketVisible, isDescendantOf, isEmpty, isOrderedComponentSgroup, isPartSelected, isRemovable, isSelected, isTotalSelected, isVisible, removeAtom, removeAtom, removeAtom, removeBond, removeBonds, removeChildSgroup, removeGroupedAtom, removeObject, replaceAtom, replaceAtom, selectAllObjects, setAtom, setChargeLocation, setConnectivity, setGUIStateRecursively, setGUIStateRecursively, setParentMolecule, setSgroupGraph, setSubscript, setSubType, setXState, setXState, setXState0, sort, toString, toString, transformByParent
public MulticenterSgroup(Molecule parent)
parent
- the parent moleculeprotected MulticenterSgroup(MulticenterSgroup sg, Molecule m, Sgroup psg)
sg
- the S-group to copym
- the new parent moleculepsg
- the new parent S-group or nullprotected MulticenterSgroup(MulticenterSgroup sg, Molecule m, Sgroup psg, int[] atomIndexMap)
sg
- the S-group to copym
- the new parent moleculepsg
- the new parent S-group or nullatomIndexMap
- indices of cloned atoms in the original molecule
or null
protected Sgroup cloneSgroup(Molecule m, Sgroup psg, int[] atomIndexMap)
cloneSgroup
in class Sgroup
m
- the new parent moleculepsg
- the new parent S-groupatomIndexMap
- indices of cloned atoms in the original molecule
or null
public void addCentralAtom()
public DPoint3 recalcCentralAtom()
public boolean hasBrackets()
hasBrackets
in class Sgroup
public boolean hasNonCoordinateBond()
public MolAtom getCentralAtom()
public void setCentralAtom(MolAtom atom)
atom
- the central atom@Deprecated public void replaceMulticenterAtom(MolAtom atom, MolAtom atom2)
setCentralAtom(chemaxon.struc.MolAtom)
insteadatom
- the original atomatom2
- the new atom