ccvisu
Class WriterDataGraphicsVRML

java.lang.Object
  extended byccvisu.WriterData
      extended byccvisu.WriterDataGraphics
          extended byccvisu.WriterDataGraphicsVRML

public class WriterDataGraphicsVRML
extends WriterDataGraphics

Writer for layouts in VRML format.

Version:
$Revision: 1.3 $; $Date: 2005/09/30 15:28:10 $
Author:
Dirk Beyer

Field Summary
private  java.io.PrintWriter out
           
private  float scalePos
           
 
Fields inherited from class ccvisu.WriterDataGraphics
backColor, blackCircle, fontSize, hideSource, minVert
 
Fields inherited from class ccvisu.WriterData
endl, graph
 
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 ccvisu.WriterDataGraphics
writeGraphicsLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private java.io.PrintWriter out

scalePos

private float scalePos
Constructor Detail

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.
Method Detail

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.