Package oracle.spatial.network.nfe.util
Class NFEFeatureUtils
- java.lang.Object
-
- oracle.spatial.network.nfe.util.NFEFeatureUtils
-
public class NFEFeatureUtils extends java.lang.ObjectProvides some utilities functions related to the features.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.DoubleARROW_MARKER_HEIGHTArrow marker height.static java.lang.StringARROW_MARKER_NAMEArrow marker name.static java.lang.DoubleARROW_MARKER_POSITIONArrow marker position.static java.lang.DoubleARROW_MARKER_WIDTHArrow marker width.
-
Constructor Summary
Constructors Constructor Description NFEFeatureUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JGeometrycalculateFeatureElementGeometry(NFEFeatureElement featElem, JGeometry netElemGeom)Returns the feature element geometry considering the start and end percentage.static oracle.sdovis.style.StyleMarkergetArrowStyle(NFELink nfeLink, boolean isPath, boolean isNetworkDirected)Returns the arrow marker style for the link.static oracle.sdovis.style.StyleMarkergetBiDirectionalArrow()Returns the arrow marker style for a bidirectional arrow.static intgetFeatureElementType(FeatureElement.FeatureElementType type)Returns the feature element type identifier.static intgetFeatureLayerType(FeatureLayerMetadata.FeatureLayerType featureLayerType)Returns the feature layer type identifier.static oracle.sdovis.style.StyleMarkergetSimpleArrow()Returns the arrow marker style for an unidirectional arrow.static voidsetBiDirectionalArrow(oracle.sdovis.style.StyleMarker biDirectionalArrow)Sets the arrow marker style for a bidirectional arrow.static voidsetSimpleArrow(oracle.sdovis.style.StyleMarker simpleArrow)Sets the arrow marker style for an unidirectional arrow.
-
-
-
Field Detail
-
ARROW_MARKER_NAME
public static final java.lang.String ARROW_MARKER_NAME
Arrow marker name.- See Also:
- Constant Field Values
-
ARROW_MARKER_HEIGHT
public static final java.lang.Double ARROW_MARKER_HEIGHT
Arrow marker height.
-
ARROW_MARKER_WIDTH
public static final java.lang.Double ARROW_MARKER_WIDTH
Arrow marker width.
-
ARROW_MARKER_POSITION
public static final java.lang.Double ARROW_MARKER_POSITION
Arrow marker position. (0 means at line start, 0.5 in the middle, 1 at line end)
-
-
Method Detail
-
getFeatureLayerType
public static int getFeatureLayerType(FeatureLayerMetadata.FeatureLayerType featureLayerType)
Returns the feature layer type identifier.- Parameters:
featureLayerType- feature layer type- Returns:
- feature layer type identifier
-
getFeatureElementType
public static int getFeatureElementType(FeatureElement.FeatureElementType type)
Returns the feature element type identifier.- Parameters:
type- feature element type- Returns:
- feature element type identifier
-
calculateFeatureElementGeometry
public static JGeometry calculateFeatureElementGeometry(NFEFeatureElement featElem, JGeometry netElemGeom)
Returns the feature element geometry considering the start and end percentage.- Parameters:
featElem- feature elementnetElemGeom- network element geometry- Returns:
- feature element geometry
-
getArrowStyle
public static oracle.sdovis.style.StyleMarker getArrowStyle(NFELink nfeLink, boolean isPath, boolean isNetworkDirected)
Returns the arrow marker style for the link.- Parameters:
nfeLink- linkisPath- true if the link is a path, false otherwiseisNetworkDirected- true if the network is directed, false otherwise.- Returns:
- arrow marker style
-
getSimpleArrow
public static oracle.sdovis.style.StyleMarker getSimpleArrow()
Returns the arrow marker style for an unidirectional arrow.- Returns:
- arrow marker style for an unidirectional arrow
-
setSimpleArrow
public static void setSimpleArrow(oracle.sdovis.style.StyleMarker simpleArrow)
Sets the arrow marker style for an unidirectional arrow.- Parameters:
simpleArrow- arrow marker style for an unidirectional arrow
-
getBiDirectionalArrow
public static oracle.sdovis.style.StyleMarker getBiDirectionalArrow()
Returns the arrow marker style for a bidirectional arrow.- Returns:
- arrow marker style for a bidirectional arrow
-
setBiDirectionalArrow
public static void setBiDirectionalArrow(oracle.sdovis.style.StyleMarker biDirectionalArrow)
Sets the arrow marker style for a bidirectional arrow.- Parameters:
biDirectionalArrow- arrow marker style for a bidirectional arrow
-
-