Interface NonSymbolDiagramContent<C extends Component>
Non symbol diagram content.
There are three situations when this content is created:
- Diagram is shown
- Diagram is printed
- Diagram is saved to image
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activate component.Create content component.void
dispose()
Dispose component.getComponentFullSize
(C component) Get component full size - used when preparing to print/save diagram to image.getPaintableBounds
(C component) Get component paintable bounds - bounds used to print/save diagram to the image.
-
Method Details
-
createComponent
C createComponent()Create content component.- Returns:
- content component.
-
activate
void activate()Activate component. Method implementation must initialize the component if it is not initialized yet. -
dispose
void dispose()Dispose component. -
getComponentFullSize
Get component full size - used when preparing to print/save diagram to image.- Parameters:
component
- component.- Returns:
- component full size.
-
getPaintableBounds
Get component paintable bounds - bounds used to print/save diagram to the image.- Parameters:
component
- component.- Returns:
- bounds to paint/print.
-