public class CategoryItemRendererState extends RendererState
CategoryItemRenderer.| Modifier and Type | Field and Description |
|---|---|
private double |
barWidth
The bar width.
|
private CategoryCrosshairState |
crosshairState
State information for crosshairs in the plot (this is updated by the
renderer, but may be passed to several renderers in one chart).
|
private double |
seriesRunningTotal
The series running total.
|
private int[] |
visibleSeries
The array with the indices of the visible series.
|
| Constructor and Description |
|---|
CategoryItemRendererState(PlotRenderingInfo info)
Creates a new object for recording temporary state information for a
renderer.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getBarWidth()
Returns the bar width.
|
CategoryCrosshairState |
getCrosshairState()
Returns the crosshair state, if any.
|
double |
getSeriesRunningTotal()
Returns the series running total.
|
int[] |
getVisibleSeriesArray()
Returns a copy of the visible series array.
|
int |
getVisibleSeriesCount()
Returns the number of visible series or -1 if no visible series have
been specified.
|
int |
getVisibleSeriesIndex(int rowIndex)
Returns the index of the row relative to the visible rows.
|
void |
setBarWidth(double width)
Sets the bar width.
|
void |
setCrosshairState(CategoryCrosshairState state)
Sets the crosshair state.
|
(package private) void |
setSeriesRunningTotal(double total)
Sets the series running total (this method is intended for the use of
the renderer only).
|
void |
setVisibleSeriesArray(int[] visibleSeries)
Sets an array with the indices of the visible rows.
|
getEntityCollection, getInfoprivate double barWidth
private double seriesRunningTotal
private int[] visibleSeries
private CategoryCrosshairState crosshairState
public CategoryItemRendererState(PlotRenderingInfo info)
info - the plot rendering info (null permitted).public double getBarWidth()
setBarWidth(double)public void setBarWidth(double width)
width - the width.getBarWidth()public double getSeriesRunningTotal()
setSeriesRunningTotal(double)void setSeriesRunningTotal(double total)
total - the new total.getSeriesRunningTotal()public CategoryCrosshairState getCrosshairState()
null).setCrosshairState(CategoryCrosshairState)public void setCrosshairState(CategoryCrosshairState state)
state - the new state (null permitted).getCrosshairState()public int getVisibleSeriesIndex(int rowIndex)
rowIndex - the row index.public int getVisibleSeriesCount()
public int[] getVisibleSeriesArray()
null).public void setVisibleSeriesArray(int[] visibleSeries)
visibleSeries - the array (null permitted).