Class PathUtil


  • public class PathUtil
    extends java.lang.Object
    Provides static methods related to the NFE paths.
    • Constructor Summary

      Constructors 
      Constructor Description
      PathUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.String> getPathColors()
      Returns the possible path colors and the XML style representation.
      static boolean isFeaturePath​(NFEFeature nfeFeature)
      Returns true if the feature is a path, false otherwise.
      static void setPathColors​(java.util.Map<java.lang.String,​java.lang.String> pathColors)
      Sets the possible path colors and the XML style representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathUtil

        public PathUtil()
    • Method Detail

      • getPathColors

        public static java.util.Map<java.lang.String,​java.lang.String> getPathColors()
        Returns the possible path colors and the XML style representation. By default: PATH_COLOR_BLUE, PATH_COLOR_RED, PATH_COLOR_GREEN and PATH_COLOR_ORANGE.
        Returns:
        path colors
      • setPathColors

        public static void setPathColors​(java.util.Map<java.lang.String,​java.lang.String> pathColors)
        Sets the possible path colors and the XML style representation. By default: PATH_COLOR_BLUE, PATH_COLOR_RED, PATH_COLOR_GREEN and PATH_COLOR_ORANGE.
        Parameters:
        pathColors - path colors
      • isFeaturePath

        public static boolean isFeaturePath​(NFEFeature nfeFeature)
        Returns true if the feature is a path, false otherwise.
        Parameters:
        nfeFeature - feature
        Returns:
        true if the feature is a path, false otherwise