|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectStackedBarRenderer
edu.ucla.stat.SOCR.chart.gui.ExtendedStackedBarRenderer
public class ExtendedStackedBarRenderer
An extension of the StackedBarRenderer that can draw positive and
negative totals at the top and bottom of the stacked bars.
| Constructor Summary | |
|---|---|
ExtendedStackedBarRenderer()
Creates a new 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,
int pass)
Draws a stacked bar for a specific item. |
java.text.NumberFormat |
getTotalFormatter()
Returns the total formatter. |
void |
setTotalFormatter(java.text.NumberFormat format)
Sets the total formatter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedStackedBarRenderer()
| Method Detail |
|---|
public java.text.NumberFormat getTotalFormatter()
null).public void setTotalFormatter(java.text.NumberFormat format)
format - the formatter (null not permitted).
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,
int pass)
g2 - the graphics device.state - the renderer state.dataArea - the plot area.plot - the plot.domainAxis - the domain (category) axis.rangeAxis - the range (value) axis.dataset - the data.row - the row index (zero-based).column - the column index (zero-based).pass - the pass index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||