V
- The type of intersection memberpublic class LineIntersectionMember<V> extends IntersectionMember<V>
Constructor and Description |
---|
LineIntersectionMember(V element, JGeometry line) |
LineIntersectionMember(V element, JGeometry line, JGeometrySegmentPoint intersectionSegmentPoint)
Allocates a new line intersection member
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
static IntersectionLocation |
getIntersectionLocaction(JGeometry line, JGeometrySegmentPoint segmentPoint)
Gets a line's intersection location based on the line's segment point
|
java.awt.geom.Point2D |
getIntersectionPoint()
Gets the spatial point where the element is intersected.
|
JGeometrySegmentPoint |
getIntersectionSegmentPoint()
Gets the line's segment point where the intersection is taking place
|
boolean |
isLine()
Tells whether the element held is a line
|
boolean |
isPoint()
Tells whether the element held is a point
|
void |
setIntersectionSegmentPoint(JGeometrySegmentPoint segmentPoint)
Sets the line's segment point where the intersection is taking place
|
getDistToInterCommonPoint, getElement, getGeometry, getId, getIntersectionLocation, setDistToInterCommonPoint, setElement, setGeometry, setIntersectionLocation
public LineIntersectionMember(V element, JGeometry line, JGeometrySegmentPoint intersectionSegmentPoint)
element
- the intersection's elementline
- the element's lineintersectionSegmentPoint
- the line's segment point where the intersection is taking placepublic boolean isLine()
IntersectionMember
isLine
in class IntersectionMember<V>
public boolean isPoint()
IntersectionMember
isPoint
in class IntersectionMember<V>
public java.awt.geom.Point2D getIntersectionPoint()
IntersectionMember
getIntersectionPoint
in class IntersectionMember<V>
public JGeometrySegmentPoint getIntersectionSegmentPoint()
public void setIntersectionSegmentPoint(JGeometrySegmentPoint segmentPoint)
segmentPoint
- a line's segment pointpublic static IntersectionLocation getIntersectionLocaction(JGeometry line, JGeometrySegmentPoint segmentPoint)
line
- a line geometrysegmentPoint
- the line's segment pointpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class IntersectionMember<V>
java.lang.CloneNotSupportedException