public class MSelectionDocument extends MDocument
MDocument.CheckerMark, MDocument.Prop
mainMChemicalStruct, mainMMoleculeMovie, objectContainingSelection, objects, SETCOLOR_COLORLESS, SETCOLOR_DEFAULT, SETCOLOR_SPECIFIED
Constructor and Description |
---|
MSelectionDocument(MSelectionDocument doc)
Copy constructor.
|
MSelectionDocument(SelectionMolecule m)
Creates a document for the specified molecule graph.
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(MObject o)
Adds an object to the document.
|
void |
clear()
Clears the document.
|
MDocument |
cloneDocument()
Creates a clone.
|
Sgroup |
findSelectedSgroup()
Gets the smallest sgroup that belongs to the selection.
|
void |
removeObject(int i)
Removes an object from the document.
|
void |
removeObject(MObject o)
Removes an object from the document.
|
void |
setObject(MObject o,
int i)
Sets an object
|
addCheckerMark, calcCenter, calcCenter, clearCheckerMarks, clearSets, clone, cloneMainMolecule, cloneMainMoleculeGraph, cloneSets, cloneTemporraryObjects, contains, contains, containsOnlyOne, exportToBinFormat, exportToFormat, exportToObject, fixElectronContainers, getAllMolecules, getAllNonEmptyMolecules, getAllObjects, getAtomSetColor, getAtomSetColorMode, getAtomSetFont, getAtomSetRGB, getAtomSetSize, getBondSetColor, getBondSetColorMode, getBondSetRGB, getBondSetSize, getBondSetThickness, getCheckerMarks, getConnectedObject, getConnectedObjectCount, getDraggedObject, getEndPosition, getExtraLabelSetColorMode, getExtraLabelSetFont, getExtraLabelSetRGBs, getExtraLabelSetSize, getFocus, getFreeAtomSetIndex, getFreeBondSetIndex, getGUIPropertyContainer, getInputFormat, getMainMoleculeGraph, getMChemicalStruct, getMoleculeMovie, getMProp, getObject, getObjectContainingSelection, getObjectCount, getPageSettings, getPrimaryMolecule, getPrimaryMolecules, getStartPosition, highlight, indexOf, isAtomSetColorModeSet, isEmpty, isExtraObject, isHighlighted, isSimpleMolecule, moveMainMoleculeGraphToFront, moveMoleculeMovieToFront, moveObject, parseMRV, properties, removeAtom, removeAtom, removeAtomFromGraphs, removeColorsFromMolecules, removeElectronsOf, selectAllConnectedObjects, selectAllObjects, setAtomSetColorMode, setAtomSetFont, setAtomSetRGB, setBondSetColorMode, setBondSetRGB, setBondSetThickness, setDraggedObject, setEndPosition, setExtraLabelColorsForDocument, setExtraLabelSetColorMode, setExtraLabelSetRGBs, setExtraLabelSetRGBs, setFocus, setGUIPropertyContainer, setGUIProperyContainer, setInputFormat, setMainMoleculeGraph, setMoleculeMovie, setObjectContainingSelection, setPageSettings, setStartPosition, simplifyMolecule, toString, transform, transform, transform, unhighlight, unhighlightAll
public MSelectionDocument(SelectionMolecule m)
m
- the main molecule graphpublic MSelectionDocument(MSelectionDocument doc)
doc
- the sourcepublic MDocument cloneDocument()
cloneDocument
in class MDocument
public void addObject(MObject o)
public void removeObject(MObject o)
removeObject
in class MDocument
o
- the objectpublic void removeObject(int i)
removeObject
in class MDocument
i
- the object indexpublic void setObject(MObject o, int i)
public void clear()
public Sgroup findSelectedSgroup()