- All Implemented Interfaces:
Serializable,Cloneable,Iterable<PlineVertex>,Collection<PlineVertex>,List<PlineVertex>,RandomAccess,SequencedCollection<PlineVertex>
Represents a path consisting of
PlineVertex elements.- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVertex(double x, double y) voidaddVertex(double x, double y, double bulge) voidclone()static StaticSpatialIndexCreates an approximate spatial index for all the segments in the polyline given using createFastApproxBoundingBox.doubleintstatic voidinvertDirection(PlinePath pline) booleanisClosed()voidisClosed(boolean closed) voidlastVertex(PlineVertex newValue) voidsetWindingRule(int windingRule) voidvisitSegIndices(BiPredicate<Integer, Integer> visitor) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
PlinePath
public PlinePath() -
PlinePath
public PlinePath(int initialCapacity)
-
-
Method Details
-
clone
- Overrides:
clonein classArrayList<PlineVertex>
-
addVertex
-
addVertex
public void addVertex(double x, double y) -
addVertex
public void addVertex(double x, double y, double bulge) -
isClosed
public boolean isClosed() -
lastVertex
-
lastVertex
-
isClosed
public void isClosed(boolean closed) -
getWindingRule
public int getWindingRule() -
removeLast
- Specified by:
removeLastin interfaceList<PlineVertex>- Specified by:
removeLastin interfaceSequencedCollection<PlineVertex>- Overrides:
removeLastin classArrayList<PlineVertex>
-
visitSegIndices
-
setWindingRule
public void setWindingRule(int windingRule) -
getPathIterator
-
createApproxSpatialIndex
Creates an approximate spatial index for all the segments in the polyline given using createFastApproxBoundingBox. -
invertDirection
-
getPathLength
public double getPathLength()
-