V
- The type of the intersection member
public abstract class IntersectionMember<V>
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
IntersectionMember(V element, JGeometry geometry)
Allocates a new intersection member
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
double |
getDistToInterCommonPoint()
Gets the distance from the element's intersected point to the point considered as the origin of the intersection
|
V |
getElement()
Gets the intersection's element
|
JGeometry |
getGeometry()
Gets the geometry of the intersection's element
|
long |
getId()
Gets the member's id
|
IntersectionLocation |
getIntersectionLocation()
Gets the element's location where the intersection takes place
|
abstract java.awt.geom.Point2D |
getIntersectionPoint()
Gets the spatial point where the element is intersected.
|
abstract boolean |
isLine()
Tells whether the element held is a line
|
abstract boolean |
isPoint()
Tells whether the element held is a point
|
void |
setDistToInterCommonPoint(double distToComInterPoint)
Sets the distance from the element's intersected point to the point considered as the origin of the intersection
|
void |
setElement(V element)
Sets the intersection's element
|
void |
setGeometry(JGeometry geometry)
Sets the geometry of the intersection's element
|
void |
setIntersectionLocation(IntersectionLocation intersectionLocation)
Sets the element's location where the intersection takes place
|
public long getId()
public V getElement()
public void setElement(V element)
element
- the intersection's elementpublic JGeometry getGeometry()
public void setGeometry(JGeometry geometry)
geometry
- the geometry of the intersection's elementpublic IntersectionLocation getIntersectionLocation()
public void setIntersectionLocation(IntersectionLocation intersectionLocation)
intersectionLocation
- an intersection location typepublic double getDistToInterCommonPoint()
public void setDistToInterCommonPoint(double distToComInterPoint)
distToComInterPoint
- the distance to the intersection's common pointpublic abstract boolean isLine()
public abstract boolean isPoint()
public abstract java.awt.geom.Point2D getIntersectionPoint()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException