Interface NonSymbolDiagramContent<C extends java.awt.Component>
-
@OpenApiAll public interface NonSymbolDiagramContent<C extends java.awt.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activate()
Activate component.C
createComponent()
Create content component.void
dispose()
Dispose component.java.awt.Dimension
getComponentFullSize(C component)
Get component full size - used when preparing to print/save diagram to image.java.awt.Rectangle
getPaintableBounds(C component)
Get component paintable bounds - bounds used to print/save diagram to the image.
-
-
-
Method Detail
-
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
java.awt.Dimension getComponentFullSize(C component)
Get component full size - used when preparing to print/save diagram to image.- Parameters:
component
- component.- Returns:
- component full size.
-
getPaintableBounds
java.awt.Rectangle getPaintableBounds(C component)
Get component paintable bounds - bounds used to print/save diagram to the image.- Parameters:
component
- component.- Returns:
- bounds to paint/print.
-
-