Class AttributeNode

java.lang.Object
com.github.weisj.jsvg.parser.AttributeNode

public final class AttributeNode extends Object
  • Constructor Details

  • Method Details

    • getElementByHref

      @Nullable public <T> T getElementByHref(@NotNull @NotNull Class<T> type, @Nullable @Nullable String value)
    • getElementByHref

      @Nullable public <T> T getElementByHref(@NotNull @NotNull Class<T> type, @NotNull @NotNull Category category, @Nullable @Nullable String value)
    • attributes

      @NotNull public @NotNull Map<String,String> attributes()
    • tagName

      @NotNull public @NotNull String tagName()
    • tagIsOneOf

      public boolean tagIsOneOf(@NotNull @NotNull String... tags)
    • parent

      @Nullable public @Nullable AttributeNode parent()
    • getValue

      @Nullable public @Nullable String getValue(@NotNull @NotNull String key)
    • getColor

      @NotNull public @NotNull Color getColor(@NotNull @NotNull String key)
    • getColor

      @Contract("_,!null -> !null") @Nullable public @Nullable Color getColor(@NotNull @NotNull String key, @Nullable @Nullable Color fallback)
    • getPaint

      @NotNull public @NotNull SVGPaint getPaint(@NotNull @NotNull String key, @NotNull @NotNull SVGPaint fallback)
    • getPaint

      @Nullable public @Nullable SVGPaint getPaint(@NotNull @NotNull String key)
    • getLength

      @Nullable public @Nullable Length getLength(@NotNull @NotNull String key)
    • getLength

      @NotNull public @NotNull Length getLength(@NotNull @NotNull String key, float fallback)
    • getLength

      @NotNull public @NotNull Length getLength(@NotNull @NotNull String key, @NotNull @NotNull Length fallback)
    • getHorizontalReferenceLength

      @NotNull public @NotNull Length getHorizontalReferenceLength(@NotNull @NotNull String key)
    • getVerticalReferenceLength

      @NotNull public @NotNull Length getVerticalReferenceLength(@NotNull @NotNull String key)
    • getPercentage

      public float getPercentage(@NotNull @NotNull String key, float fallback)
    • getLengthList

      @NotNull public @NotNull Length @NotNull [] getLengthList(@NotNull @NotNull String key)
    • getLengthList

      @Contract("_,!null -> !null") @NotNull public @NotNull Length[] getLengthList(@NotNull @NotNull String key, Length[] fallback)
    • getFloatList

      public float[] getFloatList(@NotNull @NotNull String key)
    • getDoubleList

      public double[] getDoubleList(@NotNull @NotNull String key)
    • getEnum

      @NotNull public <E extends Enum<E>> E getEnum(@NotNull @NotNull String key, @NotNull E fallback)
    • getEnumNullable

      @Nullable public <E extends Enum<E>> E getEnumNullable(@NotNull @NotNull String key, @NotNull @NotNull Class<E> enumType)
    • getClipPath

      @Nullable public @Nullable ClipPath getClipPath()
    • getMask

      @Nullable public @Nullable Mask getMask()
    • getFilter

      @Nullable public @Nullable Filter getFilter()
    • getFilterChannelKey

      @NotNull public @NotNull FilterChannelKey getFilterChannelKey(@NotNull @NotNull String key, @NotNull @NotNull DefaultFilterChannel fallback)
    • parseTransform

      @Nullable public @Nullable AffineTransform parseTransform(@NotNull @NotNull String key)
    • hasAttribute

      public boolean hasAttribute(@NotNull @NotNull String name)
    • getStringList

      @NotNull public @NotNull String[] getStringList(@NotNull @NotNull String name)
    • getStringList

      @NotNull public @NotNull String[] getStringList(@NotNull @NotNull String name, SeparatorMode separatorMode)
    • getFloat

      public float getFloat(@NotNull @NotNull String name, float fallback)
    • getNonNegativeFloat

      public float getNonNegativeFloat(@NotNull @NotNull String name, float fallback)
    • getInt

      public int getInt(@NotNull @NotNull String key, int fallback)
    • getHref

      @Nullable public @Nullable String getHref()
    • getViewBox

      @Nullable public @Nullable ViewBox getViewBox()
    • parser

      @NotNull public @NotNull AttributeParser parser()
    • resourceLoader

      @NotNull public @NotNull ResourceLoader resourceLoader()