org.jscience.geography
Class Path

java.lang.Object
  extended by org.jscience.geography.Path
All Implemented Interfaces:
Positioned

public class Path
extends java.lang.Object
implements Positioned

A class representing a path or track.


Constructor Summary
Path(Coord[] coords)
          Creates a new Path object.
 
Method Summary
 Coord getCoordAtI(int i)
          DOCUMENT ME!
 Coord[] getCoords()
          DOCUMENT ME!
 java.lang.Object getPosition()
          DOCUMENT ME!
 Path getReversePath()
          DOCUMENT ME!
 int getSize()
          DOCUMENT ME!
 boolean isClosed()
          DOCUMENT ME!
 boolean isDot()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Path

public Path(Coord[] coords)
Creates a new Path object.

Parameters:
coords - DOCUMENT ME!
Method Detail

getReversePath

public Path getReversePath()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCoords

public Coord[] getCoords()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCoordAtI

public Coord getCoordAtI(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IndexOutOfBoundsException - DOCUMENT ME!

getSize

public int getSize()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isDot

public boolean isDot()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isClosed

public boolean isClosed()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPosition

public java.lang.Object getPosition()
DOCUMENT ME!

Specified by:
getPosition in interface Positioned
Returns:
DOCUMENT ME!