Class CategoryItemRendererState
java.lang.Object
org.jfree.chart.renderer.RendererState
org.jfree.chart.renderer.category.CategoryItemRendererState
- Direct Known Subclasses:
CategoryStepRenderer.State
An object that retains temporary state information for a
CategoryItemRenderer.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object for recording temporary state information for a renderer. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the bar width.Returns the crosshair state, if any.doubleReturns the series running total.int[]Returns a copy of the visible series array.intReturns the number of visible series or -1 if no visible series have been specified.intgetVisibleSeriesIndex(int rowIndex) Returns the index of the row relative to the visible rows.voidsetBarWidth(double width) Sets the bar width.voidSets the crosshair state.voidsetVisibleSeriesArray(int[] visibleSeries) Sets an array with the indices of the visible rows.Methods inherited from class org.jfree.chart.renderer.RendererState
getElementHinting, getEntityCollection, getInfo, setElementHinting
-
Constructor Details
-
CategoryItemRendererState
Creates a new object for recording temporary state information for a renderer.- Parameters:
info- the plot rendering info (nullpermitted).
-
-
Method Details
-
getBarWidth
Returns the bar width.- Returns:
- The bar width.
- See Also:
-
setBarWidth
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.- See Also:
-
getSeriesRunningTotal
Returns the series running total.- Returns:
- The running total.
- See Also:
-
setSeriesRunningTotal(double)
-
getCrosshairState
Returns the crosshair state, if any.- Returns:
- The crosshair state (possibly
null). - See Also:
-
setCrosshairState
Sets the crosshair state.- Parameters:
state- the new state (nullpermitted).- See Also:
-
getVisibleSeriesIndex
Returns the index of the row relative to the visible rows. If no visible rows have been specified, the original row index is returned. If the row index is not included in the array of visible rows, -1 is returned.- Parameters:
rowIndex- the row index.- Returns:
- The new row index or -1.
-
getVisibleSeriesCount
Returns the number of visible series or -1 if no visible series have been specified.- Returns:
- The number or -1.
-
getVisibleSeriesArray
Returns a copy of the visible series array.- Returns:
- The visible series array (possibly
null).
-
setVisibleSeriesArray
Sets an array with the indices of the visible rows.- Parameters:
visibleSeries- the array (nullpermitted).
-