|
||||||||||
| 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.LayeredBarRenderer
A CategoryItemRenderer that represents data using bars which are superimposed.
| Field Summary | |
protected org.jfree.util.ObjectList |
seriesBarWidthList
A list of the width of each series bar. |
| 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 | |
LayeredBarRenderer()
Default constructor. |
|
| Method Summary | |
protected void |
calculateBarWidth(CategoryPlot plot,
java.awt.geom.Rectangle2D dataArea,
int rendererIndex,
CategoryItemRendererState state)
Calculates the bar width and stores it in the renderer state. |
protected void |
drawHorizontalItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset data,
int row,
int column)
Draws the bar for a single (series, category) data item. |
void |
drawItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset data,
int row,
int column)
Draws the bar for one item in the dataset. |
protected void |
drawVerticalItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset data,
int row,
int column)
Draws the bar for a single (series, category) data item. |
double |
getSeriesBarWidth(int series,
CategoryItemRendererState state)
Returns the bar width for a series. |
void |
setSeriesBarWidth(int series,
double width)
Sets the width of the bars of a series. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.util.PublicCloneable |
clone |
| Field Detail |
protected org.jfree.util.ObjectList seriesBarWidthList
| Constructor Detail |
public LayeredBarRenderer()
| Method Detail |
protected void calculateBarWidth(CategoryPlot plot,
java.awt.geom.Rectangle2D dataArea,
int rendererIndex,
CategoryItemRendererState state)
calculateBarWidth in class BarRendererplot - the plot.dataArea - the data area.rendererIndex - the renderer index.state - the renderer state.
public void drawItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset data,
int row,
int column)
drawItem in interface CategoryItemRendererdrawItem in class BarRendererg2 - the graphics device.state - the renderer state.dataArea - the plot area.plot - the plot.domainAxis - the domain (category) axis.rangeAxis - the range (value) axis.data - the data.row - the row index (zero-based).column - the column index (zero-based).
protected void drawHorizontalItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset data,
int row,
int column)
g2 - the graphics device.state - the renderer state.dataArea - the data area.plot - the plot.domainAxis - the domain axis.rangeAxis - the range axis.data - the data.row - the row index (zero-based).column - the column index (zero-based).
protected void drawVerticalItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset data,
int row,
int column)
g2 - the graphics device.state - the renderer state.dataArea - the data area.plot - the plot.domainAxis - the domain axis.rangeAxis - the range axis.data - the data.row - the row index (zero-based).column - the column index (zero-based).
public double getSeriesBarWidth(int series,
CategoryItemRendererState state)
series - the series index (zero based).state - the renderer state.
public void setSeriesBarWidth(int series,
double width)
series - the series index (zero based).width - the width of the series bar in percentage (1.0=100%, it is the maximum).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||