V
- Type of items in the combo boxpublic static class ComboBox.DefaultComboBoxRenderer<V> extends ComboBox.ComboBoxRenderer<V>
Constructor and Description |
---|
DefaultComboBoxRenderer()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
drawComponent(TextGUIGraphics graphics,
ComboBox<V> comboBox)
Using the supplied graphics object, draws the component passed in.
|
TerminalPosition |
getCursorLocation(ComboBox<V> comboBox) |
TerminalSize |
getPreferredSize(ComboBox<V> comboBox)
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.
|
public TerminalPosition getCursorLocation(ComboBox<V> comboBox)
public TerminalSize getPreferredSize(ComboBox<V> comboBox)
ComponentRenderer
comboBox
- Component to calculate the preferred size ofpublic void drawComponent(TextGUIGraphics graphics, ComboBox<V> comboBox)
ComponentRenderer
graphics
- Graphics object to use for drawingcomboBox
- Component to drawCopyright © 2016. All rights reserved.