antsnest.level.defaults
Class AttributeListRenderer

java.lang.Object
  extended by 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

Constructor Summary
AttributeListRenderer()
          Constructs a new renderer
 
Method Summary
 Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
          Actually constructs the component to display in the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeListRenderer

public AttributeListRenderer()
Constructs a new renderer

Method Detail

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 with
value - what the list element holds
index - the index of the list element
isSelected - whether the list element was selected
cellHasFocus - whether the list element has the focus
Returns:
a Component, the component to render