Class SVGDocument

java.lang.Object
com.github.weisj.jsvg.SVGDocument

public final class SVGDocument extends Object
  • Field Details

    • DEBUG

      private static final boolean DEBUG
      See Also:
    • root

      @NotNull private final @NotNull SVG root
    • size

      @NotNull private final @NotNull FloatSize size
  • Constructor Details

    • SVGDocument

      public SVGDocument(@NotNull @NotNull SVG root)
  • Method Details

    • size

      @NotNull public @NotNull FloatSize size()
    • viewBox

      @NotNull public @NotNull ViewBox viewBox()
    • computeShape

      @NotNull public @NotNull Shape computeShape()
    • computeShape

      @NotNull public @NotNull Shape computeShape(@Nullable @Nullable ViewBox viewBox)
    • render

      public void render(@Nullable @Nullable JComponent component, @NotNull @NotNull Graphics2D g)
    • render

      @Deprecated public void render(@Nullable @Nullable JComponent component, @NotNull @NotNull Graphics2D graphics2D, @Nullable @Nullable ViewBox bounds)
      Deprecated.
    • render

      public void render(@Nullable @Nullable Component component, @NotNull @NotNull Graphics2D graphics2D, @Nullable @Nullable ViewBox bounds)
    • computePlatformFontSize

      private float computePlatformFontSize(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output)
    • renderWithPlatform

      public void renderWithPlatform(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Graphics2D graphics2D, @Nullable @Nullable ViewBox bounds)
    • renderWithPlatform

      public void renderWithPlatform(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output, @Nullable @Nullable ViewBox bounds)
    • prepareRenderContext

      @NotNull private @NotNull RenderContext prepareRenderContext(@NotNull @NotNull PlatformSupport platformSupport, @NotNull @NotNull Output output, @Nullable @Nullable ViewBox bounds)
    • setupSVGRenderingHints

      private void setupSVGRenderingHints(@NotNull @NotNull Graphics2D g)
    • setSVGRenderingHint

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