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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToSelection
(MDocument from, MSelectionDocument to) Adds the selected NoStrutures from the document to the selectionDocumentstatic NoStructure
createInDocumentAt
(DPoint3 location, MDocument target) Creates a NoStructure at the given location.static NoStructure
createInDocumentFrom
(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.boolean
isAssociatedWith
(Molecule molecule) Verifies the reference equality of molecule and the component associated with this instance.boolean
boolean
static void
removeAllFromDocument
(MDocument target) Removes all NoStructure labels from the target document.static void
removeFromDocument
(NoStructure structure, MDocument target) Removes the given NoStructre from the target document.static void
removeSelectedFrom
(MDocument target) Removes the selected NoStructres from the document.static void
removeUnSelectedFrom
(MDocument target) Removes the non-selected NoStructures from the document.void
setSelected
(boolean isSelected) Sets whether this NoStructure is selected.static void
storeInDocument
(NoStructure structure, MDocument target) Puts the given NoStructe into the document.void
Transforms the location of the objectstatic void
unSelectInDocument
(MDocument target) Removes the selection from all NoStructure labels in the document.
-
Field Details
-
LABEL
Label for NoStructure.- See Also:
-
-
Method Details
-
getLocation
Returns the clone of the location of the NoStructure. -
transform
Transforms the location of the object- Parameters:
t
- the transformation to transform with.
-
getLabel
The label for the noStructure. -
setSelected
public void setSelected(boolean isSelected) Sets whether this NoStructure is selected. -
isSelected
public boolean isSelected()- Returns:
- true if the NoStructure is selected.
-
createInDocumentFrom
Creates 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.
-
isAssociatedWith
Verifies the reference equality of molecule and the component associated with this instance.- Parameters:
molecule
- reference to test- Returns:
- true if the references are equal
-
isNonAssociated
public boolean isNonAssociated() -
createInDocumentAt
Creates a NoStructure at the given location. If the tartet contains a reaction a new reactant or product will be created for the label. -
storeInDocument
Puts the given NoStructe into the document. -
getAllFromDocument
Returns all NoStructure labels from the document. -
removeFromDocument
Removes the given NoStructre from the target document. If the target contains a reaction, the corresponding empty reaction component will be removed as well. -
removeAllFromDocument
Removes all NoStructure labels from the target document. If the target contains a reaction the corresponding reaction components will be removed as well. -
addToSelection
Adds the selected NoStrutures from the document to the selectionDocument -
removeSelectedFrom
Removes the selected NoStructres from the document. If the target contains a reaction the corresponding reaction components -
removeUnSelectedFrom
Removes the non-selected NoStructures from the document. If the target contains a reaction the corresponding reaction components -
unSelectInDocument
Removes the selection from all NoStructure labels in the document.
-