Class GraphDrawingPack.EdgeDrawing
All Packages This Package Previous Next
Class GraphDrawingPack.EdgeDrawing
java.lang.Object
|
+----GraphDrawingPack.EdgeDrawing
-
public final class
EdgeDrawing
-
extends Object
-
implements EdgeDrawingInterface
EdgeDrawing: implements all methods for drawing edges on canvas.
Edges are drawn as black lines from the center of one vertex to
the center of the other vertex. A square around the edge midpoint
is the active portion of the edge, and will be drawn if
GraphCanvas has "showEdgeCircles" set. Highlighted edges are red,
and plain edges are black.
-
EdgeDrawing(Edge)
-
-
EdgeDrawing(EdgeList)
-
-
EdgeinRect(double, double, double, double)
-
return true if active part of this edge is in rectangle
-
drawEdge(GraphCanvas)
-
draw this edge on GraphCanvas
-
getShape()
-
getShape: does nothing for nondirected edges
-
midx()
-
return x-value of midpoint of this edge
-
midy()
-
return y-value of midpoint of this edge
-
ptInEdge(GraphCanvas, double, double)
-
return true if pt(x,y) is in the active part of this edge
-
setShape(String)
-
setShape: does nothing for nondirected edges
-
update()
-
recalculate drawing information for the edge
EdgeDrawing
public EdgeDrawing(Edge _e)
EdgeDrawing
public EdgeDrawing(EdgeList _e)
drawEdge
public void drawEdge(GraphCanvas gc)
-
draw this edge on GraphCanvas
ptInEdge
public boolean ptInEdge(GraphCanvas gc,
double x,
double y)
-
return true if pt(x,y) is in the active part of this edge
EdgeinRect
public boolean EdgeinRect(double x,
double y,
double x2,
double y2)
-
return true if active part of this edge is in rectangle
update
public void update()
-
recalculate drawing information for the edge
setShape
public void setShape(String t)
-
setShape: does nothing for nondirected edges
getShape
public String getShape()
-
getShape: does nothing for nondirected edges
midx
public int midx()
-
return x-value of midpoint of this edge
midy
public int midy()
-
return y-value of midpoint of this edge
All Packages This Package Previous Next