| org.jfree.chart.renderer.category.AbstractCategoryItemRenderer org.jfree.chart.renderer.category.BarRenderer org.jfree.chart.renderer.category.BarRenderer3D org.jfree.chart.renderer.category.StackedBarRenderer3D
Constructor Summary | |
public | StackedBarRenderer3D() Creates a new renderer with no tool tip generator and no URL generator.
The defaults (no tool tip or URL generators) have been chosen to
minimise the processing required to generate a default chart. | public | StackedBarRenderer3D(double xOffset, double yOffset) Constructs a new renderer with the specified '3D effect'. | public | StackedBarRenderer3D(boolean renderAsPercentages) Creates a new renderer. | public | StackedBarRenderer3D(double xOffset, double yOffset, boolean renderAsPercentages) Constructs a new renderer with the specified '3D effect'. |
Method Summary | |
protected void | calculateBarWidth(CategoryPlot plot, Rectangle2D dataArea, int rendererIndex, CategoryItemRendererState state) Calculates the bar width and stores it in the renderer state. | protected static List | createStackedValueList(CategoryDataset dataset, Comparable category, double base, boolean asPercentages) Returns a list containing the stacked values for the specified series
in the given dataset, plus the supplied base value.
Parameters: dataset - the dataset (null not permitted). Parameters: category - the category key (null not permitted). Parameters: base - the base value. Parameters: asPercentages - a flag that controls whether the values in thelist are converted to percentages of the total. | public void | drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass) Draws the visual representation of one data item from the chart (in
fact, this method does nothing until it reaches the last item for each
category, at which point it draws all the items for that category). | protected void | drawStackHorizontal(List values, Comparable category, Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset) Draws a stack of bars for one category, with a horizontal orientation. | protected void | drawStackVertical(List values, Comparable category, Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset) Draws a stack of bars for one category, with a vertical orientation. | public boolean | equals(Object obj) Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null 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 boolean | getRenderAsPercentages() Returns true if the renderer displays each item value as
a percentage (so that the stacked bars add to 100%), and
false otherwise. | public void | setRenderAsPercentages(boolean asPercentages) Sets the flag that controls whether the renderer displays each item
value as a percentage (so that the stacked bars add to 100%), and sends
a
RendererChangeEvent to all registered listeners. |
StackedBarRenderer3D | public StackedBarRenderer3D()(Code) | | Creates a new renderer with no tool tip generator and no URL generator.
The defaults (no tool tip or URL generators) have been chosen to
minimise the processing required to generate a default chart. If you
require tool tips or URLs, then you can easily add the required
generators.
|
StackedBarRenderer3D | public StackedBarRenderer3D(double xOffset, double yOffset)(Code) | | Constructs a new renderer with the specified '3D effect'.
Parameters: xOffset - the x-offset for the 3D effect. Parameters: yOffset - the y-offset for the 3D effect. |
StackedBarRenderer3D | public StackedBarRenderer3D(boolean renderAsPercentages)(Code) | | Creates a new renderer.
Parameters: renderAsPercentages - a flag that controls whether the data valuesare rendered as percentages. since: 1.0.2 |
StackedBarRenderer3D | public StackedBarRenderer3D(double xOffset, double yOffset, boolean renderAsPercentages)(Code) | | Constructs a new renderer with the specified '3D effect'.
Parameters: xOffset - the x-offset for the 3D effect. Parameters: yOffset - the y-offset for the 3D effect. Parameters: renderAsPercentages - a flag that controls whether the data valuesare rendered as percentages. since: 1.0.2 |
calculateBarWidth | protected void calculateBarWidth(CategoryPlot plot, Rectangle2D dataArea, int rendererIndex, CategoryItemRendererState state)(Code) | | Calculates the bar width and stores it in the renderer state.
Parameters: plot - the plot. Parameters: dataArea - the data area. Parameters: rendererIndex - the renderer index. Parameters: state - the renderer state. |
createStackedValueList | protected static List createStackedValueList(CategoryDataset dataset, Comparable category, double base, boolean asPercentages)(Code) | | Returns a list containing the stacked values for the specified series
in the given dataset, plus the supplied base value.
Parameters: dataset - the dataset (null not permitted). Parameters: category - the category key (null not permitted). Parameters: base - the base value. Parameters: asPercentages - a flag that controls whether the values in thelist are converted to percentages of the total. The value list. since: 1.0.4 |
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) | | Draws the visual representation of one data item from the chart (in
fact, this method does nothing until it reaches the last item for each
category, at which point it draws all the items for that category).
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the plot area. Parameters: plot - the plot. Parameters: domainAxis - the domain (category) axis. Parameters: rangeAxis - the range (value) axis. Parameters: dataset - the data. Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). Parameters: pass - the pass index. |
drawStackHorizontal | protected void drawStackHorizontal(List values, Comparable category, Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset)(Code) | | Draws a stack of bars for one category, with a horizontal orientation.
Parameters: values - the value list. Parameters: category - the category. Parameters: g2 - the graphics device. Parameters: state - the state. Parameters: dataArea - the data area (adjusted for the 3D effect). Parameters: plot - the plot. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. since: 1.0.4 |
drawStackVertical | protected void drawStackVertical(List values, Comparable category, Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset)(Code) | | Draws a stack of bars for one category, with a vertical orientation.
Parameters: values - the value list. Parameters: category - the category. Parameters: g2 - the graphics device. Parameters: state - the state. Parameters: dataArea - the data area (adjusted for the 3D effect). Parameters: plot - the plot. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. since: 1.0.4 |
equals | public boolean equals(Object obj)(Code) | | Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null 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). |
getRenderAsPercentages | public boolean getRenderAsPercentages()(Code) | | Returns true if the renderer displays each item value as
a percentage (so that the stacked bars add to 100%), and
false otherwise.
A boolean. since: 1.0.2 |
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 bars add to 100%), and sends
a
RendererChangeEvent to all registered listeners.
Parameters: asPercentages - the flag. since: 1.0.2 |
Methods inherited from org.jfree.chart.renderer.category.BarRenderer3D | 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 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 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 Paint getWallPaint()(Code)(Java Doc) public double getXOffset()(Code)(Java Doc) public double getYOffset()(Code)(Java Doc) public CategoryItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)(Code)(Java Doc) public void setWallPaint(Paint paint)(Code)(Java Doc)
|
Fields inherited from org.jfree.chart.renderer.category.BarRenderer | final public static double BAR_OUTLINE_WIDTH_THRESHOLD(Code)(Java Doc) final public static double DEFAULT_ITEM_MARGIN(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.renderer.category.BarRenderer | protected double[] calculateBarL0L1(double value)(Code)(Java Doc) protected double calculateBarW0(CategoryPlot plot, PlotOrientation orientation, Rectangle2D dataArea, CategoryAxis domainAxis, CategoryItemRendererState state, int row, int column)(Code)(Java Doc) protected void calculateBarWidth(CategoryPlot plot, Rectangle2D dataArea, int rendererIndex, CategoryItemRendererState state)(Code)(Java Doc) protected double calculateSeriesWidth(double space, CategoryAxis axis, int categories, int series)(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) protected void drawItemLabel(Graphics2D g2, CategoryDataset data, int row, int column, CategoryPlot plot, CategoryItemLabelGenerator generator, Rectangle2D bar, boolean negative)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Range findRangeBounds(CategoryDataset dataset)(Code)(Java Doc) public double getBase()(Code)(Java Doc) public GradientPaintTransformer getGradientPaintTransformer()(Code)(Java Doc) public boolean getIncludeBaseInRange()(Code)(Java Doc) public double getItemMargin()(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public double getLowerClip()(Code)(Java Doc) public double getMaximumBarWidth()(Code)(Java Doc) public double getMinimumBarLength()(Code)(Java Doc) public ItemLabelPosition getNegativeItemLabelPositionFallback()(Code)(Java Doc) public ItemLabelPosition getPositiveItemLabelPositionFallback()(Code)(Java Doc) public double getUpperClip()(Code)(Java Doc) public CategoryItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)(Code)(Java Doc) public boolean isDrawBarOutline()(Code)(Java Doc) public void setBase(double base)(Code)(Java Doc) public void setDrawBarOutline(boolean draw)(Code)(Java Doc) public void setGradientPaintTransformer(GradientPaintTransformer transformer)(Code)(Java Doc) public void setIncludeBaseInRange(boolean include)(Code)(Java Doc) public void setItemMargin(double percent)(Code)(Java Doc) public void setMaximumBarWidth(double percent)(Code)(Java Doc) public void setMinimumBarLength(double min)(Code)(Java Doc) public void setNegativeItemLabelPositionFallback(ItemLabelPosition position)(Code)(Java Doc) public void setPositiveItemLabelPositionFallback(ItemLabelPosition position)(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)
|
|
|