visad.bio
Class ColorRenderer

java.lang.Object
  extended by visad.bio.ColorRenderer
All Implemented Interfaces:
javax.swing.ListCellRenderer

public class ColorRenderer
extends java.lang.Object
implements javax.swing.ListCellRenderer

ColorRenderer is a JComboBox renderer that uses ColorBars.


Constructor Summary
ColorRenderer()
          Constructs a color JComboBox renderer.
 
Method Summary
 java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
          Gets the specified JComboBox list component.
 void setSize(java.awt.Dimension size)
          Sets the preferred size of the renderer's components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorRenderer

public ColorRenderer()
Constructs a color JComboBox renderer.

Method Detail

setSize

public void setSize(java.awt.Dimension size)
Sets the preferred size of the renderer's components.


getListCellRendererComponent

public java.awt.Component getListCellRendererComponent(javax.swing.JList list,
                                                       java.lang.Object value,
                                                       int index,
                                                       boolean isSelected,
                                                       boolean cellHasFocus)
Gets the specified JComboBox list component.

Specified by:
getListCellRendererComponent in interface javax.swing.ListCellRenderer