Package hec.gfx2d.svg

Class PlotSVGUtil

java.lang.Object
hec.gfx2d.svg.PlotSVGUtil

public final class PlotSVGUtil extends Object
Utility class that assists with rendering G2d Plots into SVGs
  • Method Details

    • renderPlotToSVG

      public static SVGData renderPlotToSVG(G2dPanel g2dPanel, int sizeX, int sizeY, int dpi) throws SVGException
      Render a G2dPanel plot to SVGData.
      Parameters:
      g2dPanel - The Plot to render
      sizeX - The X component of the component size
      sizeY - The Y component of the component size
      dpi - The DPI to render at. Higher DPI = Larger text. Recommend values over 100.
      Returns:
      an SVGData containing the plot
      Throws:
      SVGException