|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object chemaxon.struc.MDocument
Marvin document. Stores molecules and graphics objects. This class is under development, use it at your own risk!
Field Summary | |
protected chemaxon.struc.graphics.MChemicalStruct |
mainMChemicalStruct
|
protected MObject |
objectContainingSelection
|
protected java.util.Vector |
objects
|
Constructor Summary | |
MDocument(MDocument doc)
Copy constructor. |
|
MDocument(MoleculeGraph m)
Creates a document for the specified molecule graph. |
Method Summary | |
void |
addObject(MObject o)
Adds an object to the document. |
DPoint3 |
calcCenter()
Calculates the geometrical center. |
void |
clear()
Clears the document. |
java.lang.Object |
clone()
Creates a clone. |
boolean |
contains(MObject o)
Searches an object in the document. |
MObject |
getDraggedObject()
Gets the dragged object |
long |
getEndPosition()
Gets the end position of this document in the input file. |
MObject |
getFocus()
Gets the focused object |
java.lang.String |
getInputFormat()
Gets the input file format. |
MoleculeGraph |
getMainMoleculeGraph()
Gets the main molecule graph. |
MObject |
getObject(int i)
Gets an object |
MObject |
getObjectContainingSelection()
Gets the object that contains the selection. |
int |
getObjectCount()
Gets the number of objects in this document. |
long |
getStartPosition()
Gets the starting position of this document in the input file. |
void |
highlight(MObject o)
Highlight an object. |
int |
indexOf(MObject o)
Searches an object in the document. |
boolean |
isEmpty()
|
boolean |
isHighlighted(MObject o)
Is the specified object currently highlighted? |
void |
moveMainMoleculeGraphToFront()
Move the main molecule graph to the top of stack. |
void |
moveObject(MObject o,
int i)
Move an object to another place in the stack. |
void |
removeNodeFromGraphs(CNode node)
Removes the specified node from all molecule graphs. |
void |
removeObject(int i)
Removes an object from the document. |
void |
removeObject(MObject o)
Removes an object from the document. |
void |
selectAllObjects(boolean s)
Selects or unselects all objects. |
void |
setDraggedObject(MObject o)
Sets the dragged object. |
void |
setEndPosition(long off)
Sets the end position of this document in the input file. |
void |
setFocus(MObject o)
Focus to the specified object. |
void |
setInputFormat(java.lang.String format)
Sets the input file format. |
void |
setMainMoleculeGraph(MoleculeGraph m)
Sets the main molecule graph. |
void |
setObject(MObject o,
int i)
Sets an object |
void |
setObjectContainingSelection(MObject o)
Sets the object that contains the selection. |
void |
setStartPosition(long off)
Sets the starting position of this document in the input file. |
void |
transform(CTransform3D t)
|
void |
unhighlight(MObject o)
Unhighlights an object. |
void |
unhighlightAll()
Unhighlights all objects. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.util.Vector objects
protected transient chemaxon.struc.graphics.MChemicalStruct mainMChemicalStruct
protected MObject objectContainingSelection
Constructor Detail |
public MDocument(MoleculeGraph m)
m
- the main molecule graphpublic MDocument(MDocument doc)
doc
- the sourceMethod Detail |
public java.lang.Object clone()
public void removeNodeFromGraphs(CNode node)
node
- the node to removepublic void selectAllObjects(boolean s)
public MObject getObjectContainingSelection()
public void setObjectContainingSelection(MObject o)
o
- the object or nullpublic boolean isHighlighted(MObject o)
public void highlight(MObject o)
o
- the object to highlightpublic void unhighlight(MObject o)
o
- the object to unhighlightpublic void unhighlightAll()
public MObject getDraggedObject()
public void setDraggedObject(MObject o)
o
- the objectpublic MObject getFocus()
public void setFocus(MObject o)
o
- the objectpublic MoleculeGraph getMainMoleculeGraph()
public void setMainMoleculeGraph(MoleculeGraph m)
m
- the molecule graphpublic int indexOf(MObject o)
o
- the object
public void moveObject(MObject o, int i)
o
- the objecti
- the new positionpublic void moveMainMoleculeGraphToFront()
public boolean contains(MObject o)
o
- the object
public void addObject(MObject o)
o
- the objectpublic void removeObject(MObject o)
o
- the objectpublic void removeObject(int i)
i
- the object indexpublic int getObjectCount()
public MObject getObject(int i)
i
- the line number
public void setObject(MObject o, int i)
o
- the objecti
- the indexpublic void clear()
public boolean isEmpty()
public void transform(CTransform3D t)
public DPoint3 calcCenter()
public long getStartPosition()
public void setStartPosition(long off)
off
- the starting positionpublic long getEndPosition()
public void setEndPosition(long off)
off
- the end positionpublic final java.lang.String getInputFormat()
public void setInputFormat(java.lang.String format)
format
- the input format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |