Class BaseColorParsing


  • public class BaseColorParsing
    extends AbstractParsing
    For parsing BaseColor options.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • BaseColorParsing

        public BaseColorParsing()
    • Method Detail

      • toString

        public static String toString​(AbstractOption option,
                                      Object object)
        Returns the color as string.
        Parameters:
        option - the current option
        object - the color object to convert
        Returns:
        the generated string
      • valueOf

        public static Object valueOf​(AbstractOption option,
                                     String str)
        Returns a color generated from the string.
        Parameters:
        option - the current option
        str - the string to convert to a color
        Returns:
        the generated color