ccvisu
Class WriterDataGraphicsSVG
java.lang.Object
ccvisu.WriterData
ccvisu.WriterDataGraphics
ccvisu.WriterDataGraphicsSVG
public class WriterDataGraphicsSVG
- extends WriterDataGraphics
Writer for layouts in SVG format (Scalable Vector Graphs, XML, W3C).
- Version:
- $Revision: 1.31 $; $Date: 2007/12/15 01:20:51 $
- Author:
- Dirk Beyer
|
Field Summary |
private int |
edgeNumber
used to build unique id for the edges |
|
Method Summary |
void |
write()
Writes the layout in graphics format SVG. |
void |
writeEdge(GraphEdge edge,
int xPos1,
int yPos1,
int zPos1,
int xPos2,
int yPos2,
int zPos2)
Writes an edge. |
void |
writeVertex(GraphVertex curVertex,
int xPos,
int yPos,
int zPos,
int radius)
Writes a vertex in SVG format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
edgeNumber
private int edgeNumber
- used to build unique id for the edges
WriterDataGraphicsSVG
public WriterDataGraphicsSVG(java.io.PrintWriter out,
GraphData graph,
Options opt)
- Constructor.
write
public void write()
- Writes the layout in graphics format SVG.
- Specified by:
write in class WriterDataGraphics
writeVertex
public void writeVertex(GraphVertex curVertex,
int xPos,
int yPos,
int zPos,
int radius)
- Writes a vertex in SVG 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.radius - Radius of the vertex.
writeEdge
public void writeEdge(GraphEdge edge,
int xPos1,
int yPos1,
int zPos1,
int xPos2,
int yPos2,
int zPos2)
- Writes an edge.
- Specified by:
writeEdge in class WriterDataGraphics
- Parameters:
edge - an edge in graph.edgesxPos1 - x coordinate of the first point.yPos1 - y coordinate of the first point.zPos1 - z coordinate of the first point.xPos2 - x coordinate of the second point.yPos2 - y coordinate of the second point.zPos2 - z coordinate of the second point.