com.itextpdf.text.pdf.parser.clipper
Class Path

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Point.LongPoint>
              extended by com.itextpdf.text.pdf.parser.clipper.Path
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Point.LongPoint>, Collection<Point.LongPoint>, List<Point.LongPoint>, RandomAccess

public class Path
extends ArrayList<Point.LongPoint>

A pure convenience class to avoid writing List everywhere.

Author:
Tobias Mahlmann
See Also:
Serialized Form

Nested Class Summary
protected static class Path.Maxima
           
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Path()
           
Path(Collection<? extends Point.LongPoint> c)
           
Path(int cnt)
           
Path(Point.LongPoint[] points)
           
 
Method Summary
 double area()
           
 Path cleanPolygon()
           
 Path cleanPolygon(double distance)
           
 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, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Path

public Path()

Path

public Path(Point.LongPoint[] points)

Path

public Path(int cnt)

Path

public Path(Collection<? extends Point.LongPoint> c)
Method Detail

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)


Copyright © 2015. All Rights Reserved.