org.jfree.chart.renderer.category

Class CategoryItemRendererState


public class CategoryItemRendererState
extends RendererState

An object that retains temporary state information for a CategoryItemRenderer.

Constructor Summary

CategoryItemRendererState(PlotRenderingInfo info)
Creates a new object for recording temporary state information for a renderer.

Method Summary

double
getBarWidth()
Returns the bar width.
double
getSeriesRunningTotal()
Returns the series running total.
void
setBarWidth(double width)
Sets the bar width.

Methods inherited from class org.jfree.chart.renderer.RendererState

getEntityCollection, getInfo

Constructor Details

CategoryItemRendererState

public CategoryItemRendererState(PlotRenderingInfo info)
Creates a new object for recording temporary state information for a renderer.
Parameters:
info - the plot rendering info.

Method Details

getBarWidth

public double getBarWidth()
Returns the bar width.
Returns:
The bar width.

getSeriesRunningTotal

public double getSeriesRunningTotal()
Returns the series running total.
Returns:
The running total.

setBarWidth

public void setBarWidth(double width)
Sets the bar width. The renderer calculates this value and stores it here - it is not intended that users can manually set the bar width.
Parameters:
width - the width.