Class LineIntersectionMember<V>
- java.lang.Object
-
- oracle.spatial.network.nfe.model.spatial.interaction.IntersectionMember<V>
-
- oracle.spatial.network.nfe.model.spatial.interaction.LineIntersectionMember<V>
-
- Type Parameters:
V- The type of intersection member
- All Implemented Interfaces:
java.lang.Cloneable
public class LineIntersectionMember<V> extends IntersectionMember<V>
An intersection member which geometry is a line
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.model.spatial.interaction.IntersectionMember
distToComInterPoint, element, geometry, id, intersectionLocation
-
-
Constructor Summary
Constructors Constructor Description LineIntersectionMember(V element, JGeometry line)LineIntersectionMember(V element, JGeometry line, oracle.sdovis.edit.util.JGeometrySegmentPoint intersectionSegmentPoint)Allocates a new line intersection member
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()static IntersectionLocationgetIntersectionLocaction(JGeometry line, oracle.sdovis.edit.util.JGeometrySegmentPoint segmentPoint)Gets a line's intersection location based on the line's segment pointjava.awt.geom.Point2DgetIntersectionPoint()Gets the spatial point where the element is intersected.oracle.sdovis.edit.util.JGeometrySegmentPointgetIntersectionSegmentPoint()Gets the line's segment point where the intersection is taking placebooleanisLine()Tells whether the element held is a linebooleanisPoint()Tells whether the element held is a pointvoidsetIntersectionSegmentPoint(oracle.sdovis.edit.util.JGeometrySegmentPoint segmentPoint)Sets the line's segment point where the intersection is taking place-
Methods inherited from class oracle.spatial.network.nfe.model.spatial.interaction.IntersectionMember
getDistToInterCommonPoint, getElement, getGeometry, getId, getIntersectionLocation, getNextId, setDistToInterCommonPoint, setElement, setGeometry, setIntersectionLocation
-
-
-
-
Constructor Detail
-
LineIntersectionMember
public LineIntersectionMember(V element, JGeometry line, oracle.sdovis.edit.util.JGeometrySegmentPoint intersectionSegmentPoint)
Allocates a new line intersection member- Parameters:
element- the intersection's elementline- the element's lineintersectionSegmentPoint- the line's segment point where the intersection is taking place
-
-
Method Detail
-
isLine
public boolean isLine()
Description copied from class:IntersectionMemberTells whether the element held is a line- Specified by:
isLinein classIntersectionMember<V>- Returns:
- true if the element is a line
-
isPoint
public boolean isPoint()
Description copied from class:IntersectionMemberTells whether the element held is a point- Specified by:
isPointin classIntersectionMember<V>- Returns:
- true if the element is a point
-
getIntersectionPoint
public java.awt.geom.Point2D getIntersectionPoint()
Description copied from class:IntersectionMemberGets the spatial point where the element is intersected.- Specified by:
getIntersectionPointin classIntersectionMember<V>- Returns:
- a java point
-
getIntersectionSegmentPoint
public oracle.sdovis.edit.util.JGeometrySegmentPoint getIntersectionSegmentPoint()
Gets the line's segment point where the intersection is taking place- Returns:
- a line's segment point
-
setIntersectionSegmentPoint
public void setIntersectionSegmentPoint(oracle.sdovis.edit.util.JGeometrySegmentPoint segmentPoint)
Sets the line's segment point where the intersection is taking place- Parameters:
segmentPoint- a line's segment point
-
getIntersectionLocaction
public static IntersectionLocation getIntersectionLocaction(JGeometry line, oracle.sdovis.edit.util.JGeometrySegmentPoint segmentPoint)
Gets a line's intersection location based on the line's segment point- Parameters:
line- a line geometrysegmentPoint- the line's segment point- Returns:
- an intersection location for the line
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classIntersectionMember<V>- Throws:
java.lang.CloneNotSupportedException
-
-