|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.AbstractCategoryItemRenderer
org.jfree.chart.renderer.BarRenderer
org.jfree.chart.renderer.WaterfallBarRenderer
A renderer that handles the drawing of waterfall bar charts, for use with the
CategoryPlot class.
| Field Summary |
| Fields inherited from class org.jfree.chart.renderer.BarRenderer |
BAR_OUTLINE_WIDTH_THRESHOLD, DEFAULT_ITEM_MARGIN |
| Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO |
| Constructor Summary | |
WaterfallBarRenderer()
Constructs a new renderer with default values for the bar colors. |
|
WaterfallBarRenderer(java.awt.Paint firstBarPaint,
java.awt.Paint positiveBarPaint,
java.awt.Paint negativeBarPaint,
java.awt.Paint lastBarPaint)
Constructs a new waterfall renderer. |
|
| Method Summary | |
void |
drawItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset dataset,
int row,
int column)
Draws the bar for a single (series, category) data item. |
boolean |
equals(java.lang.Object object)
Tests an object for equality with this instance. |
java.awt.Paint |
getFirstBarPaint()
Returns the paint used to draw the first bar. |
java.awt.Paint |
getLastBarPaint()
Returns the paint used to draw the last bar. |
java.awt.Paint |
getNegativeBarPaint()
Returns the paint used to draw bars with negative values. |
java.awt.Paint |
getPositiveBarPaint()
Returns the paint used to draw bars with positive values. |
RangeType |
getRangeType()
Returns the range type. |
void |
setFirstBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw the first bar. |
void |
setLastBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw the last bar. |
void |
setNegativeBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw bars having negative values. |
void |
setPositiveBarPaint(java.awt.Paint paint)
Sets the paint that will be used to draw bars having positive values. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.util.PublicCloneable |
clone |
| Constructor Detail |
public WaterfallBarRenderer()
public WaterfallBarRenderer(java.awt.Paint firstBarPaint,
java.awt.Paint positiveBarPaint,
java.awt.Paint negativeBarPaint,
java.awt.Paint lastBarPaint)
firstBarPaint - the color of the first bar.positiveBarPaint - the color for bars with positive values.negativeBarPaint - the color for bars with negative values.lastBarPaint - the color of the last bar.| Method Detail |
public RangeType getRangeType()
getRangeType in interface CategoryItemRenderergetRangeType in class AbstractCategoryItemRendererpublic java.awt.Paint getFirstBarPaint()
public void setFirstBarPaint(java.awt.Paint paint)
paint - the paint.public java.awt.Paint getLastBarPaint()
public void setLastBarPaint(java.awt.Paint paint)
paint - the paint.public java.awt.Paint getPositiveBarPaint()
public void setPositiveBarPaint(java.awt.Paint paint)
paint - the paint.public java.awt.Paint getNegativeBarPaint()
public void setNegativeBarPaint(java.awt.Paint paint)
paint - the paint.
public void drawItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset dataset,
int row,
int column)
drawItem in interface CategoryItemRendererdrawItem in class BarRendererg2 - the graphics device.state - the renderer state.dataArea - the data area.plot - the plot.domainAxis - the domain axis.rangeAxis - the range axis.dataset - the dataset.row - the row index (zero-based).column - the column index (zero-based).public boolean equals(java.lang.Object object)
equals in class BarRendererobject - the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||