Class DefaultPaintParser

  • All Implemented Interfaces:
    PaintParser

    public final class DefaultPaintParser
    extends java.lang.Object
    implements PaintParser
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger LOGGER  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private int charToColorInt​(char c)  
      @Nullable java.awt.Color parseColor​(@NotNull java.lang.String value)  
      private int parseColorComponent​(java.lang.String value, boolean percentage)  
      private int parseHex​(char[] chars)  
      @Nullable SVGPaint parsePaint​(@Nullable java.lang.String value)  
      • Methods inherited from class java.lang.Object

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

      • LOGGER

        private static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • DefaultPaintParser

        public DefaultPaintParser()
    • Method Detail

      • parseColor

        @Nullable
        public @Nullable java.awt.Color parseColor​(@NotNull
                                                   @NotNull java.lang.String value)
        Specified by:
        parseColor in interface PaintParser
      • parsePaint

        @Nullable
        public @Nullable SVGPaint parsePaint​(@Nullable
                                             @Nullable java.lang.String value)
        Specified by:
        parsePaint in interface PaintParser
      • parseColorComponent

        private int parseColorComponent​(java.lang.String value,
                                        boolean percentage)
      • parseHex

        private int parseHex​(char[] chars)
      • charToColorInt

        private int charToColorInt​(char c)