|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.graphdocument.persistence.GraphDocumentWriter
Base implementation of the DocumentWriter interface for writing
GraphDocuments.
| Field Summary | |
protected ApplicationFrame |
applicationframe
The application frame, stored from constructor for internal use |
static java.lang.String |
DOCUMENTSETTINGS
Identifier for the top-level DocumentSettings list attribute. |
| Constructor Summary | |
GraphDocumentWriter(ApplicationFrame applicationframe)
Constructor |
|
| Method Summary | |
protected void |
clearUsedItems()
|
protected AttributeList |
getImageList(GraphDocument gd)
Creates a list of images as AttributeList that can be serialized |
protected void |
prepareForWriting(Document doc)
Makes preparations depending on the settings in the given document. |
protected void |
saveGeometries(AttributeList list,
GraphDocument gDoc)
Saves the geometries to the given AttributeList structure.
|
protected void |
saveLayouts(AttributeList list,
GraphDocument gDoc)
Saves the layout configuration to the given AttributeList
structure.
|
protected void |
saveRules(AttributeList list,
GraphDocument gDoc)
Saves the rules to the given AttributeList structure.
|
protected void |
saveStyles(AttributeList list,
GraphDocument gDoc)
Saves the styles to the given AttributeList structure.
|
protected void |
writeDocumentToStream(Document doc,
AttributeList list,
java.io.OutputStream output)
Writes the given AttributeList to the output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tensegrity.gui.document.persistence.DocumentWriter |
writeDocument |
| Field Detail |
protected final ApplicationFrame applicationframe
public static final java.lang.String DOCUMENTSETTINGS
| Constructor Detail |
public GraphDocumentWriter(ApplicationFrame applicationframe)
applicationframe - The application frame| Method Detail |
protected void writeDocumentToStream(Document doc,
AttributeList list,
java.io.OutputStream output)
throws WriteException,
java.io.IOException
doc - The document that contains the datalist - The data that should be written to the streamoutput - The output stream
WriteException - If an error occured during writing
java.io.IOException - If an error occured during stream accessprotected void prepareForWriting(Document doc)
doc - The document to get the settings from
protected final void saveStyles(AttributeList list,
GraphDocument gDoc)
throws IllegalAttributeException,
IllegalNameException,
IllegalValueException,
ConstraintViolationException,
SerializeException
AttributeList structure.
Whether data will be stored and the amount of data depends on the
settings of the given graphdocument.
list - The list to store the data ingDoc - The graphdocument to store
IllegalAttributeException
IllegalNameException
IllegalValueException
ConstraintViolationException
SerializeException
protected final void saveGeometries(AttributeList list,
GraphDocument gDoc)
throws IllegalAttributeException,
IllegalNameException,
IllegalValueException,
ConstraintViolationException,
SerializeException
AttributeList structure.
Whether data will be stored and the amount of data depends on the
settings of the given graphdocument.
list - The list to store the data ingDoc - The graphdocument to store
IllegalAttributeException
IllegalNameException
IllegalValueException
ConstraintViolationException
SerializeException
protected final void saveRules(AttributeList list,
GraphDocument gDoc)
throws IllegalAttributeException,
IllegalNameException,
IllegalValueException,
ConstraintViolationException,
SerializeException
AttributeList structure.
Whether data will be stored and the amount of data depends on the
settings of the given graphdocument.
list - The list to store the data ingDoc - The graphdocument to store
IllegalAttributeException
IllegalNameException
IllegalValueException
ConstraintViolationException
SerializeException
protected final void saveLayouts(AttributeList list,
GraphDocument gDoc)
throws IllegalAttributeException,
IllegalNameException,
IllegalValueException,
ConstraintViolationException
AttributeList
structure.
Whether data will be stored and the amount of data depends on the
settings of the given graphdocument.
list - The list to store the data ingDoc - The graphdocument to store
IllegalAttributeException
IllegalNameException
IllegalValueException
ConstraintViolationException
SerializeExceptionprotected final void clearUsedItems()
protected final AttributeList getImageList(GraphDocument gd)
gd - The GraphDocument
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||