Class PaintContext
java.lang.Object
com.github.weisj.jsvg.renderer.impl.context.PaintContext
- All Implemented Interfaces:
Mutator<PaintContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable SVGPaintfinal @Nullable PercentageValuefinal @Nullable SVGPaintfinal @Nullable FillRulefinal @NotNull PercentageValuefinal @Nullable PaintOrderfinal @Nullable StrokeContextfinal @Nullable PercentageValuefinal @Nullable SVGPaint -
Constructor Summary
ConstructorsConstructorDescriptionPaintContext(@Nullable SVGPaint color, @Nullable SVGPaint fillPaint, @Nullable PercentageValue fillOpacity, @Nullable SVGPaint strokePaint, @Nullable PercentageValue strokeOpacity, @NotNull PercentageValue opacity, @Nullable PaintOrder paintOrder, @Nullable StrokeContext strokeContext, @Nullable FillRule fillRule) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PaintContext@NotNull PaintContextderive(@NotNull PaintContext context) @NotNull PaintContextmutate(@NotNull PaintContext element) static @NotNull PaintContextparse(@NotNull AttributeNode attributeNode) private static @Nullable SVGPaintparseColorAttribute(@NotNull AttributeNode attributeNode) toString()
-
Field Details
-
color
-
fillPaint
-
strokePaint
-
opacity
-
fillOpacity
-
strokeOpacity
-
paintOrder
-
strokeContext
-
fillRule
-
-
Constructor Details
-
PaintContext
public PaintContext(@Nullable @Nullable SVGPaint color, @Nullable @Nullable SVGPaint fillPaint, @Nullable @Nullable PercentageValue fillOpacity, @Nullable @Nullable SVGPaint strokePaint, @Nullable @Nullable PercentageValue strokeOpacity, @NotNull @NotNull PercentageValue opacity, @Nullable @Nullable PaintOrder paintOrder, @Nullable @Nullable StrokeContext strokeContext, @Nullable @Nullable FillRule fillRule)
-
-
Method Details
-
createDefault
-
parse
-
parseColorAttribute
@Nullable private static @Nullable SVGPaint parseColorAttribute(@NotNull @NotNull AttributeNode attributeNode) -
derive
-
mutate
- Specified by:
mutatein interfaceMutator<PaintContext>
-
toString
-