Interface GraphPack.EdgeList
All Packages    This Package    Previous    Next

Interface GraphPack.EdgeList

public interface EdgeList
extends Object
EdgeList: contains a list of edges which can be traversed.

drawing()
return class containing all drawing methods for this edge
equals(Edge)
two edges are equal if they have the same vertices
getEdge()
return class Edge object
getV1()
return first vertex of this edge.
getV2()
return second vertex of this edge.
hasNextEdge()
return true if there is another edge in list
hasNextHEdge()
return true if there is another highlighted edge in list.
isH()
return true if this edge is highlighted
midx()
return virtual x-coordinate of midpoint of this edge.
midy()
return virtual y-coordinate of midpoint of this edge.
nextEdge()
return next edge in list
nextHEdge()
return next highlighted edge in list, null if this edge is not highlighted or no more highlighted edges
update()
recalculates information for drawing an edge if vertices are moved or another edge is added between same vertices of a directed graph
writeE()
return a text description of the edge
writeE(boolean)
return a text description of edge including whether it\'s highlighted

writeE
  public abstract String writeE()
return a text description of the edge

writeE

  public abstract String writeE(boolean highlight)
return a text description of edge including whether it\'s highlighted

getEdge

  public abstract Edge getEdge()
return class Edge object

nextEdge

  public abstract EdgeList nextEdge()
return next edge in list

nextHEdge

  public abstract EdgeList nextHEdge()
return next highlighted edge in list, null if this edge is not highlighted or no more highlighted edges

hasNextEdge

  public abstract boolean hasNextEdge()
return true if there is another edge in list

hasNextHEdge

  public abstract boolean hasNextHEdge()
return true if there is another highlighted edge in list.

midx

  public abstract double midx()
return virtual x-coordinate of midpoint of this edge.

midy

  public abstract double midy()
return virtual y-coordinate of midpoint of this edge.

getV1

  public abstract Vertex getV1()
return first vertex of this edge. Is source for a directed edge, otherwise order is unimportant

getV2

  public abstract Vertex getV2()
return second vertex of this edge. Is destination for a directed edge, otherwise order is unimportant

isH

  public abstract boolean isH()
return true if this edge is highlighted

update

  public abstract void update()
recalculates information for drawing an edge if vertices are moved or another edge is added between same vertices of a directed graph

drawing

  public abstract EdgeDrawingInterface drawing()
return class containing all drawing methods for this edge

equals

  public abstract boolean equals(Edge e)
two edges are equal if they have the same vertices


All Packages    This Package    Previous    Next