|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xistrat.util.d3.vrmlgraph.TextLayout
public class TextLayout
This class contains layout methods for outputting text
Constructor Summary | |
---|---|
TextLayout(java.io.BufferedWriter bw)
Constructor for the TextLayout object |
Method Summary | |
---|---|
void |
writeEdge(java.lang.String nodeA,
java.lang.String nodeB)
Writes all of the Edge Data to the text file, one line per edge, with a tab separating the two Node labels |
void |
writeEdgeHeader()
Writes a header to preceed the Edge information |
void |
writeHeader(java.lang.String title,
java.lang.String info)
Writes a header to the text file, comprising of a title and info field |
void |
writeNode(double x,
double y,
double z,
java.lang.String label)
Writes all of the Node data to the text file, one line per Node, with each field separated by a tab |
void |
writeNodeHeader()
Writes a header to preceed the Node information |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextLayout(java.io.BufferedWriter bw)
bw
- The BufferedWriter to write toMethod Detail |
---|
public void writeHeader(java.lang.String title, java.lang.String info) throws java.io.IOException
title
- The title of the text fileinfo
- Any further information about the text file
java.io.IOException
- Throws an IOException if an error occurspublic void writeNodeHeader() throws java.io.IOException
java.io.IOException
- Throws an IOException if an error occurspublic void writeNode(double x, double y, double z, java.lang.String label) throws java.io.IOException
x
- The X coordinate of the Nodey
- The Y coordinate of the Nodez
- The Z coordinate of the Nodelabel
- The label of the Node
java.io.IOException
- Throws an IOException if an error occurspublic void writeEdgeHeader() throws java.io.IOException
java.io.IOException
- Throws an IOException if an error occurspublic void writeEdge(java.lang.String nodeA, java.lang.String nodeB) throws java.io.IOException
nodeA
- The label of the first Node that this edge connectsnodeB
- The label of the second Node that this edge connects
java.io.IOException
- Throws an IOException if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |