| org.jfree.chart.renderer.category.AbstractCategoryItemRenderer org.jfree.chart.renderer.category.AreaRenderer org.jfree.chart.renderer.category.StackedAreaRenderer
Method Summary | |
public void | drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass) Draw a single data item. | public boolean | equals(Object obj) Checks this instance for equality with an arbitrary object.
Parameters: obj - the object (null not permitted). | public Range | findRangeBounds(CategoryDataset dataset) Returns the range of values the renderer requires to display all the
items from the specified dataset.
Parameters: dataset - the dataset (null not permitted). | public int | getPassCount() Returns the number of passes (2 ) required by this renderer. | protected double | getPreviousHeight(CategoryDataset dataset, int series, int category) Calculates the stacked value of the all series up to, but not including
series for the specified category, category . | public boolean | getRenderAsPercentages() Returns true if the renderer displays each item value as
a percentage (so that the stacked areas add to 100%), and
false otherwise. | protected double[] | getStackValues(CategoryDataset dataset, int series, int index) Calculates the stacked values (one positive and one negative) of all
series up to, but not including, series for the specified
item. | public void | setRenderAsPercentages(boolean asPercentages) Sets the flag that controls whether the renderer displays each item
value as a percentage (so that the stacked areas add to 100%), and sends
a
RendererChangeEvent to all registered listeners. |
StackedAreaRenderer | public StackedAreaRenderer()(Code) | | Creates a new renderer.
|
StackedAreaRenderer | public StackedAreaRenderer(boolean renderAsPercentages)(Code) | | Creates a new renderer.
Parameters: renderAsPercentages - a flag that controls whether the data valuesare rendered as percentages. |
drawItem | public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass)(Code) | | Draw a single data item.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the data plot area. Parameters: plot - the plot. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the data. Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). Parameters: pass - the pass index. |
equals | public boolean equals(Object obj)(Code) | | Checks this instance for equality with an arbitrary object.
Parameters: obj - the object (null not permitted). A boolean. |
findRangeBounds | public Range findRangeBounds(CategoryDataset dataset)(Code) | | Returns the range of values the renderer requires to display all the
items from the specified dataset.
Parameters: dataset - the dataset (null not permitted). The range (or null if the dataset is empty). |
getPassCount | public int getPassCount()(Code) | | Returns the number of passes (2 ) required by this renderer.
The first pass is used to draw the bars, the second pass is used to
draw the item labels (if visible).
The number of passes required by the renderer. |
getPreviousHeight | protected double getPreviousHeight(CategoryDataset dataset, int series, int category)(Code) | | Calculates the stacked value of the all series up to, but not including
series for the specified category, category .
It returns 0.0 if series is the first series, i.e. 0.
Parameters: dataset - the dataset (null not permitted). Parameters: series - the series. Parameters: category - the category. double returns a cumulative value for all series' values up to but excluding series for Object category . |
getRenderAsPercentages | public boolean getRenderAsPercentages()(Code) | | Returns true if the renderer displays each item value as
a percentage (so that the stacked areas add to 100%), and
false otherwise.
A boolean. since: 1.0.3 |
getStackValues | protected double[] getStackValues(CategoryDataset dataset, int series, int index)(Code) | | Calculates the stacked values (one positive and one negative) of all
series up to, but not including, series for the specified
item. It returns [0.0, 0.0] if series is the first series.
Parameters: dataset - the dataset (null not permitted). Parameters: series - the series index. Parameters: index - the item index. An array containing the cumulative negative and positive valuesfor all series values up to but excluding series for index . |
setRenderAsPercentages | public void setRenderAsPercentages(boolean asPercentages)(Code) | | Sets the flag that controls whether the renderer displays each item
value as a percentage (so that the stacked areas add to 100%), and sends
a
RendererChangeEvent to all registered listeners.
Parameters: asPercentages - the flag. since: 1.0.3 |
Methods inherited from org.jfree.chart.renderer.category.AreaRenderer | public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public AreaRendererEndType getEndType()(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public void setEndType(AreaRendererEndType type)(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.renderer.category.AbstractCategoryItemRenderer | protected void addItemEntity(EntityCollection entities, CategoryDataset dataset, int row, int column, Shape hotspot)(Code)(Java Doc) protected Point2D calculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) protected Point2D calculateRangeMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) protected CategoryItemRendererState createState(PlotRenderingInfo info)(Code)(Java Doc) public void drawBackground(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)(Code)(Java Doc) public void drawDomainGridline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawDomainMarker(Graphics2D g2, CategoryPlot plot, CategoryAxis axis, CategoryMarker marker, Rectangle2D dataArea)(Code)(Java Doc) protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, CategoryDataset dataset, int row, int column, double x, double y, boolean negative)(Code)(Java Doc) public void drawOutline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea)(Code)(Java Doc) public void drawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawRangeMarker(Graphics2D g2, CategoryPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Range findRangeBounds(CategoryDataset dataset)(Code)(Java Doc) public CategoryItemLabelGenerator getBaseItemLabelGenerator()(Code)(Java Doc) public CategoryURLGenerator getBaseItemURLGenerator()(Code)(Java Doc) public CategoryToolTipGenerator getBaseToolTipGenerator()(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) protected CategoryAxis getDomainAxis(CategoryPlot plot, int index)(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public CategoryItemLabelGenerator getItemLabelGenerator(int row, int column)(Code)(Java Doc) public CategoryURLGenerator getItemURLGenerator(int row, int column)(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public CategorySeriesLabelGenerator getLegendItemLabelGenerator()(Code)(Java Doc) public CategorySeriesLabelGenerator getLegendItemToolTipGenerator()(Code)(Java Doc) public CategorySeriesLabelGenerator getLegendItemURLGenerator()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public int getPassCount()(Code)(Java Doc) public CategoryPlot getPlot()(Code)(Java Doc) protected ValueAxis getRangeAxis(CategoryPlot plot, int index)(Code)(Java Doc) public int getRowCount()(Code)(Java Doc) public CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)(Java Doc) public CategoryURLGenerator getSeriesItemURLGenerator(int series)(Code)(Java Doc) public CategoryToolTipGenerator getSeriesToolTipGenerator(int series)(Code)(Java Doc) public CategoryToolTipGenerator getToolTipGenerator(int row, int column)(Code)(Java Doc) public CategoryToolTipGenerator getToolTipGenerator()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public CategoryItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)(Code)(Java Doc) public void setBaseItemLabelGenerator(CategoryItemLabelGenerator generator)(Code)(Java Doc) public void setBaseItemURLGenerator(CategoryURLGenerator generator)(Code)(Java Doc) public void setBaseToolTipGenerator(CategoryToolTipGenerator generator)(Code)(Java Doc) public void setItemLabelGenerator(CategoryItemLabelGenerator generator)(Code)(Java Doc) public void setItemURLGenerator(CategoryURLGenerator generator)(Code)(Java Doc) public void setLegendItemLabelGenerator(CategorySeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemToolTipGenerator(CategorySeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemURLGenerator(CategorySeriesLabelGenerator generator)(Code)(Java Doc) public void setPlot(CategoryPlot plot)(Code)(Java Doc) public void setSeriesItemLabelGenerator(int series, CategoryItemLabelGenerator generator)(Code)(Java Doc) public void setSeriesItemURLGenerator(int series, CategoryURLGenerator generator)(Code)(Java Doc) public void setSeriesToolTipGenerator(int series, CategoryToolTipGenerator generator)(Code)(Java Doc) public void setToolTipGenerator(CategoryToolTipGenerator generator)(Code)(Java Doc)
|
|
|