Class ColorParser


  • public class ColorParser
    extends java.lang.Object
    The Class ColorParser.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.HashMap colorNameMap
      The color name map.
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorParser()
      Instantiates a new color parser.
    • Field Detail

      • colorNameMap

        private java.util.HashMap colorNameMap
        The color name map.
    • Constructor Detail

      • ColorParser

        public ColorParser()
        Instantiates a new color parser.
    • Method Detail

      • initializeColorNameMap

        private void initializeColorNameMap()
        Initialize color name map.
      • getColorNameMap

        public java.util.HashMap getColorNameMap()
        Gets the color name map.
        Returns:
        the color name map
      • parseAndAssignColors

        public StyleMapEntry parseAndAssignColors​(java.lang.String typeName,
                                                  java.lang.String featureValue,
                                                  java.lang.String labelString,
                                                  java.lang.String styleColor)
        Parses the and assign colors.
        Parameters:
        typeName - the type name
        featureValue - the feature value
        labelString - the label string
        styleColor - the style color
        Returns:
        the style map entry
      • parseChecked

        private void parseChecked​(java.util.StringTokenizer token,
                                  StyleMapEntry sme)
        Parses the checked.
        Parameters:
        token - the token
        sme - the sme
      • parseHidden

        private void parseHidden​(java.util.StringTokenizer token,
                                 StyleMapEntry sme)
        Parses the hidden.
        Parameters:
        token - the token
        sme - the sme