Class NodeRenderer


  • public final class NodeRenderer
    extends java.lang.Object
    • Constructor Detail

      • NodeRenderer

        private NodeRenderer()
    • Method Detail

      • renderNode

        public static void renderNode​(@NotNull
                                      @NotNull SVGNode node,
                                      @NotNull
                                      @NotNull RenderContext context,
                                      @NotNull
                                      @NotNull java.awt.Graphics2D g)
      • createRenderInfo

        @Nullable
        public static @Nullable NodeRenderer.Info createRenderInfo​(@NotNull
                                                                   @NotNull SVGNode node,
                                                                   @NotNull
                                                                   @NotNull RenderContext context,
                                                                   @NotNull
                                                                   @NotNull java.awt.Graphics2D g,
                                                                   @Nullable
                                                                   @Nullable Instantiator instantiator)
      • elementBounds

        @NotNull
        private static @NotNull java.awt.geom.Rectangle2D elementBounds​(@NotNull
                                                                        @NotNull java.lang.Object node,
                                                                        @NotNull
                                                                        @NotNull RenderContext childContext)
      • setupRenderContext

        @NotNull
        public static @NotNull RenderContext setupRenderContext​(@NotNull
                                                                @NotNull java.lang.Object node,
                                                                @NotNull
                                                                @NotNull RenderContext context)
      • setupRenderContext

        @NotNull
        private static @NotNull RenderContext setupRenderContext​(@Nullable
                                                                 @Nullable Instantiator instantiator,
                                                                 @NotNull
                                                                 @NotNull java.lang.Object node,
                                                                 @NotNull
                                                                 @NotNull RenderContext context)
      • setupInnerViewRenderContext

        @NotNull
        public static @NotNull RenderContext setupInnerViewRenderContext​(@NotNull
                                                                         @NotNull ViewBox viewBox,
                                                                         @NotNull
                                                                         @NotNull RenderContext context,
                                                                         boolean inheritAttributes)