|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectccvisu.WriterData
ccvisu.WriterDataGraphics
public abstract class WriterDataGraphics
Writer for graphical output of layout data.
| Field Summary | |
|---|---|
protected Options |
options
|
| Fields inherited from class ccvisu.WriterData |
|---|
endl, graph, out |
| Constructor Summary | |
|---|---|
WriterDataGraphics(java.io.PrintWriter out,
GraphData graph,
Options options)
Constructor. |
|
| Method Summary | |
|---|---|
protected int[] |
paintArrow(int x0,
int y0,
int x1,
int y1)
Calculates the two angled lines that form the arrow head. |
abstract void |
write()
Writes the layout data in a graphics format. |
abstract void |
writeEdge(GraphEdge edge,
int xPos1,
int yPos1,
int zPos1,
int xPos2,
int yPos2,
int zPos2)
Writes an edge. |
void |
writeGraphicsLayout(java.util.List<GraphVertex> pVertices,
java.util.List<GraphEdge> pEdges,
int pSize)
Write graphics layout. |
abstract void |
writeVertex(GraphVertex curVertex,
int xPos,
int yPos,
int zPos,
int radius)
Writes a vertex. |
| Methods inherited from class ccvisu.WriterData |
|---|
mkQuoted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Options options
| Constructor Detail |
|---|
public WriterDataGraphics(java.io.PrintWriter out,
GraphData graph,
Options options)
graph - Graph representation, contains the positions of the vertices.| Method Detail |
|---|
public abstract void write()
write in class WriterData
public void writeGraphicsLayout(java.util.List<GraphVertex> pVertices,
java.util.List<GraphEdge> pEdges,
int pSize)
pSize - Size of output area (e.g., number of pixel).
public abstract void writeVertex(GraphVertex curVertex,
int xPos,
int yPos,
int zPos,
int radius)
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.
public abstract void writeEdge(GraphEdge edge,
int xPos1,
int yPos1,
int zPos1,
int xPos2,
int yPos2,
int zPos2)
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.
protected int[] paintArrow(int x0,
int y0,
int x1,
int y1)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||