Class DefaultPaintParser

java.lang.Object
com.github.weisj.jsvg.attributes.paint.DefaultPaintParser
All Implemented Interfaces:
PaintParser

public final class DefaultPaintParser extends Object implements PaintParser
  • Field Details

    • LOGGER

      private static final Logger LOGGER
  • Constructor Details

    • DefaultPaintParser

      public DefaultPaintParser()
  • Method Details

    • parseColor

      @Nullable public @Nullable Color parseColor(@NotNull @NotNull String value, @NotNull @NotNull AttributeNode node)
      Specified by:
      parseColor in interface PaintParser
    • parsePaint

      @Nullable public @Nullable SVGPaint parsePaint(@Nullable @Nullable String value, @NotNull @NotNull AttributeNode node)
      Specified by:
      parsePaint in interface PaintParser
    • parseColorComponent

      private int parseColorComponent(String value, boolean percentage, @NotNull @NotNull AttributeParser parser)
    • parseHex

      private int parseHex(char[] chars)
    • charToColorInt

      private int charToColorInt(char c)