ComponentRenderer<Border>public static interface Border.BorderRenderer extends ComponentRenderer<Border>
| 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?
|
drawComponent, getPreferredSizeTerminalPosition getWrappedComponentTopLeftOffset()
TerminalSize getWrappedComponentSize(TerminalSize borderSize)
borderSize - Size to calculate for, this should be the total size of the border and the inner componentCopyright © 2020. All rights reserved.