Class Path
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Point.LongPoint>
-
- com.itextpdf.text.pdf.parser.clipper.Path
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<Point.LongPoint>
,java.util.Collection<Point.LongPoint>
,java.util.List<Point.LongPoint>
,java.util.RandomAccess
public class Path extends java.util.ArrayList<Point.LongPoint>
A pure convenience class to avoid writing Listeverywhere. - See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Path.Join
protected static class
Path.Maxima
(package private) static class
Path.OutPt
(package private) static class
Path.OutRec
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Path()
Path(int cnt)
Path(Point.LongPoint[] points)
Path(java.util.Collection<? extends Point.LongPoint> c)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
area()
Path
cleanPolygon()
Path
cleanPolygon(double distance)
private static Path.OutPt
excludeOp(Path.OutPt op)
int
isPointInPolygon(Point.LongPoint pt)
boolean
orientation()
void
reverse()
Path
TranslatePath(Point.LongPoint delta)
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Path
public Path()
-
Path
public Path(Point.LongPoint[] points)
-
Path
public Path(int cnt)
-
Path
public Path(java.util.Collection<? extends Point.LongPoint> c)
-
-
Method Detail
-
excludeOp
private static Path.OutPt excludeOp(Path.OutPt op)
-
area
public double area()
-
cleanPolygon
public Path cleanPolygon()
-
cleanPolygon
public Path cleanPolygon(double distance)
-
isPointInPolygon
public int isPointInPolygon(Point.LongPoint pt)
-
orientation
public boolean orientation()
-
reverse
public void reverse()
-
TranslatePath
public Path TranslatePath(Point.LongPoint delta)
-
-