Interface GraphDrawingPack.EdgeShapeInterface
All Packages    This Package    Previous    Next

Interface GraphDrawingPack.EdgeShapeInterface

public interface EdgeShapeInterface
extends Object
EdgeShapes are the shape in the middle of a directed edge: usually an arrow for drected graphs, but can be other symbols for an object diagram etc. Note: changing edge shapes of undirected graph will do nothing.

Given information from the DirEdgeDrawing class, Edge shape will calculate information for drawing the shape and have a method to draw itself.


draw(GraphCanvas, Color)
draw shape on given graph canvas in given color
getType()
return a string which is the name of the shape
setShape()
calculate information for drawing the shape

setShape
  public abstract void setShape()
calculate information for drawing the shape

getType

  public abstract String getType()
return a string which is the name of the shape

draw

  public abstract void draw(GraphCanvas gc,
                            Color c)
draw shape on given graph canvas in given color


All Packages    This Package    Previous    Next