Interface ExportManager

All Superinterfaces:
DiagramCanvasExt
All Known Implementing Classes:
DiagramCanvas

public interface ExportManager extends DiagramCanvasExt
Contains file export actions and export scope handling.
  • Method Details

    • computeExportContentBounds

      default Rectangle2D.Double computeExportContentBounds(Graphics2D g2, ViewExportScope scope)
      Computes the export content bounds on the active canvas.
      Parameters:
      g2 - graphics context used for drawing
      scope - export scope to use
      Returns:
      the compute export content bounds result
    • computeExportSize

      default Dimension computeExportSize(Graphics2D g2, ViewExportScope scope)
      Computes the export size on the active canvas.
      Parameters:
      g2 - graphics context used for drawing
      scope - export scope to use
      Returns:
      the compute export size result
    • computeExportWorldBounds

      default Rectangle2D.Double computeExportWorldBounds(Graphics2D g2, ViewExportScope scope)
      Computes the export world bounds on the active canvas.
      Parameters:
      g2 - graphics context used for drawing
      scope - export scope to use
      Returns:
      the compute export world bounds result
    • computeSelectionBounds

      default Rectangle2D.Double computeSelectionBounds(List<SelectedElement> selection)
      Computes the selection bounds.
      Parameters:
      selection - selection state to read or update
      Returns:
      the compute selection bounds result
    • getViewportExportSize

      default Dimension getViewportExportSize()
      Returns the viewport export size on the active canvas.
      Returns:
      the viewport export size