java.lang.Object
com.github.weisj.jsvg.renderer.RenderContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull PlatformSupport
private final @Nullable ContextElementAttributes
private final @NotNull FillRule
private final @NotNull FontRenderContext
private final @NotNull MeasurableFontSpec
private final @NotNull MeasureContext
private final @NotNull PaintContext
private final @NotNull AffineTransform
private final @NotNull AffineTransform
-
Constructor Summary
ConstructorsConstructorDescriptionRenderContext
(@NotNull PlatformSupport platformSupport, @NotNull AffineTransform rootTransform, @NotNull AffineTransform userSpaceTransform, @NotNull PaintContext paintContext, @NotNull MeasureContext measureContext, @NotNull FontRenderContext fontRenderContext, @NotNull MeasurableFontSpec fontSpec, @NotNull FillRule fillRule, @Nullable ContextElementAttributes contextElementAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprivate @NotNull SVGPaint
coerceNonNull
(@Nullable SVGPaint p) (package private) @Nullable ContextElementAttributes
static @NotNull RenderContext
createInitial
(@NotNull PlatformSupport awtSupport, @NotNull MeasureContext measureContext) (package private) @NotNull RenderContext
derive
(@Nullable Mutator<PaintContext> context, @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable ViewBox viewBox, @Nullable FontRenderContext frc, @Nullable FillRule fillRule, @Nullable ContextElementAttributes contextAttributes) (package private) @NotNull RenderContext
derive
(@Nullable Mutator<PaintContext> context, @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable ViewBox viewBox, @Nullable FontRenderContext frc, @Nullable FillRule fillRule, @Nullable ContextElementAttributes contextAttributes, @Nullable AffineTransform rootTransform) @NotNull RenderContext
@NotNull RenderContext
float
@NotNull SVGPaint
@NotNull FillRule
fillRule()
@NotNull SVGFont
font()
@NotNull FontRenderContext
@NotNull MeasureContext
@NotNull PaintOrder
@NotNull PlatformSupport
float
private @NotNull SVGPaint
resolvePaint
(@Nullable SVGPaint p) @NotNull AffineTransform
void
void
void
setRootTransform
(@NotNull AffineTransform rootTransform) void
setRootTransform
(@NotNull AffineTransform rootTransform, @NotNull AffineTransform userSpaceTransform) @NotNull Stroke
stroke
(float pathLengthFactor) @NotNull StrokeContext
float
@NotNull SVGPaint
toString()
void
transform
(@NotNull Output output, @NotNull AffineTransform at) void
void
@NotNull AffineTransform
-
Field Details
-
awtSupport
-
measureContext
-
paintContext
-
fontRenderContext
-
fontSpec
-
fillRule
-
contextElementAttributes
-
rootTransform
-
userSpaceTransform
-
-
Constructor Details
-
RenderContext
RenderContext(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull AffineTransform rootTransform, @NotNull @NotNull AffineTransform userSpaceTransform, @NotNull @NotNull PaintContext paintContext, @NotNull @NotNull MeasureContext measureContext, @NotNull @NotNull FontRenderContext fontRenderContext, @NotNull @NotNull MeasurableFontSpec fontSpec, @NotNull @NotNull FillRule fillRule, @Nullable @Nullable ContextElementAttributes contextElementAttributes)
-
-
Method Details
-
createInitial
@NotNull public static @NotNull RenderContext createInitial(@NotNull @NotNull PlatformSupport awtSupport, @NotNull @NotNull MeasureContext measureContext) -
derive
@NotNull @NotNull RenderContext derive(@Nullable @Nullable Mutator<PaintContext> context, @Nullable @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable @Nullable ViewBox viewBox, @Nullable @Nullable FontRenderContext frc, @Nullable @Nullable FillRule fillRule, @Nullable @Nullable ContextElementAttributes contextAttributes) -
derive
@NotNull @NotNull RenderContext derive(@Nullable @Nullable Mutator<PaintContext> context, @Nullable @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable @Nullable ViewBox viewBox, @Nullable @Nullable FontRenderContext frc, @Nullable @Nullable FillRule fillRule, @Nullable @Nullable ContextElementAttributes contextAttributes, @Nullable @Nullable AffineTransform rootTransform) -
deriveForChildGraphics
-
deriveForSurface
-
strokeContext
-
contextElementAttributes
-
rootTransform
-
userSpaceTransform
-
setRootTransform
-
setRootTransform
public void setRootTransform(@NotNull @NotNull AffineTransform rootTransform, @NotNull @NotNull AffineTransform userSpaceTransform) -
translate
-
translate
-
scale
-
rotate
-
transform
-
platformSupport
-
measureContext
-
fontRenderContext
-
fillRule
-
strokePaint
-
fillPaint
-
paintOrder
-
resolvePaint
-
coerceNonNull
-
rawOpacity
public float rawOpacity() -
fillOpacity
public float fillOpacity() -
strokeOpacity
public float strokeOpacity() -
stroke
-
font
-
toString
-