Interface IDiagramsExporter


  • public interface IDiagramsExporter
    Exports the content of a graphical viewer provided as image and as figure. The usual use-case is exporting to a file. But exports could in principal go anywhere.
    Since:
    0.8.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void export​(org.eclipse.swt.graphics.Image im, org.eclipse.draw2d.IFigure figure, java.lang.String fileName, java.lang.Double scaleFactor)
      Exports the graphics using the passed image or figure.
    • Method Detail

      • export

        void export​(org.eclipse.swt.graphics.Image im,
                    org.eclipse.draw2d.IFigure figure,
                    java.lang.String fileName,
                    java.lang.Double scaleFactor)
             throws java.lang.Exception
        Exports the graphics using the passed image or figure. Throws a Exception if something goes wrong.
        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:
        java.lang.Exception