T
- Type of the component which this renderer is designed forpublic interface ComponentRenderer<T extends Component>
Modifier and Type | Method and Description |
---|---|
void |
drawComponent(TextGUIGraphics graphics,
T component)
Using the supplied graphics object, draws the component passed in.
|
TerminalSize |
getPreferredSize(T component)
Given the supplied component, how large does this renderer want the component to be? Notice that this is the
responsibility of the renderer and not the component itself, since the component has no idea what its visual
representation looks like.
|
TerminalSize getPreferredSize(T component)
component
- Component to calculate the preferred size ofvoid drawComponent(TextGUIGraphics graphics, T component)
graphics
- Graphics object to use for drawingcomponent
- Component to drawCopyright © 2016. All rights reserved.