@PublicAPI public class NoStructure extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LABEL
Label for NoStructure.
|
Modifier and Type | Method and Description |
---|---|
static void |
addToSelection(MDocument from,
MSelectionDocument to)
Adds the selected NoStrutures from the document to the selectionDocument
|
static 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 java.util.List<NoStructure> |
getAllFromDocument(MDocument doc)
Returns all NoStructure labels from the document.
|
java.lang.String |
getLabel()
The label for the noStructure.
|
DPoint3 |
getLocation()
Returns the clone of the location of the NoStructure.
|
boolean |
isSelected() |
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 |
transform(CTransform3D t)
Transforms the location of the object
|
static void |
unSelectInDocument(MDocument target)
Removes the selection from all NoStructure labels in the document.
|
public static final java.lang.String LABEL
public DPoint3 getLocation()
public void transform(CTransform3D t)
t
- the transformation to transform with.public java.lang.String getLabel()
public void setSelected(boolean isSelected)
isSelected
- public boolean isSelected()
public static NoStructure createInDocumentFrom(Molecule component, MDocument target)
component
- the component the label will be created fromtarget
- java.lang.IllegalArgumentException
- if the component is not empty.public static NoStructure createInDocumentAt(DPoint3 location, MDocument target)
location
- target
- public static void storeInDocument(NoStructure structure, MDocument target)
structure
- target
- public static java.util.List<NoStructure> getAllFromDocument(MDocument doc)
doc
- public static void removeFromDocument(NoStructure structure, MDocument target)
structure
- target
- public static void removeAllFromDocument(MDocument target)
target
- public static void addToSelection(MDocument from, MSelectionDocument to)
from
- to
- public static void removeSelectedFrom(MDocument target)
target
- public static void removeUnSelectedFrom(MDocument target)
target
- public static void unSelectInDocument(MDocument target)
target
-