ccvisu
Class WriterDataGraphics

java.lang.Object
  extended byccvisu.WriterData
      extended byccvisu.WriterDataGraphics
Direct Known Subclasses:
WriterDataGraphicsDISP, WriterDataGraphicsSVG, WriterDataGraphicsVRML

public abstract class WriterDataGraphics
extends WriterData

Writer for graphical output of layout data.

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

Field Summary
protected  java.awt.Color backColor
           
protected  boolean blackCircle
           
protected  int fontSize
           
protected  boolean hideSource
           
protected  float minVert
           
 
Fields inherited from class ccvisu.WriterData
endl, graph
 
Constructor Summary
WriterDataGraphics(GraphData graph, boolean hideSource, float minVert, int fontSize, java.awt.Color backColor, boolean blackCircle)
          Constructor.
 
Method Summary
abstract  void write()
          Writes the layout data in a graphics format.
 void writeGraphicsLayout(int size)
          Write graphics layout.
abstract  void writeVertex(GraphVertex curVertex, int xPos, int yPos, int zPos, int dia)
          Writes a vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hideSource

protected boolean hideSource

minVert

protected float minVert

fontSize

protected int fontSize

backColor

protected java.awt.Color backColor

blackCircle

protected boolean blackCircle
Constructor Detail

WriterDataGraphics

public WriterDataGraphics(GraphData graph,
                          boolean hideSource,
                          float minVert,
                          int fontSize,
                          java.awt.Color backColor,
                          boolean blackCircle)
Constructor.

Parameters:
graph - Graph representation, contains the positions of the vertices.
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.
Method Detail

write

public abstract void write()
Writes the layout data in a graphics format.

Specified by:
write in class WriterData

writeGraphicsLayout

public void writeGraphicsLayout(int size)
Write graphics layout.

Parameters:
size - Size of output area (e.g., number of pixel).

writeVertex

public abstract void writeVertex(GraphVertex curVertex,
                                 int xPos,
                                 int yPos,
                                 int zPos,
                                 int dia)
Writes a vertex.

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.