Class AttributeParser
java.lang.Object
com.github.weisj.jsvg.parser.impl.AttributeParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull PaintParser@NotNull AngleparseAngle(@Nullable String value, @NotNull Angle fallback) double @NotNull []parseDoubleList(@Nullable String value) @Nullable DurationparseDuration(@Nullable String value, @Nullable Duration fallback) <E extends Enum<E>>
E<E extends Enum<E>>
EfloatparseFloat(@Nullable String value, float fallback) float @NotNull []parseFloatList(@Nullable String value) int@Nullable LengthparseLength(@Nullable String value, @Nullable Length fallback, @NotNull PercentageDimension dimension) @NotNull Length @Nullable []parseLengthList(@Nullable String value, @NotNull Length @Nullable [] fallback, @NotNull PercentageDimension dimension) @Nullable LengthparseNumber(@Nullable String value, @Nullable Length fallback) @Nullable SVGPaintparsePaint(@Nullable String value, @NotNull AttributeNode attributeNode) @Nullable PercentageparsePercentage(@Nullable String value, @Nullable Percentage fallback) @Nullable PercentageparsePercentage(@Nullable String value, @Nullable Percentage fallback, float min, float max) @NotNull String @NotNull []parseStringList(@Nullable String value, SeparatorMode separatorMode) @NotNull String @Nullable []parseStringList(@Nullable String value, SeparatorMode separatorMode, @NotNull String @Nullable [] fallback) @Nullable DurationparseTimeOffsetValue(@Nullable String value, @Nullable Duration fallback) @Nullable List<@NotNull TransformPart> parseTransform(@Nullable String value) @Nullable TransformPartparseTransformPart(TransformPart.TransformType type, @NotNull String value) @Nullable String
-
Constructor Details
-
AttributeParser
-
-
Method Details
-
parseLength
@Contract("_,!null,_ -> !null") @Nullable public @Nullable Length parseLength(@Nullable @Nullable String value, @Nullable @Nullable Length fallback, @NotNull @NotNull PercentageDimension dimension) -
parseTimeOffsetValue
-
parseDuration
-
parsePercentage
@Contract("_,!null -> !null") @Nullable public @Nullable Percentage parsePercentage(@Nullable @Nullable String value, @Nullable @Nullable Percentage fallback) -
parsePercentage
@Contract("_,!null,_,_ -> !null") @Nullable public @Nullable Percentage parsePercentage(@Nullable @Nullable String value, @Nullable @Nullable Percentage fallback, float min, float max) -
parseInt
-
parseNumber
-
parseFloat
-
parseAngle
-
parseLengthList
@Contract("_,!null,_ -> !null") @NotNull public @NotNull Length @Nullable [] parseLengthList(@Nullable @Nullable String value, @NotNull @NotNull Length @Nullable [] fallback, @NotNull @NotNull PercentageDimension dimension) -
parseFloatList
-
parseDoubleList
-
parseStringList
@NotNull public @NotNull String @NotNull [] parseStringList(@Nullable @Nullable String value, SeparatorMode separatorMode) -
parseStringList
@Contract("_,_,!null -> !null") @NotNull public @NotNull String @Nullable [] parseStringList(@Nullable @Nullable String value, SeparatorMode separatorMode, @NotNull @NotNull String @Nullable [] fallback) -
parsePaint
@Nullable public @Nullable SVGPaint parsePaint(@Nullable @Nullable String value, @NotNull @NotNull AttributeNode attributeNode) -
parseEnum
-
parseEnum
-
parseUrl
-
parseTransform
@Nullable public @Nullable List<@NotNull TransformPart> parseTransform(@Nullable @Nullable String value) -
parseTransformPart
@Nullable public @Nullable TransformPart parseTransformPart(TransformPart.TransformType type, @NotNull @NotNull String value) -
paintParser
-