Class SVGExporter

java.lang.Object
org.eclipse.graphiti.export.batik.SVGExporter
All Implemented Interfaces:
IDiagramsExporter

public class SVGExporter extends Object implements IDiagramsExporter
Extending the Graphiti framework with an export option for SVG.
  • Constructor Details

    • SVGExporter

      public SVGExporter()
  • Method Details

    • export

      public void export(org.eclipse.swt.graphics.Image im, org.eclipse.draw2d.IFigure figure, String fileName, Double scaleFactor) throws Exception
      Description copied from interface: IDiagramsExporter
      Exports the graphics using the passed image or figure. Throws a Exception if something goes wrong.
      Specified by:
      export in interface IDiagramsExporter
      Parameters:
      im - the image to be exported, the image is already scaled
      figure - the figure to be exported
      fileName - null or an filename
      scaleFactor - the scale factor, can be used to scale the figure
      Throws:
      Exception