Interface ISaveImageFeature

    • Method Detail

      • canSave

        boolean canSave​(ISaveImageContext context)
        Checks if save as image can be executed.
        Parameters:
        context - the context
        Returns:
        true, if successful
      • save

        void save​(ISaveImageContext context)
        Save the diagram using the given context information. By default the complete diagram is saved, there's currently no option to influence the saving via the context.
        Parameters:
        context - Context information for printing
        Since:
        0.10
      • preSave

        void preSave​(ISaveImageContext context)
        Pre-save hook. Called before the actual save as image process starts. You may use this hook to influence the current state of the diagram or the selection.
        Parameters:
        context - the context
      • postSave

        void postSave​(ISaveImageContext context)
        Post-save hook. Called after the actual save as image process finished. You may use this hook to set back the changes done in the preSave method.
        Parameters:
        context - the context