Class AbstractSaveHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
    Direct Known Subclasses:
    PrintDiagramHandler, SaveDiagramHandler

    public abstract class AbstractSaveHandler
    extends org.eclipse.core.commands.AbstractHandler
    Base class for print and save handlers. Instance of this class can get image data from figures with getFiguresImageData(IDiagram, Collection) method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected List<org.eclipse.swt.graphics.ImageData> getFiguresImageData​(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram, Collection<? extends org.eclipse.draw2d.IFigure> figures)
      Creates image data from given figures.
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from interface org.eclipse.core.commands.IHandler

        execute
    • Constructor Detail

      • AbstractSaveHandler

        public AbstractSaveHandler()
    • Method Detail

      • getFiguresImageData

        protected List<org.eclipse.swt.graphics.ImageData> getFiguresImageData​(com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram,
                                                                               Collection<? extends org.eclipse.draw2d.IFigure> figures)
        Creates image data from given figures.
        Parameters:
        diagram - - figures diagram. Can't be null.
        figures - - figures to create image data. Can't be null.
        Returns:
        image data of given figures. Can't return null.