Class NFEFeatureUtils


  • public class NFEFeatureUtils
    extends java.lang.Object
    Provides some utilities functions related to the features.
    • 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)
    • Constructor Detail

      • NFEFeatureUtils

        public NFEFeatureUtils()
    • 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 element
        netElemGeom - 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 - link
        isPath - true if the link is a path, false otherwise
        isNetworkDirected - 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