Package com.github.weisj.jsvg.renderer
Class PaintContext
- java.lang.Object
-
- com.github.weisj.jsvg.renderer.PaintContext
-
- All Implemented Interfaces:
Mutator<PaintContext>
public final class PaintContext extends java.lang.Object implements Mutator<PaintContext>
-
-
Field Summary
Fields Modifier and Type Field Description @Nullable AwtSVGPaint
color
float
fillOpacity
@Nullable SVGPaint
fillPaint
float
opacity
@Nullable PaintOrder
paintOrder
@Nullable StrokeContext
strokeContext
float
strokeOpacity
@Nullable SVGPaint
strokePaint
-
Constructor Summary
Constructors Constructor Description PaintContext(@Nullable AwtSVGPaint color, @Nullable SVGPaint fillPaint, float fillOpacity, @Nullable SVGPaint strokePaint, float strokeOpacity, float opacity, @Nullable PaintOrder paintOrder, @Nullable StrokeContext strokeContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull PaintContext
createDefault()
@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)
java.lang.String
toString()
-
-
-
Field Detail
-
color
@Nullable public final @Nullable AwtSVGPaint color
-
fillPaint
@Nullable public final @Nullable SVGPaint fillPaint
-
strokePaint
@Nullable public final @Nullable SVGPaint strokePaint
-
opacity
public final float opacity
-
fillOpacity
public final float fillOpacity
-
strokeOpacity
public final float strokeOpacity
-
paintOrder
@Nullable public final @Nullable PaintOrder paintOrder
-
strokeContext
@Nullable public final @Nullable StrokeContext strokeContext
-
-
Constructor Detail
-
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 Detail
-
createDefault
@NotNull public static @NotNull PaintContext createDefault()
-
parse
@NotNull public static @NotNull PaintContext parse(@NotNull @NotNull AttributeNode attributeNode)
-
parseColorAttribute
@Nullable private static @Nullable AwtSVGPaint parseColorAttribute(@NotNull @NotNull AttributeNode attributeNode)
-
derive
@NotNull public @NotNull PaintContext derive(@NotNull @NotNull PaintContext context)
-
mutate
@NotNull public @NotNull PaintContext mutate(@NotNull @NotNull PaintContext element)
- Specified by:
mutate
in interfaceMutator<PaintContext>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-