ch.hortis.sonar.web.charts
Class CustomBarRenderer
java.lang.Object
BarRenderer
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 |
COLORS
public static final java.awt.Paint[] COLORS
CustomBarRenderer
public CustomBarRenderer(java.awt.Paint[] colors)
- Creates a new renderer.
- Parameters:
colors
- the colors.
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.