Class SVGDocument


  • public final class SVGDocument
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean DEBUG  
      private @NotNull SVG root  
      private @NotNull FloatSize size  
    • Constructor Summary

      Constructors 
      Constructor Description
      SVGDocument​(@NotNull SVG root)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void render​(@Nullable javax.swing.JComponent component, @NotNull java.awt.Graphics2D g)  
      void render​(@Nullable javax.swing.JComponent component, @NotNull java.awt.Graphics2D graphics2D, @Nullable ViewBox bounds)  
      private void setSVGRenderingHint​(@NotNull java.awt.Graphics2D g, java.awt.RenderingHints.Key key, @NotNull java.lang.Object o)  
      private void setupSVGRenderingHints​(@NotNull java.awt.Graphics2D g)  
      @NotNull FloatSize size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • root

        @NotNull
        private final @NotNull SVG root
      • size

        @NotNull
        private final @NotNull FloatSize size
    • Constructor Detail

      • SVGDocument

        public SVGDocument​(@NotNull
                           @NotNull SVG root)
    • Method Detail

      • size

        @NotNull
        public @NotNull FloatSize size()
      • render

        public void render​(@Nullable
                           @Nullable javax.swing.JComponent component,
                           @NotNull
                           @NotNull java.awt.Graphics2D g)
      • render

        public void render​(@Nullable
                           @Nullable javax.swing.JComponent component,
                           @NotNull
                           @NotNull java.awt.Graphics2D graphics2D,
                           @Nullable
                           @Nullable ViewBox bounds)
      • setupSVGRenderingHints

        private void setupSVGRenderingHints​(@NotNull
                                            @NotNull java.awt.Graphics2D g)
      • setSVGRenderingHint

        private void setSVGRenderingHint​(@NotNull
                                         @NotNull java.awt.Graphics2D g,
                                         @NotNull
                                         java.awt.RenderingHints.Key key,
                                         @NotNull
                                         @NotNull java.lang.Object o)