ch.hortis.sonar.web.charts
Class CustomBarRenderer

java.lang.Object
  extended by BarRenderer
      extended by ch.hortis.sonar.web.charts.CustomBarRenderer

public class CustomBarRenderer
extends BarRenderer


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

Field Detail

COLORS

public static final java.awt.Paint[] COLORS
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.

getColors

public java.awt.Paint[] getColors()

setColors

public void setColors(java.awt.Paint[] colors)


Copyright © 2007-2008 hortis. All Rights Reserved.