E
- The type of intersection members contained in the listpublic class LineIntersectionList<E> extends java.util.LinkedList<Intersection<E>>
Constructor and Description |
---|
LineIntersectionList(E element, JGeometry line, double tolerance)
Allocates a new line intersection list
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Intersection<E> intersection) |
Intersection<E> |
findIntersection(JGeometrySegmentPoint segPoint)
Looks for an intersection taking place at the given line's segment point
|
Intersection<E> |
findIntersection(java.awt.geom.Point2D point)
Looks for an intersection taking place at the given line's point
|
E |
getElement()
Gets the element represented by the line
|
JGeometry |
getLine()
Gets the current line geometry
|
double |
getTolerance()
Gets the tolerance used to determine if two points can be considered the same point
|
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
containsAll, isEmpty, removeAll, retainAll, toString
public LineIntersectionList(E element, JGeometry line, double tolerance)
element
- the element represented by the lineline
- the line where the intersections take placetolerance
- the tolerance used to determine if a two points are the same pointpublic Intersection<E> findIntersection(java.awt.geom.Point2D point)
point
- a point in the linepublic E getElement()
public JGeometry getLine()
public double getTolerance()
public Intersection<E> findIntersection(JGeometrySegmentPoint segPoint)
segPoint
- a line's segment pointpublic boolean add(Intersection<E> intersection)
add
in interface java.util.Collection<Intersection<E>>
add
in interface java.util.Deque<Intersection<E>>
add
in interface java.util.List<Intersection<E>>
add
in interface java.util.Queue<Intersection<E>>
add
in class java.util.LinkedList<Intersection<E>>