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
-
Method Details
-
export
void export(org.eclipse.swt.graphics.Image im, org.eclipse.draw2d.IFigure figure, String fileName, Double scaleFactor) throws 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 scaledfigure
- the figure to be exportedfileName
- null or an filenamescaleFactor
- the scale factor, can be used to scale the figure- Throws:
Exception
-