|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xistrat.util.d3.vrmlgraph.VRMLLayout
public class VRMLLayout
This class contains layout methods for outputting VRML
Constructor Summary | |
---|---|
VRMLLayout(java.io.BufferedWriter bw,
double fontSize,
java.lang.String fontColour,
double nodeSize,
java.lang.String nodeColour,
double nodeTransparency,
double edgeWidth,
java.lang.String edgeColour,
double edgeTransparency,
boolean showLabels)
Constructor for the VRMLLayout object |
Method Summary | |
---|---|
void |
writeBackground(java.lang.String colour)
Writes the Background into the VRML document |
void |
writeEdge(double midX,
double midY,
double midZ,
double distance,
double width,
double deltaZ,
double deltaY,
double rotateX,
double rotateFunny)
Writes an Edge to the VRML document |
void |
writeFooter()
Write a footer to the VRML document |
void |
writeHeader()
Writes a VRML version 2.0 header followed by a blank line |
void |
writeNode(double x,
double y,
double z,
java.lang.String label)
Writes a Node to the VRML document |
void |
writeViewpoint(double zDropBack)
Writes the initial viewpoint into the VRML document |
void |
writeWorldInfo(java.lang.String title,
java.lang.String info)
Writes WorldInfo to the VRML file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VRMLLayout(java.io.BufferedWriter bw, double fontSize, java.lang.String fontColour, double nodeSize, java.lang.String nodeColour, double nodeTransparency, double edgeWidth, java.lang.String edgeColour, double edgeTransparency, boolean showLabels)
bw
- The BufferedWriter to write tofontSize
- The font size for Node labelsfontColour
- The font colour for Node labelsnodeSize
- The size of NodesnodeColour
- The colour of NodesnodeTransparency
- The transparency of NodesedgeWidth
- The thickness of EdgesedgeColour
- The colour of EdgesedgeTransparency
- The transparency of EdgesshowLabels
- Specifies whether or not labels are to be displayed on the graphMethod Detail |
---|
public void writeHeader() throws java.io.IOException
java.io.IOException
- Throws an IOException if an error occurspublic void writeWorldInfo(java.lang.String title, java.lang.String info) throws java.io.IOException
title
- The title of the VRML worldinfo
- Information about the VRML world
java.io.IOException
- Throws an IOException if an error occurspublic void writeViewpoint(double zDropBack) throws java.io.IOException
zDropBack
- The distance between the viewer and the origin
java.io.IOException
- Throws an IOException if an error occurspublic void writeBackground(java.lang.String colour) throws java.io.IOException
colour
- The background colour of the VRML world
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 to be drawn
java.io.IOException
- Throws an IOException if an error occurspublic void writeEdge(double midX, double midY, double midZ, double distance, double width, double deltaZ, double deltaY, double rotateX, double rotateFunny) throws java.io.IOException
midX
- The X coordinate of the midpoint of the EdgemidY
- The Y coordinate of the midpoint of the EdgemidZ
- The Z coordinate of the midpoint of the Edgedistance
- The distance between the centres of the two nodes that the edge connectswidth
- The thickness of the EdgedeltaZ
- The Z axis rotationdeltaY
- The Y axis rotationrotateX
- The X axis rotationrotateFunny
- The rotation to perform after the X rotation has already been done.
java.io.IOException
- Throws an IOException if an error occurspublic void writeFooter() throws java.io.IOException
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 |