Class AttributeNode

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

public final class AttributeNode extends Object
  • Field Details

    • TopOrLeft

      private static final Length TopOrLeft
    • Center

      private static final Length Center
    • BottomOrRight

      private static final Length BottomOrRight
    • tagName

      @NotNull private final @NotNull String tagName
    • attributes

      @NotNull private final @NotNull Map<String,String> attributes
    • parent

      @Nullable private final @Nullable AttributeNode parent
    • document

      @NotNull private final @NotNull ParsedDocument document
    • styleSheets

      @NotNull private final @NotNull List<@NotNull StyleSheet> styleSheets
    • loadHelper

      @NotNull private final @NotNull LoadHelper loadHelper
  • Constructor Details

  • Method Details

    • copy

      @NotNull public @NotNull AttributeNode copy()
    • prepareForNodeBuilding

      void prepareForNodeBuilding(@NotNull @NotNull ParsedElement parsedElement)
    • isBlank

      private static boolean isBlank(@NotNull @NotNull String s)
    • preprocessAttributes

      private static void preprocessAttributes(@NotNull @NotNull Map<String,String> attributes, @NotNull @NotNull Map<String,String> styleAttributes)
    • document

      @NotNull @NotNull ParsedDocument document()
    • styleSheets

      @NotNull @NotNull List<@NotNull StyleSheet> styleSheets()
    • getElementByUrl

      @Nullable private <T> T getElementByUrl(@NotNull @NotNull Class<T> type, @Nullable @Nullable String value)
    • 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)
    • getLengthInternal

      @Contract("_,!null -> !null") @Nullable private @Nullable Length getLengthInternal(@NotNull @NotNull String key, @Nullable @Nullable Length fallback)
    • getHorizontalReferenceLength

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

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

      @NotNull private @NotNull Length parseReferenceLength(@NotNull @NotNull String key, @NotNull @NotNull String topLeft, @NotNull @NotNull String bottomRight)
    • 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 FilterChannelKey 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()