Package chemaxon.struc
Class MSelectionDocument
java.lang.Object
chemaxon.struc.MDocument
chemaxon.struc.MSelectionDocument
- All Implemented Interfaces:
chemaxon.core.structure.DocumentForBuilder,MTransformable,Serializable
Selection document.
This class is under development and internal use only.
- Since:
- Marvin 3.3, 01/05/2004
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class chemaxon.struc.MDocument
MDocument.CheckerMark, MDocument.Prop -
Field Summary
Fields inherited from class chemaxon.struc.MDocument
mainMChemicalStruct, mainMMoleculeMovie, objectContainingSelection, objects, SETCOLOR_COLORLESS, SETCOLOR_DEFAULT, SETCOLOR_SPECIFIED, temporaryObjects -
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor.Creates a document for the specified molecule graph. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an object to the document.voidclear()Clears the document.Creates a clone.Deprecated, for removal: This API element is subject to removal in a future version.voidremoveObject(int i) Removes an object from the document.voidRemoves an object from the document.voidSets an objectMethods inherited from class chemaxon.struc.MDocument
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, getElectronCount, getEndPosition, getExplicitLonePairCount, getExtraLabelSetColorMode, getExtraLabelSetFont, getExtraLabelSetRGBs, getExtraLabelSetSize, getFocus, getFreeAtomSetIndex, getFreeBondSetIndex, getGUIPropertyContainer, getInputFormat, getLonePairCount, getMainMoleculeGraph, getMChemicalStruct, getMoleculeMovie, getMProp, getObject, getObjectContainingSelection, getObjectCount, getPageSettings, getPrimaryMolecule, getPrimaryMolecules, getRadicalCount, getStartPosition, hasElectrons, hasExplicitLonePairs, hasRadicals, 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, transform, unhighlight, unhighlightAll
-
Constructor Details
-
MSelectionDocument
Creates a document for the specified molecule graph.- Parameters:
m- the main molecule graph
-
MSelectionDocument
Copy constructor.- Parameters:
doc- the source
-
-
Method Details
-
cloneDocument
Creates a clone.- Overrides:
cloneDocumentin classMDocument- Returns:
- the clone
- Since:
- 3.5.1, 11/20/2004
-
addObject
Adds an object to the document. -
removeObject
Removes an object from the document.- Overrides:
removeObjectin classMDocument- Parameters:
o- the object
-
removeObject
public void removeObject(int i) Removes an object from the document.- Overrides:
removeObjectin classMDocument- Parameters:
i- the object index
-
setObject
Sets an object -
clear
public void clear()Clears the document. Removes all objects except the main molecule graph, from which all atoms, bonds and other objects are removed. -
findSelectedSgroup
Deprecated, for removal: This API element is subject to removal in a future version.Gets the smallest sgroup that belongs to the selection.- Returns:
- the found sgroup.
-