Interface GraphDrawingPack.VertexDrawingInterface
All Packages This Package Previous Next
Interface GraphDrawingPack.VertexDrawingInterface
-
public interface
VertexDrawingInterface
-
extends Object
VertexDrawingInterface: all methods needed to draw vertices on
canvas. In order to change how vertices are drawn, one would have
to implement this interface, and then change the instantiation of
this interface in GraphPack.Vertex.java
-
VertexinRect(double, double, double, double)
-
return true if this vertex is in rectangle specified
-
drawVertex(GraphCanvas)
-
draw vertex v on canvas
-
drawVxorTrans(GraphCanvas, int, int)
-
draw vertex v 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
drawVertex
public abstract void drawVertex(GraphCanvas gc)
-
draw vertex v on canvas
drawVxorTrans
public abstract void drawVxorTrans(GraphCanvas gc,
int xtrans,
int ytrans)
-
draw vertex v translated by xtrans and ytrans, painted in xor mode
note - draws v as if it were highlighted, but without border
ptInVertex
public abstract boolean ptInVertex(GraphCanvas gc,
double x,
double y)
-
return true if pt(x,y) is in this vertex
VertexinRect
public abstract 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