|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpath.Path
public class Path
This class represents a path. A path is a number of coordinates that get travelled sequencially.
| Constructor Summary | |
|---|---|
Path()
|
|
| Method Summary | |
|---|---|
void |
addPoint(double x,
double y)
Adds a point to the path |
java.awt.Point |
getCurrentPoint()
Returns the current point of the path. |
java.awt.Point |
getNextPoint()
Returns the next point in the path. |
java.util.LinkedList<java.awt.Point> |
getPoints()
Returns the list of points of the path |
java.awt.Point |
getPreviousPoint()
Returns the point previous to the current one of the path if there exits one, otherwise null is returned |
void |
next()
Sets the next point of the path as the active one |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Path()
| Method Detail |
|---|
public void addPoint(double x,
double y)
x - x coordinatey - y coordinatepublic java.awt.Point getCurrentPoint()
public java.awt.Point getNextPoint()
public java.awt.Point getPreviousPoint()
public java.util.LinkedList<java.awt.Point> getPoints()
public void next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||