Inheritance diagram for javawrapper::ModelFlowSetup::ListRenderer:
Public Member Functions | |
ListRenderer (int iWidth) | |
Constructor. | |
Component | getListCellRendererComponent (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
This method finds the image and text corresponding to the selected value and returns the label, set up to display the text and image. | |
Private Attributes | |
float | m_fComponentWidth |
The width of the component in which this will be displayed. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper::ModelFlowSetup::ListRenderer::ListRenderer | ( | int | iWidth | ) | [inline] |
Constructor.
iWidth | Width of the component in which this renderer will display text. |
Component javawrapper::ModelFlowSetup::ListRenderer::getListCellRendererComponent | ( | JList | list, | |
Object | value, | |||
int | index, | |||
boolean | isSelected, | |||
boolean | cellHasFocus | |||
) | [inline] |
This method finds the image and text corresponding to the selected value and returns the label, set up to display the text and image.
list | JList List object. | |
value | Object Object to render for | |
index | int Index of object to render | |
isSelected | boolean Whether or not the object to render is selected | |
cellHasFocus | boolean Whether or not the object to render has focus |
float javawrapper::ModelFlowSetup::ListRenderer::m_fComponentWidth [private] |
The width of the component in which this will be displayed.
This is float to save a casting step later when rendering.