Class GraphDrawingPack.Arrow
All Packages This Package Previous Next
Class GraphDrawingPack.Arrow
java.lang.Object
|
+----GraphDrawingPack.Arrow
-
public class
Arrow
-
extends Object
-
implements EdgeShapeInterface
Arrow Edge Shapes: draws arrow at midpoint of edge pointing
towards destination vertex. The arrow is a triangle with two
points on the line perpendicular to the line between v1 and v2
(the two vertices). With bowed-out edges, the other point may not
be on the arc itself, but instead in on the line parallel to the
line v1v2.
-
xs
-
-
ys
-
-
Arrow(DirEdgeDrawing)
-
-
draw(GraphCanvas, Color)
-
draw shape on given graph canvas
-
getType()
-
return a string which is the name of the shape
-
setShape()
-
calculate information for drawing the shape
xs
public int xs[]
ys
public int ys[]
Arrow
public Arrow(DirEdgeDrawing _e)
setShape
public void setShape()
-
calculate information for drawing the shape
getType
public String getType()
-
return a string which is the name of the shape
draw
public void draw(GraphCanvas gc,
Color c)
-
draw shape on given graph canvas
All Packages This Package Previous Next