ccvisu
Class WriterDataGraphicsVRML
java.lang.Object
ccvisu.WriterData
ccvisu.WriterDataGraphics
ccvisu.WriterDataGraphicsVRML
- public class WriterDataGraphicsVRML
- extends WriterDataGraphics
Writer for layouts in VRML format.
- Version:
- $Revision: 1.2 $; $Date: 2005/08/22 12:42:48 $
- Author:
- Dirk Beyer
Field Summary |
private java.io.PrintWriter |
out
|
private float |
scalePos
|
Constructor Summary |
WriterDataGraphicsVRML(GraphData graph,
java.io.PrintWriter out,
boolean hideSource,
float minVert,
int fontSize,
java.awt.Color backColor,
boolean blackCircle,
float scalePos)
Constructor. |
Method Summary |
void |
write()
Writes the layout in graphics format VRML. |
void |
writeVertex(GraphVertex curVertex,
int xPos,
int yPos,
int zPos,
int dia)
Writes a vertex in VRML format. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
private java.io.PrintWriter out
scalePos
private float scalePos
WriterDataGraphicsVRML
public WriterDataGraphicsVRML(GraphData graph,
java.io.PrintWriter out,
boolean hideSource,
float minVert,
int fontSize,
java.awt.Color backColor,
boolean blackCircle,
float scalePos)
- Constructor.
- Parameters:
graph
- Graph representation, contains the positions of the vertices.out
- Output stream writer.hideSource
- If true, draw only vertices that are not source of an edge.
In co-change graphs, all change-transaction vertices
are source vertices.minVert
- Diameter of the smallest vertex.fontSize
- Font size of vertex annotations.backColor
- Background color.blackCircle
- If true, draw black circle around each vertex.scalePos
- Scaling factor for the layout to adjust to drawing area.
write
public void write()
- Writes the layout in graphics format VRML.
- Specified by:
write
in class WriterDataGraphics
writeVertex
public void writeVertex(GraphVertex curVertex,
int xPos,
int yPos,
int zPos,
int dia)
- Writes a vertex in VRML format.
- Specified by:
writeVertex
in class WriterDataGraphics
- Parameters:
curVertex
- The vertex object, to access vertex attributes.xPos
- x coordinate of the vertex.yPos
- y coordinate of the vertex.zPos
- z coordinate of the vertex.dia
- Diameter of the vertex.