Class AttributeNode
java.lang.Object
com.github.weisj.jsvg.parser.impl.AttributeNode
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAttributeNode(@NotNull String tagName, @NotNull Map<String, String> attributes, @NotNull List<@NotNull StyleSheet> styleSheets) -
Method Summary
Modifier and TypeMethodDescription@NotNull AttributeNodecopy()@NotNull ParsedDocumentdocument()@NotNull ParsedElementelement()@Nullable AnimatedColorgetAnimatedColor(@NotNull String property, @NotNull ColorValue initial) @Nullable AnimatedLengthgetAnimatedLength(@NotNull String property, @NotNull LengthValue initial, @NotNull PercentageDimension dimension) @Nullable AnimatedTransformgetAnimatedTransform(@NotNull String property, @NotNull TransformValue initial) @Nullable ClipPath@NotNull Color@Nullable Colordouble @NotNull []getDoubleList(@NotNull String key) @NotNull DurationgetDuration(@NotNull String key, @NotNull Duration fallback) <T> TgetElementByHref(@NotNull Class<T> type, @NotNull Category category, @Nullable String value, AttributeNode.ElementRelation relation) <T> TgetElementByHref(@NotNull Class<T> type, @Nullable String value, AttributeNode.ElementRelation relation) <E extends Enum<E>>
E<E extends Enum<E>>
EgetEnumNullable(@NotNull String key, @NotNull Class<E> enumType) @Nullable Filter@NotNull FilterChannelKeygetFilterChannelKey(@NotNull String key, @NotNull FilterChannelKey fallback) floatfloat @NotNull []getFloatList(@NotNull String key) @NotNull FloatListValuegetFloatList(@NotNull String key, Inherited inherited, Animatable animatable) @NotNull LengthgetHorizontalReferenceLength(@NotNull String key) @Nullable StringgetHref()int@Nullable LengthgetLength(@NotNull String key, @NotNull PercentageDimension dimension) @NotNull LengthgetLength(@NotNull String key, @NotNull PercentageDimension dimension, float fallback) @Nullable LengthValuegetLength(@NotNull String key, @NotNull PercentageDimension dimension, Inherited inherited, Animatable animatable) @Nullable LengthValuegetLength(@NotNull String key, @NotNull PercentageDimension dimension, @Nullable LengthValue fallback, Inherited inherited, Animatable animatable) @Nullable LengthgetLength(@NotNull String key, @NotNull PercentageDimension dimension, @Nullable Length fallback) @NotNull Length @NotNull []getLengthList(@NotNull String key, @NotNull PercentageDimension dimension) @NotNull Length @Nullable []getLengthList(@NotNull String key, @NotNull Length @Nullable [] fallback, @NotNull PercentageDimension dimension) @Nullable MaskgetMask()floatgetNonNegativeFloat(@NotNull String name, float fallback) @Nullable SVGPaintgetPaint(@NotNull String key, Inherited inherited, Animatable animatable) @Nullable SVGPaintgetPaint(@NotNull String key, @Nullable SVGPaint fallback, Inherited inherited, Animatable animatable) @Nullable PercentageValuegetPercentage(@NotNull String key, Inherited inherited, Animatable animatable) @Nullable PercentageValuegetPercentage(@NotNull String key, @Nullable PercentageValue fallback, Inherited inherited, Animatable animatable) @Nullable PercentagegetPercentage(@NotNull String key, @Nullable Percentage fallback) @NotNull String @NotNull []getStringList(@NotNull String name) @NotNull String @NotNull []getStringList(@NotNull String name, SeparatorMode separatorMode) @Nullable String@NotNull LengthgetVerticalReferenceLength(@NotNull String key) @Nullable ViewBoxbooleanhasAttribute(@NotNull String name) @Nullable SVGPaintparsePaint(@Nullable String value) @NotNull AttributeParserparser()@Nullable TransformValueparseTransform(@NotNull String key) @Nullable TransformValueparseTransform(@NotNull String key, Inherited inherited, Animatable animatable) @Nullable URIresolveResourceURI(@NotNull String url) @NotNull ResourceLoaderbooleantagIsOneOf(@NotNull String... tags) @NotNull StringtagName()
-
Constructor Details
-
AttributeNode
-
-
Method Details
-
copy
-
document
-
element
-
getElementByHref
@Nullable public <T> T getElementByHref(@NotNull @NotNull Class<T> type, @Nullable @Nullable String value, AttributeNode.ElementRelation relation) -
getElementByHref
@Nullable public <T> T getElementByHref(@NotNull @NotNull Class<T> type, @NotNull @NotNull Category category, @Nullable @Nullable String value, AttributeNode.ElementRelation relation) -
attributes
-
tagName
-
tagIsOneOf
-
classNames
-
getValue
-
getColor
-
getColor
-
getPaint
@Nullable public @Nullable SVGPaint getPaint(@NotNull @NotNull String key, Inherited inherited, Animatable animatable) -
getPaint
@Contract("_,!null,_,_ -> !null") @Nullable public @Nullable SVGPaint getPaint(@NotNull @NotNull String key, @Nullable @Nullable SVGPaint fallback, Inherited inherited, Animatable animatable) -
parsePaint
-
getLength
@Nullable public @Nullable Length getLength(@NotNull @NotNull String key, @NotNull @NotNull PercentageDimension dimension) -
getLength
@NotNull public @NotNull Length getLength(@NotNull @NotNull String key, @NotNull @NotNull PercentageDimension dimension, float fallback) -
getLength
@Contract("_,_,!null -> !null") @Nullable public @Nullable Length getLength(@NotNull @NotNull String key, @NotNull @NotNull PercentageDimension dimension, @Nullable @Nullable Length fallback) -
getLength
@Nullable public @Nullable LengthValue getLength(@NotNull @NotNull String key, @NotNull @NotNull PercentageDimension dimension, Inherited inherited, Animatable animatable) -
getLength
@Contract("_,_,!null,_,_ -> !null") @Nullable public @Nullable LengthValue getLength(@NotNull @NotNull String key, @NotNull @NotNull PercentageDimension dimension, @Nullable @Nullable LengthValue fallback, Inherited inherited, Animatable animatable) -
getDuration
-
getHorizontalReferenceLength
-
getVerticalReferenceLength
-
getPercentage
@Contract("_,!null -> !null") @Nullable public @Nullable Percentage getPercentage(@NotNull @NotNull String key, @Nullable @Nullable Percentage fallback) -
getPercentage
@Nullable public @Nullable PercentageValue getPercentage(@NotNull @NotNull String key, Inherited inherited, Animatable animatable) -
getPercentage
@Contract("_,!null,_,_ -> !null") @Nullable public @Nullable PercentageValue getPercentage(@NotNull @NotNull String key, @Nullable @Nullable PercentageValue fallback, Inherited inherited, Animatable animatable) -
getLengthList
@NotNull public @NotNull Length @NotNull [] getLengthList(@NotNull @NotNull String key, @NotNull @NotNull PercentageDimension dimension) -
getLengthList
@Contract("_,!null,_ -> !null") @NotNull public @NotNull Length @Nullable [] getLengthList(@NotNull @NotNull String key, @NotNull @NotNull Length @Nullable [] fallback, @NotNull @NotNull PercentageDimension dimension) -
getFloatList
-
getFloatList
@NotNull public @NotNull FloatListValue getFloatList(@NotNull @NotNull String key, Inherited inherited, Animatable animatable) -
getDoubleList
-
getEnum
-
getEnumNullable
-
getClipPath
-
getMask
-
getFilter
-
getFilterChannelKey
@NotNull public @NotNull FilterChannelKey getFilterChannelKey(@NotNull @NotNull String key, @NotNull @NotNull FilterChannelKey fallback) -
parseTransform
-
parseTransform
@Nullable public @Nullable TransformValue parseTransform(@NotNull @NotNull String key, Inherited inherited, Animatable animatable) -
hasAttribute
-
getStringList
-
getStringList
@NotNull public @NotNull String @NotNull [] getStringList(@NotNull @NotNull String name, SeparatorMode separatorMode) -
getFloat
-
getNonNegativeFloat
-
getInt
-
getHref
-
getViewBox
-
parser
-
resourceLoader
-
resolveResourceURI
-
getAnimatedLength
@Nullable public @Nullable AnimatedLength getAnimatedLength(@NotNull @NotNull String property, @NotNull @NotNull LengthValue initial, @NotNull @NotNull PercentageDimension dimension) -
getAnimatedColor
@Nullable public @Nullable AnimatedColor getAnimatedColor(@NotNull @NotNull String property, @NotNull @NotNull ColorValue initial) -
getAnimatedTransform
@Nullable public @Nullable AnimatedTransform getAnimatedTransform(@NotNull @NotNull String property, @NotNull @NotNull TransformValue initial)
-