-
- All Superinterfaces:
ComponentRenderer<Border>
- All Known Implementing Classes:
Borders.AbstractBorderRenderer
,Borders.DoubleLineRenderer
,Borders.SingleLineRenderer
- Enclosing interface:
- Border
public static interface Border.BorderRenderer extends ComponentRenderer<Border>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TerminalSize
getWrappedComponentSize(TerminalSize borderSize)
Given a total size of the border composite and it's wrapped component, how large would the actual wrapped component be?TerminalPosition
getWrappedComponentTopLeftOffset()
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 com.googlecode.lanterna.gui2.ComponentRenderer
drawComponent, getPreferredSize
-
-
-
-
Method Detail
-
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
TerminalSize getWrappedComponentSize(TerminalSize borderSize)
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
-
-