Class Main.ColorOptionHandler

  • All Implemented Interfaces:
    Main.OptionHandler
    Enclosing class:
    Main

    public abstract static class Main.ColorOptionHandler
    extends Main.SingleValueOptionHandler
    Base class for options which expect a Color optionValue. Subclasses should implement the handleOption method which takes a Color and an SVGConverter as parameters.
    • Constructor Detail

      • ColorOptionHandler

        public ColorOptionHandler()
    • Method Detail

      • handleOption

        public abstract void handleOption​(java.awt.Color color,
                                          SVGConverter c)
      • parseARGB

        public java.awt.Color parseARGB​(java.lang.String argbVal)
        Parse the input value, which should be in the following format: a.r.g.b where a, r, g and b are integer values, in decimal notation, between 0 and 255.
        Returns:
        the parsed color if successful. null otherwise.