com.tensegrity.gui.swt.document
Class SwtGraphDocumentWriter

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

public class SwtGraphDocumentWriter
extends GraphDocumentWriter

This is the SWT-specific implementation of GraphDocumentWriter which allows persisting instances of SwtGraphDocument.

Version:
$Id: SwtGraphDocumentWriter.java,v 1.13 2005/12/13 09:16:22 BurkhardWick Exp $
Author:
S�bastien Guyon

Field Summary
 
Fields inherited from class com.tensegrity.gui.graphdocument.persistence.GraphDocumentWriter
applicationframe, DOCUMENTSETTINGS
 
Constructor Summary
SwtGraphDocumentWriter(ApplicationFrame applicationframe)
           Initializes a SwtGraphDocumentWriter with the given application context.
 
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

SwtGraphDocumentWriter

public SwtGraphDocumentWriter(ApplicationFrame applicationframe)

Initializes a SwtGraphDocumentWriter with the given application context.

Parameters:
applicationframe - application context giving access to application specific information to this document writer.
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.