Package lu.kbra.modelizer_next.ui.canvas
Interface ExportManager
- All Superinterfaces:
DiagramCanvasExt
- All Known Implementing Classes:
DiagramCanvas
Contains file export actions and export scope handling.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Rectangle2D.DoublecomputeExportContentBounds(Graphics2D g2, ViewExportScope scope) Computes the export content bounds on the active canvas.default DimensioncomputeExportSize(Graphics2D g2, ViewExportScope scope) Computes the export size on the active canvas.default Rectangle2D.DoublecomputeExportWorldBounds(Graphics2D g2, ViewExportScope scope) Computes the export world bounds on the active canvas.default Rectangle2D.DoublecomputeSelectionBounds(List<SelectedElement> selection) Computes the selection bounds.default DimensionReturns the viewport export size on the active canvas.Methods inherited from interface lu.kbra.modelizer_next.ui.canvas.DiagramCanvasExt
getCanvas, getDocument, getFrame, getPanelType
-
Method Details
-
computeExportContentBounds
Computes the export content bounds on the active canvas.- Parameters:
g2- graphics context used for drawingscope- export scope to use- Returns:
- the compute export content bounds result
-
computeExportSize
Computes the export size on the active canvas.- Parameters:
g2- graphics context used for drawingscope- export scope to use- Returns:
- the compute export size result
-
computeExportWorldBounds
Computes the export world bounds on the active canvas.- Parameters:
g2- graphics context used for drawingscope- export scope to use- Returns:
- the compute export world bounds result
-
computeSelectionBounds
Computes the selection bounds.- Parameters:
selection- selection state to read or update- Returns:
- the compute selection bounds result
-
getViewportExportSize
Returns the viewport export size on the active canvas.- Returns:
- the viewport export size
-