com.tensegrity.gui.swing.document
Class SwingGraphDocumentWriter

java.lang.Object
  extended bycom.tensegrity.gui.graphdocument.persistence.GraphDocumentWriter
      extended bycom.tensegrity.gui.swing.document.SwingGraphDocumentWriter
All Implemented Interfaces:
DocumentWriter

public class SwingGraphDocumentWriter
extends GraphDocumentWriter

SwingGraphDocumentWriter

Author:
BurkhardWick

Field Summary
 
Fields inherited from class com.tensegrity.gui.graphdocument.persistence.GraphDocumentWriter
applicationframe, DOCUMENTSETTINGS
 
Constructor Summary
SwingGraphDocumentWriter(ApplicationFrame applicationframe)
          Constructor
 
Method Summary
 boolean writeDocument(Document doc, java.io.OutputStream output)
          Writes the data from the given document into the output stream.
 
Methods inherited from class com.tensegrity.gui.graphdocument.persistence.GraphDocumentWriter
clearUsedItems, getImageList, prepareForWriting, saveGeometries, saveLayouts, saveRules, saveStyles, writeDocumentToStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingGraphDocumentWriter

public SwingGraphDocumentWriter(ApplicationFrame applicationframe)
Constructor

Parameters:
applicationframe - The ApplicationFrame of the application, which is used to gain access to the preferences
Method Detail

writeDocument

public boolean writeDocument(Document doc,
                             java.io.OutputStream output)
                      throws SerializeException,
                             WriteException
Description copied from interface: DocumentWriter
Writes the data from the given document into the output stream.

Parameters:
doc - The document to write
output - The output stream to write to
Returns:
true, if writing was successful
Throws:
SerializeException - this is thrown if serializing the document failed
WriteException - this is thrown if writing to the output stream failed


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.