th.co.edge.jseq
Class TextDiagram

java.lang.Object
  extended by th.co.edge.jseq.TextDiagram
All Implemented Interfaces:
Diagram

public class TextDiagram
extends java.lang.Object
implements Diagram

A TextDiagram that can be fully defined by a string, for example using XML.


Constructor Summary
TextDiagram(java.lang.String text)
          Creates a new TextDiagram defined by the given string.
 
Method Summary
 void save(java.io.File file)
          Writes this TextDiagram to file using a Writer so as to support different character encodings.
 java.lang.String toString()
          Returns the string defining this TextDiagram.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextDiagram

public TextDiagram(java.lang.String text)
Creates a new TextDiagram defined by the given string.

Parameters:
text - the string defining this TextDiagram
Method Detail

save

public void save(java.io.File file)
          throws java.io.IOException
Writes this TextDiagram to file using a Writer so as to support different character encodings.

Specified by:
save in interface Diagram
Parameters:
file - the File to write to
Throws:
java.io.IOException - if the diagram could not be saved

toString

public java.lang.String toString()
Returns the string defining this TextDiagram.

Specified by:
toString in interface Diagram
Overrides:
toString in class java.lang.Object
Returns:
the string defining this TextDiagram


Copyright © 2008 Edge Software, Co., Ltd.. All Rights Reserved.