|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.geom.YPointPath
This class represents an ordered list of points in the plane.
Field Summary | |
static YPointPath |
EMPTY_PATH
Defines a path with no points. |
Constructor Summary | |
YPointPath()
Creates a new path from a vector. |
|
YPointPath(Vector v)
Creates a new path from a vector. |
|
YPointPath(YPoint[] path)
Creates a new path from an array of points. |
Method Summary | |
YPointPath |
createReverse()
Create a point path with reverse ordering of the points. |
YCursor |
cursor()
Get the points in the path. |
YPoint |
getFirst()
Get the first point in the path. |
YPoint |
getLast()
Get the first point in the path. |
LineSegment |
getLineSegment(int i)
Returns a line segment in the path. |
Iterator |
iterator()
Get the points in the path. |
int |
length()
Get the number of points in the path. |
YLineSegmentCursor |
lineSegments()
Get the points in the path. |
YPointCursor |
points()
Get the points in the path. |
YPoint[] |
toArray()
Get the points in the list as array. |
String |
toString()
|
Vector |
toVector()
Get the points in the list as vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final YPointPath EMPTY_PATH
Constructor Detail |
public YPointPath()
public YPointPath(Vector v)
public YPointPath(YPoint[] path)
Method Detail |
public YCursor cursor()
public YPointCursor points()
public Iterator iterator()
public YPoint getFirst()
public YPoint getLast()
public Vector toVector()
public YPoint[] toArray()
public YPointPath createReverse()
public int length()
public YLineSegmentCursor lineSegments()
public LineSegment getLineSegment(int i)
public String toString()
toString
in class Object
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |