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 Type
    Method
    Description
    org.eclipse.swt.widgets.Control
    Returns the primary control associated with this view.
    default void
    saveImage(String filename, int format)
    Save the image, This default implementation save the canvas as a PNG image.
  • Method Details

    • saveImage

      default void saveImage(String filename, int format)
      Save the image, This default implementation save the canvas as a PNG image.
      Parameters:
      filename - the file to write to
      format - the image format, specified in SWT constants (SWT.IMAGE_PNG, SWT.IMAGE_GIF, SWT.IMAGE_JPEG or SWT.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