Interface Border.BorderRenderer
- All Superinterfaces:
ComponentRenderer<Border>
- All Known Implementing Classes:
Borders.AbstractBorderRenderer, Borders.DoubleLineRenderer, Borders.SingleLineRenderer
- Enclosing interface:
Border
-
Method Summary
Modifier and TypeMethodDescriptiongetWrappedComponentSize(TerminalSize borderSize) Given a total size of the border composite and it's wrapped component, how large would the actual wrapped component be?How large is the offset from the top left corner of the border to the top left corner of the wrapped component?Methods inherited from interface ComponentRenderer
drawComponent, getPreferredSize
-
Method Details
-
getWrappedComponentTopLeftOffset
TerminalPosition getWrappedComponentTopLeftOffset()How large is the offset from the top left corner of the border to the top left corner of the wrapped component?- Returns:
- Position of the wrapped components top left position, relative to the top left corner of the border
-
getWrappedComponentSize
Given a total size of the border composite and it's wrapped component, how large would the actual wrapped component be?- Parameters:
borderSize- Size to calculate for, this should be the total size of the border and the inner component- Returns:
- Size of the inner component if the total size of inner + border is borderSize
-