Class GraphDrawingPack.VertexDrawing
All Packages This Package Previous Next
Class GraphDrawingPack.VertexDrawing
java.lang.Object
|
+----GraphDrawingPack.VertexDrawing
-
public class
VertexDrawing
-
extends Object
-
implements VertexDrawingInterface
VertexDrawing: implements all methods for drawing vertices on
canvas. Vertices are rectangles which contain the text of the
selected vertex property. If no property is selected for display,
the vertex is drawn as a rectangle of size stored in the
GraphCanvas. Plain vertices are white framed in blue, and selected
vertices are red framed in blue.
-
VertexDrawing(Vertex)
-
set drawing methods for vertex _v
-
VertexinRect(double, double, double, double)
-
return true if this vertex is in rectangle specified
-
drawVertex(GraphCanvas)
-
draw this vertex on GraphCanvas
-
drawVxorTrans(GraphCanvas, int, int)
-
draw vertex translated by xtrans and ytrans, painted in xor mode
note - draws v as if it were highlighted, but without border
-
ptInVertex(GraphCanvas, double, double)
-
return true if pt(x,y) is in this vertex
VertexDrawing
public VertexDrawing(Vertex _v)
-
set drawing methods for vertex _v
drawVertex
public void drawVertex(GraphCanvas gc)
-
draw this vertex on GraphCanvas
drawVxorTrans
public void drawVxorTrans(GraphCanvas gc,
int xtrans,
int ytrans)
-
draw vertex translated by xtrans and ytrans, painted in xor mode
note - draws v as if it were highlighted, but without border
ptInVertex
public boolean ptInVertex(GraphCanvas gc,
double x,
double y)
-
return true if pt(x,y) is in this vertex
VertexinRect
public boolean VertexinRect(double x,
double y,
double x2,
double y2)
-
return true if this vertex is in rectangle specified
All Packages This Package Previous Next