Class RenderContext
java.lang.Object
com.github.weisj.jsvg.renderer.RenderContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable ContextElementAttributesprivate final @NotNull FontRenderContextprivate final @NotNull MeasurableFontSpecprivate final @NotNull MeasureContextprivate final @NotNull PaintContextprivate final @NotNull PlatformSupportprivate final @NotNull AffineTransformprivate final @NotNull AffineTransform -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRenderContext(@NotNull PlatformSupport platformSupport, @NotNull AffineTransform rootTransform, @NotNull AffineTransform userSpaceTransform, PaintContext paintContext, @NotNull MeasureContext measureContext, @NotNull FontRenderContext fontRenderContext, @NotNull MeasurableFontSpec fontSpec, @Nullable ContextElementAttributes contextElementAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprivate @Nullable ContextElementAttributesprivate static @NotNull RenderContextcreateInitial(@NotNull PlatformSupport awtSupport, @NotNull MeasureContext measureContext) private @NotNull RenderContextderive(@Nullable Mutator<PaintContext> context, @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable ViewBox viewBox, @Nullable FontRenderContext frc, @Nullable ContextElementAttributes contextAttributes, RenderContext.EstablishRootMeasure establishRootMeasure) private @NotNull RenderContextprivate @NotNull RenderContextderiveForNode(@Nullable Mutator<PaintContext> context, @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable FontRenderContext frc, @Nullable ContextElementAttributes contextAttributes, @NotNull Object node) private @NotNull RenderContextprivate @NotNull RenderContextderiveImpl(@Nullable Mutator<PaintContext> context, @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable ViewBox viewBox, @Nullable FontRenderContext frc, @Nullable ContextElementAttributes contextAttributes, @Nullable AffineTransform rootTransform, RenderContext.EstablishRootMeasure establishRootMeasure) float@NotNull SVGPaintprivate @NotNull FillRulefillRule()private @NotNull SVGFontfont()private @NotNull FontRenderContext@NotNull MeasureContextprivate @NotNull PaintOrder@NotNull PlatformSupportfloat@NotNull AffineTransformvoidvoidprivate voidsetRootTransform(@NotNull AffineTransform rootTransform) private voidsetRootTransform(@NotNull AffineTransform rootTransform, @NotNull AffineTransform userSpaceTransform) @NotNull Strokestroke(float pathLengthFactor) private @NotNull StrokeContextfloat@NotNull SVGPainttoString()voidtransform(@NotNull Output output, @NotNull AffineTransform at) voidvoid@NotNull AffineTransform
-
Field Details
-
platformSupport
-
measureContext
-
paintContext
-
fontRenderContext
-
fontSpec
-
contextElementAttributes
-
rootTransform
-
userSpaceTransform
-
-
Constructor Details
-
RenderContext
private RenderContext(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull AffineTransform rootTransform, @NotNull @NotNull AffineTransform userSpaceTransform, @NotNull PaintContext paintContext, @NotNull @NotNull MeasureContext measureContext, @NotNull @NotNull FontRenderContext fontRenderContext, @NotNull @NotNull MeasurableFontSpec fontSpec, @Nullable @Nullable ContextElementAttributes contextElementAttributes)
-
-
Method Details
-
createInitial
@NotNull private static @NotNull RenderContext createInitial(@NotNull @NotNull PlatformSupport awtSupport, @NotNull @NotNull MeasureContext measureContext) -
derive
@NotNull private @NotNull RenderContext derive(@Nullable @Nullable Mutator<PaintContext> context, @Nullable @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable @Nullable ViewBox viewBox, @Nullable @Nullable FontRenderContext frc, @Nullable @Nullable ContextElementAttributes contextAttributes, RenderContext.EstablishRootMeasure establishRootMeasure) -
deriveImpl
@NotNull private @NotNull RenderContext deriveImpl(@Nullable @Nullable Mutator<PaintContext> context, @Nullable @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable @Nullable ViewBox viewBox, @Nullable @Nullable FontRenderContext frc, @Nullable @Nullable ContextElementAttributes contextAttributes, @Nullable @Nullable AffineTransform rootTransform, RenderContext.EstablishRootMeasure establishRootMeasure) -
deriveForChildGraphics
-
deriveForSurface
-
deriveForNode
@NotNull private @NotNull RenderContext deriveForNode(@Nullable @Nullable Mutator<PaintContext> context, @Nullable @Nullable Mutator<MeasurableFontSpec> attributeFontSpec, @Nullable @Nullable FontRenderContext frc, @Nullable @Nullable ContextElementAttributes contextAttributes, @NotNull @NotNull Object node) -
rootTransform
-
userSpaceTransform
-
translate
-
translate
-
scale
-
rotate
-
transform
-
platformSupport
-
measureContext
-
strokePaint
-
fillPaint
-
rawOpacity
public float rawOpacity() -
fillOpacity
public float fillOpacity() -
strokeOpacity
public float strokeOpacity() -
stroke
-
strokeContext
-
fontRenderContext
-
contextElementAttributes
-
fillRule
-
paintOrder
-
font
-
setRootTransform
-
setRootTransform
private void setRootTransform(@NotNull @NotNull AffineTransform rootTransform, @NotNull @NotNull AffineTransform userSpaceTransform) -
toString
-