antsnest.level.defaults
Class AttributeListRenderer
java.lang.Object
antsnest.level.defaults.AttributeListRenderer
- All Implemented Interfaces:
- ListCellRenderer
public class AttributeListRenderer
- extends Object
- implements ListCellRenderer
Responsible for how the list of attributes is rendered
- Author:
- Chris Clohosy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeListRenderer
public AttributeListRenderer()
- Constructs a new renderer
getListCellRendererComponent
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
- Actually constructs the component to display in the list
- Specified by:
getListCellRendererComponent in interface ListCellRenderer
- Parameters:
list - the list that we are concerned withvalue - what the list element holdsindex - the index of the list elementisSelected - whether the list element was selectedcellHasFocus - whether the list element has the focus
- Returns:
- a Component, the component to render