Interface IImageSave
- All Known Implementing Classes:
AbstractSegmentStoreDensityViewer,AbstractSegmentStoreScatterChartViewer2,CounterChartViewer,TimeGraphViewer,TmfCommonXAxisChartViewer,TmfFilteredXYChartViewer,TmfXYChartViewer
public interface IImageSave
Image saving interface. It is to be implemented by view classes that want to
allow their content to be exported as an image. The default implementation
exports the canvas as a PNG image.
- Since:
- 3.3
- Author:
- Matthew Khouzam
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ControlReturns the primary control associated with this view.default voidSave the image, This default implementation save the canvas as a PNG image.
-
Method Details
-
saveImage
Save the image, This default implementation save the canvas as a PNG image.- Parameters:
filename- the file to write toformat- the image format, specified inSWTconstants (SWT.IMAGE_PNG,SWT.IMAGE_GIF,SWT.IMAGE_JPEGorSWT.IMAGE_BMP).
-
getControl
org.eclipse.swt.widgets.Control getControl()Returns the primary control associated with this view.- Returns:
- the SWT control which displays this view's content
-