com.mizar.graphtheory
Class Face

java.lang.Object
  extended by com.mizar.graphtheory.Face
All Implemented Interfaces:
java.io.Serializable

public class Face
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Face(Graph graph)
           
 
Method Summary
 Edge addEdge(Edge edge)
           
 java.util.ArrayList<Edge> getEdges()
           
 Polygon getPolygon()
          Gets the Face's Polygon.
 java.lang.Object getReference()
           
 boolean isLeftOfEdge(Edge edge)
           
 boolean isRightOfEdge(Edge edge)
           
 Edge removeEdge(Edge edge)
           
 void setEdges(java.util.ArrayList<Edge> edges)
           
 void setPolygon(Polygon polygon)
           
 void setReference(java.lang.Object reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Face

public Face(Graph graph)
Method Detail

setEdges

public void setEdges(java.util.ArrayList<Edge> edges)

getEdges

public java.util.ArrayList<Edge> getEdges()

setReference

public void setReference(java.lang.Object reference)

getReference

public java.lang.Object getReference()

addEdge

public Edge addEdge(Edge edge)

removeEdge

public Edge removeEdge(Edge edge)

setPolygon

public void setPolygon(Polygon polygon)

getPolygon

public Polygon getPolygon()
Gets the Face's Polygon. If Polygon is not defined, it will try to build a Polygon from Face's Edges.

Returns:

isLeftOfEdge

public boolean isLeftOfEdge(Edge edge)

isRightOfEdge

public boolean isRightOfEdge(Edge edge)