Package chemaxon.struc
Class NoStructure
java.lang.Object
chemaxon.struc.NoStructure
This class represents NoStructure labels. It is possible to create and remove them from the document using
 static methods in this class.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddToSelection(MDocument from, MSelectionDocument to) Adds the selected NoStrutures from the document to the selectionDocumentstatic NoStructurecreateInDocumentAt(DPoint3 location, MDocument target) Creates a NoStructure at the given location.static NoStructurecreateInDocumentFrom(Molecule component, MDocument target) Creates a NoStructure from the given component.static List<NoStructure> Returns all NoStructure labels from the document.getLabel()The label for the noStructure.Returns the clone of the location of the NoStructure.booleanisAssociatedWith(Molecule molecule) Verifies the reference equality of molecule and the component associated with this instance.booleanbooleanstatic voidremoveAllFromDocument(MDocument target) Removes all NoStructure labels from the target document.static voidremoveFromDocument(NoStructure structure, MDocument target) Removes the given NoStructre from the target document.static voidremoveSelectedFrom(MDocument target) Removes the selected NoStructres from the document.static voidremoveUnSelectedFrom(MDocument target) Removes the non-selected NoStructures from the document.voidsetSelected(boolean isSelected) Sets whether this NoStructure is selected.static voidstoreInDocument(NoStructure structure, MDocument target) Puts the given NoStructe into the document.voidTransforms the location of the objectstatic voidunSelectInDocument(MDocument target) Removes the selection from all NoStructure labels in the document.
- 
Field Details- 
LABELLabel for NoStructure.- See Also:
 
 
- 
- 
Method Details- 
getLocationReturns the clone of the location of the NoStructure.
- 
transformTransforms the location of the object- Parameters:
- t- the transformation to transform with.
 
- 
getLabelThe label for the noStructure.
- 
setSelectedpublic void setSelected(boolean isSelected) Sets whether this NoStructure is selected.
- 
isSelectedpublic boolean isSelected()- Returns:
- true if the NoStructure is selected.
 
- 
createInDocumentFromCreates a NoStructure from the given component. The component should be empty. Used during reaction import to convert empty reactants or products into NoStructure labels.- Parameters:
- component- the component the label will be created from
- Returns:
- the created noStrucure
- Throws:
- IllegalArgumentException- if the component is not empty.
 
- 
isAssociatedWithVerifies the reference equality of molecule and the component associated with this instance.- Parameters:
- molecule- reference to test
- Returns:
- true if the references are equal
 
- 
isNonAssociatedpublic boolean isNonAssociated()
- 
createInDocumentAtCreates a NoStructure at the given location. If the tartet contains a reaction a new reactant or product will be created for the label.
- 
storeInDocumentPuts the given NoStructe into the document.
- 
getAllFromDocumentReturns all NoStructure labels from the document.
- 
removeFromDocumentRemoves the given NoStructre from the target document. If the target contains a reaction, the corresponding empty reaction component will be removed as well.
- 
removeAllFromDocumentRemoves all NoStructure labels from the target document. If the target contains a reaction the corresponding reaction components will be removed as well.
- 
addToSelectionAdds the selected NoStrutures from the document to the selectionDocument
- 
removeSelectedFromRemoves the selected NoStructres from the document. If the target contains a reaction the corresponding reaction components
- 
removeUnSelectedFromRemoves the non-selected NoStructures from the document. If the target contains a reaction the corresponding reaction components
- 
unSelectInDocumentRemoves the selection from all NoStructure labels in the document.
 
-