java.lang.Object
com.github.weisj.jsvg.renderer.PaintContext
- All Implemented Interfaces:
Mutator<PaintContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable AwtSVGPaint
final float
final @Nullable SVGPaint
final float
final @Nullable PaintOrder
final @Nullable StrokeContext
final float
final @Nullable SVGPaint
-
Constructor Summary
ConstructorsConstructorDescriptionPaintContext
(@Nullable AwtSVGPaint color, @Nullable SVGPaint fillPaint, float fillOpacity, @Nullable SVGPaint strokePaint, float strokeOpacity, float opacity, @Nullable PaintOrder paintOrder, @Nullable StrokeContext strokeContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PaintContext
@NotNull PaintContext
derive
(@NotNull PaintContext context) @NotNull PaintContext
mutate
(@NotNull PaintContext element) static @NotNull PaintContext
parse
(@NotNull AttributeNode attributeNode) private static @Nullable AwtSVGPaint
parseColorAttribute
(@NotNull AttributeNode attributeNode) toString()
-
Field Details
-
color
-
fillPaint
-
strokePaint
-
opacity
public final float opacity -
fillOpacity
public final float fillOpacity -
strokeOpacity
public final float strokeOpacity -
paintOrder
-
strokeContext
-
-
Constructor Details
-
PaintContext
public PaintContext(@Nullable @Nullable AwtSVGPaint color, @Nullable @Nullable SVGPaint fillPaint, float fillOpacity, @Nullable @Nullable SVGPaint strokePaint, float strokeOpacity, float opacity, @Nullable @Nullable PaintOrder paintOrder, @Nullable @Nullable StrokeContext strokeContext)
-
-
Method Details
-
createDefault
-
parse
-
parseColorAttribute
@Nullable private static @Nullable AwtSVGPaint parseColorAttribute(@NotNull @NotNull AttributeNode attributeNode) -
derive
-
mutate
- Specified by:
mutate
in interfaceMutator<PaintContext>
-
toString
-