Package hec.gfx2d.svg
Class PlotSVGUtil
java.lang.Object
hec.gfx2d.svg.PlotSVGUtil
Utility class that assists with rendering G2d Plots into SVGs
-
Method Summary
Modifier and TypeMethodDescriptionstatic SVGDatarenderPlotToSVG(G2dPanel g2dPanel, int sizeX, int sizeY, int dpi) Render a G2dPanel plot to SVGData.
-
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 rendersizeX- The X component of the component sizesizeY- The Y component of the component sizedpi- The DPI to render at. Higher DPI = Larger text. Recommend values over 100.- Returns:
- an SVGData containing the plot
- Throws:
SVGException
-