path
Class VertexPath

java.lang.Object
  extended by path.VertexPath
All Implemented Interfaces:
PolygonalPath

public class VertexPath
extends Object
implements PolygonalPath

A VertexPath is a polygonal path which is constructed from a list of vertices.


Constructor Summary
VertexPath(Collection<Complex> vertex_list)
          Construct from a collection of coordinates for vertices.
VertexPath(Complex... vertices)
          Construct from a list of complex numbers.
VertexPath(PolygonalPath p)
          Convert p into a VertexPath.
VertexPath(PolygonalPath p, PlanarMap f)
          Construct the image of the path p under the map f.
 
Method Summary
 Complex endingPoint()
          Return the ending point of the path.
 EdgeIterator iterator()
          Return an iterator over the segments making up the path.
 Complex startingPoint()
          Return the starting point of the path.
 String toString()
          Return a string representing the polygonal path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VertexPath

public VertexPath(Collection<Complex> vertex_list)
Construct from a collection of coordinates for vertices.


VertexPath

public VertexPath(Complex... vertices)
Construct from a list of complex numbers.


VertexPath

public VertexPath(PolygonalPath p)
Convert p into a VertexPath.


VertexPath

public VertexPath(PolygonalPath p,
                  PlanarMap f)
Construct the image of the path p under the map f.

Method Detail

iterator

public EdgeIterator iterator()
Return an iterator over the segments making up the path.

Specified by:
iterator in interface PolygonalPath

endingPoint

public Complex endingPoint()
Return the ending point of the path.

Specified by:
endingPoint in interface PolygonalPath

startingPoint

public Complex startingPoint()
Return the starting point of the path.

Specified by:
startingPoint in interface PolygonalPath

toString

public String toString()
Return a string representing the polygonal path

Overrides:
toString in class Object


Java Tutorial for Mathematics Students