|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccvisu.WriterData
ccvisu.WriterDataGraphics
ccvisu.WriterDataGraphicsDISP
Writer for displaying the layout on the screen device.
Field Summary | |
private java.awt.Graphics |
area
|
private ScreenDisplay |
display
|
private int |
insetleft
|
private java.util.Set[] |
xMap
|
private java.util.Set[] |
yMap
|
Fields inherited from class ccvisu.WriterDataGraphics |
backColor, blackCircle, fontSize, hideSource, minVert |
Fields inherited from class ccvisu.WriterData |
endl, graph |
Constructor Summary | |
WriterDataGraphicsDISP(GraphData graph,
boolean hideSource,
float minVert,
int fontSize,
java.awt.Color backColor,
boolean blackCircle,
boolean anim)
Constructor. |
Method Summary | |
java.lang.String |
getVertexNames(int xPos,
int yPos)
Compute list of names of the vertices at the given position. |
void |
toggleVertexNames(int xPos,
int yPos)
Toggle the showName flag of the vertices at the given position. |
void |
write()
Nothing to do here. |
void |
writeDISP(int size,
java.awt.Graphics area,
int xCanvasSize,
int yCanvasSize,
int insetleft)
Writes the layout on the screen device (DISP output format). |
void |
writeLAY(java.lang.String fileName)
Writes layout to file using class WriterDataLAY . |
void |
writeVertex(GraphVertex curVertex,
int xPos,
int yPos,
int zPos,
int dia)
Writes a vertex on screen. |
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 |
private ScreenDisplay display
private java.util.Set[] xMap
private java.util.Set[] yMap
private java.awt.Graphics area
private int insetleft
Constructor Detail |
public WriterDataGraphicsDISP(GraphData graph, boolean hideSource, float minVert, int fontSize, java.awt.Color backColor, boolean blackCircle, boolean anim)
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.anim
- If true, the layout is already displayed
while the minimizer is still improving it,
and a simple mouse click on the canvas
updates the current layout on the screen.
If false, the layout is displayed only after
minimization is completed.Method Detail |
public void write()
write
in class WriterDataGraphics
public void writeDISP(int size, java.awt.Graphics area, int xCanvasSize, int yCanvasSize, int insetleft)
ScreenDisplay
.
size
- Size of the output drawing quare.area
- The drawing area of the canvas.xCanvasSize
- Width of the canvas.yCanvasSize
- Height of the canvas.insetleft
- Left inset of the drawing frame.public void writeVertex(GraphVertex curVertex, int xPos, int yPos, int zPos, int dia)
writeVertex
in class WriterDataGraphics
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.public void writeLAY(java.lang.String fileName)
WriterDataLAY
.
Call-back method, invoked from within ScreenDisplay.
fileName
- Name of the output file to write the layout to.public void toggleVertexNames(int xPos, int yPos)
xPos
- x coordinate of the vertex.yPos
- y coordinate of the vertex.public java.lang.String getVertexNames(int xPos, int yPos)
xPos
- x coordinate of the vertex.yPos
- y coordinate of the vertex.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |