edu.ucla.stat.SOCR.chart.gui
Class CustomBarRenderer

java.lang.Object
  extended by BarRenderer
      extended by edu.ucla.stat.SOCR.chart.gui.CustomBarRenderer

public class CustomBarRenderer
extends BarRenderer

A custom renderer that returns a different color for each item in a single series.


Constructor Summary
CustomBarRenderer(java.awt.Paint[] colors)
          Creates a new renderer.
 
Method Summary
 java.awt.Paint getItemPaint(int row, int column)
          Returns the paint for an item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomBarRenderer

public CustomBarRenderer(java.awt.Paint[] colors)
Creates a new renderer.

Parameters:
colors - the colors.
Method Detail

getItemPaint

public java.awt.Paint getItemPaint(int row,
                                   int column)
Returns the paint for an item. Overrides the default behaviour inherited from AbstractSeriesRenderer.

Parameters:
row - the series.
column - the category.
Returns:
The item color.