Class RenderContext


  • public final class RenderContext
    extends java.lang.Object
    • Field Detail

      • targetComponent

        @Nullable
        private final @Nullable javax.swing.JComponent targetComponent
      • measureContext

        @NotNull
        private final @NotNull MeasureContext measureContext
      • paintContext

        @NotNull
        private final @NotNull PaintContext paintContext
      • fontRenderContext

        @NotNull
        private final @NotNull FontRenderContext fontRenderContext
      • fillRule

        @NotNull
        private final @NotNull FillRule fillRule
      • rootTransform

        @NotNull
        private final @NotNull java.awt.geom.AffineTransform rootTransform
      • userSpaceTransform

        @NotNull
        private final @NotNull java.awt.geom.AffineTransform userSpaceTransform
    • Constructor Detail

      • RenderContext

        RenderContext​(@Nullable
                      @Nullable javax.swing.JComponent targetComponent,
                      @NotNull
                      @NotNull java.awt.geom.AffineTransform rootTransform,
                      @NotNull
                      @NotNull java.awt.geom.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 Detail

      • createInitial

        @NotNull
        public static @NotNull RenderContext createInitial​(@Nullable
                                                           @Nullable javax.swing.JComponent targetComponent,
                                                           @NotNull
                                                           @NotNull MeasureContext measureContext)
      • deriveForChildGraphics

        @NotNull
        public @NotNull RenderContext deriveForChildGraphics()
      • strokeContext

        @NotNull
        public @NotNull StrokeContext strokeContext()
      • rootTransform

        @NotNull
        public @NotNull java.awt.geom.AffineTransform rootTransform()
      • userSpaceTransform

        @NotNull
        public @NotNull java.awt.geom.AffineTransform userSpaceTransform()
      • setRootTransform

        public void setRootTransform​(@NotNull
                                     @NotNull java.awt.geom.AffineTransform rootTransform)
      • setRootTransform

        public void setRootTransform​(@NotNull
                                     @NotNull java.awt.geom.AffineTransform rootTransform,
                                     @NotNull
                                     @NotNull java.awt.geom.AffineTransform userSpaceTransform)
      • translate

        public void translate​(@NotNull
                              @NotNull java.awt.Graphics2D g,
                              @NotNull
                              @NotNull java.awt.geom.Point2D dp)
      • translate

        public void translate​(@NotNull
                              @NotNull java.awt.Graphics2D g,
                              double dx,
                              double dy)
      • scale

        public void scale​(@NotNull
                          @NotNull java.awt.Graphics2D g,
                          double sx,
                          double sy)
      • rotate

        public void rotate​(@NotNull
                           @NotNull java.awt.Graphics2D g,
                           double angle)
      • transform

        public void transform​(@NotNull
                              @NotNull java.awt.Graphics2D g,
                              @NotNull
                              @NotNull java.awt.geom.AffineTransform at)
      • targetComponent

        @Nullable
        public @Nullable javax.swing.JComponent targetComponent()
      • measureContext

        @NotNull
        public @NotNull MeasureContext measureContext()
      • fillRule

        @NotNull
        public @NotNull FillRule fillRule()
      • strokePaint

        @NotNull
        public @NotNull SVGPaint strokePaint()
      • fillPaint

        @NotNull
        public @NotNull SVGPaint fillPaint()
      • resolvePaint

        @NotNull
        private @NotNull SVGPaint resolvePaint​(@Nullable
                                               @Nullable SVGPaint p)
      • coerceNonNull

        @NotNull
        private @NotNull SVGPaint coerceNonNull​(@Nullable
                                                @Nullable SVGPaint p)
      • rawOpacity

        public float rawOpacity()
      • fillOpacity

        public float fillOpacity()
      • strokeOpacity

        public float strokeOpacity()
      • stroke

        @NotNull
        public @NotNull java.awt.Stroke stroke​(float pathLengthFactor)
      • font

        @NotNull
        public @NotNull SVGFont font()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • createImage

        @NotNull
        public @NotNull java.awt.Image createImage​(@NotNull
                                                   @NotNull java.awt.image.ImageProducer imageProducer)