| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.geom.YPointPath
public final class YPointPath
This class represents an ordered list of points in the plane.
| Field Summary | |
|---|---|
| static YPointPath | EMPTY_PATHDefines a path with no points. | 
| Constructor Summary | |
|---|---|
| YPointPath()Creates a new empty path. | |
| YPointPath(java.util.List l)Creates a new path from a list of points. | |
| YPointPath(java.util.Vector v)Creates a new path from a vector. | |
| YPointPath(YPoint[] path)Creates a new path from an array of points. | |
| Method Summary | |
|---|---|
|  double | calculateLength()Calculate the (geometric) length of the path. | 
|  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 last point in the path. | 
|  LineSegment | getLineSegment(int i)Returns a line segment in the path. | 
|  java.util.Iterator | iterator()Get the points in the path. | 
|  int | length()Get the number of points in the path. | 
|  int | lineSegmentCount()Get the number of line segments 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. | 
|  java.util.List | toList()Get the points in the path as list. | 
|  java.lang.String | toString() | 
|  java.util.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(java.util.Vector v)
public YPointPath(java.util.List l)
l - a list of YPoint instances.public YPointPath(YPoint[] path)
| Method Detail | 
|---|
public YCursor cursor()
public YPointCursor points()
public java.util.Iterator iterator()
public YPoint getFirst()
public YPoint getLast()
public java.util.Vector toVector()
public java.util.List toList()
YPoint instances.public YPoint[] toArray()
public YPointPath createReverse()
public int length()
public int lineSegmentCount()
public YLineSegmentCursor lineSegments()
public LineSegment getLineSegment(int i)
public java.lang.String toString()
toString in class java.lang.Objectpublic double calculateLength()
| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||