java.lang.Object
com.github.weisj.jsvg.parser.AttributeNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Length
private static final Length
private final @NotNull ParsedDocument
private final @NotNull LoadHelper
private final @Nullable AttributeNode
private final @NotNull List
<@NotNull StyleSheet> private final @NotNull String
private static final Length
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeNode
(@NotNull String tagName, @NotNull Map<String, String> attributes, @Nullable AttributeNode parent, @NotNull ParsedDocument document, @NotNull List<@NotNull StyleSheet> styleSheets, @NotNull LoadHelper loadHelper) -
Method Summary
Modifier and TypeMethodDescription@NotNull AttributeNode
copy()
(package private) @NotNull ParsedDocument
document()
@Nullable ClipPath
@NotNull Color
@Nullable Color
double[]
getDoubleList
(@NotNull String key) <T> T
getElementByHref
(@NotNull Class<T> type, @NotNull Category category, @Nullable String value) <T> T
getElementByHref
(@NotNull Class<T> type, @Nullable String value) private <T> T
getElementByUrl
(@NotNull Class<T> type, @Nullable String value) <E extends Enum<E>>
E<E extends Enum<E>>
EgetEnumNullable
(@NotNull String key, @NotNull Class<E> enumType) @Nullable Filter
@NotNull FilterChannelKey
getFilterChannelKey
(@NotNull String key, @NotNull FilterChannelKey fallback) float
float[]
getFloatList
(@NotNull String key) @NotNull Length
getHorizontalReferenceLength
(@NotNull String key) @Nullable String
getHref()
int
@Nullable Length
@NotNull Length
@NotNull Length
private @Nullable Length
getLengthInternal
(@NotNull String key, @Nullable Length fallback) @NotNull Length @NotNull []
getLengthList
(@NotNull String key) @NotNull Length[]
getLengthList
(@NotNull String key, Length[] fallback) @Nullable Mask
getMask()
float
getNonNegativeFloat
(@NotNull String name, float fallback) @Nullable SVGPaint
@NotNull SVGPaint
float
getPercentage
(@NotNull String key, float fallback) @NotNull String[]
getStringList
(@NotNull String name) @NotNull String[]
getStringList
(@NotNull String name, SeparatorMode separatorMode) @Nullable String
@NotNull Length
getVerticalReferenceLength
(@NotNull String key) @Nullable ViewBox
boolean
hasAttribute
(@NotNull String name) private static boolean
@Nullable AttributeNode
parent()
@NotNull AttributeParser
parser()
private @NotNull Length
parseReferenceLength
(@NotNull String key, @NotNull String topLeft, @NotNull String bottomRight) @Nullable AffineTransform
parseTransform
(@NotNull String key) (package private) void
prepareForNodeBuilding
(@NotNull ParsedElement parsedElement) private static void
preprocessAttributes
(@NotNull Map<String, String> attributes, @NotNull Map<String, String> styleAttributes) @NotNull ResourceLoader
(package private) @NotNull List
<@NotNull StyleSheet> boolean
tagIsOneOf
(@NotNull String... tags) @NotNull String
tagName()
-
Field Details
-
TopOrLeft
-
Center
-
BottomOrRight
-
tagName
-
attributes
-
parent
-
document
-
styleSheets
-
loadHelper
-
-
Constructor Details
-
AttributeNode
public AttributeNode(@NotNull @NotNull String tagName, @NotNull @NotNull Map<String, String> attributes, @Nullable @Nullable AttributeNode parent, @NotNull @NotNull ParsedDocument document, @NotNull @NotNull List<@NotNull StyleSheet> styleSheets, @NotNull @NotNull LoadHelper loadHelper)
-
-
Method Details
-
copy
-
prepareForNodeBuilding
-
isBlank
-
preprocessAttributes
-
document
-
styleSheets
-
getElementByUrl
-
getElementByHref
-
getElementByHref
-
attributes
-
tagName
-
tagIsOneOf
-
parent
-
getValue
-
getColor
-
getColor
-
getPaint
-
getPaint
-
getLength
-
getLength
-
getLength
-
getLengthInternal
-
getHorizontalReferenceLength
-
getVerticalReferenceLength
-
parseReferenceLength
-
getPercentage
-
getLengthList
-
getLengthList
-
getFloatList
-
getDoubleList
-
getEnum
-
getEnumNullable
-
getClipPath
-
getMask
-
getFilter
-
getFilterChannelKey
@NotNull public @NotNull FilterChannelKey getFilterChannelKey(@NotNull @NotNull String key, @NotNull @NotNull FilterChannelKey fallback) -
parseTransform
-
hasAttribute
-
getStringList
-
getStringList
@NotNull public @NotNull String[] getStringList(@NotNull @NotNull String name, SeparatorMode separatorMode) -
getFloat
-
getNonNegativeFloat
-
getInt
-
getHref
-
getViewBox
-
parser
-
resourceLoader
-