drawHorizontalItem
public void drawHorizontalItem(Graphics2D g2,
CategoryItemRendererState state,
Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset dataset,
int row,
int column)
Draws the visual representation of a single data item when the plot has
a horizontal orientation.
g2
- the graphics device.state
- the renderer state.dataArea
- the area within which the plot is being drawn.plot
- the plot (can be used to obtain standard color
information etc).domainAxis
- the domain axis.rangeAxis
- the range axis.dataset
- the dataset.row
- the row index (zero-based).column
- the column index (zero-based).
drawItem
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.
- drawItem in interface CategoryItemRenderer
g2
- the graphics device.state
- the renderer state.dataArea
- the area in which the data is drawn.plot
- the plot.domainAxis
- the domain axis.rangeAxis
- the range axis.dataset
- the data.row
- the row index (zero-based).column
- the column index (zero-based).pass
- the pass index.
drawVerticalItem
public void drawVerticalItem(Graphics2D g2,
CategoryItemRendererState state,
Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset dataset,
int row,
int column)
Draws the visual representation of a single data item when the plot has
a vertical orientation.
g2
- the graphics device.state
- the renderer state.dataArea
- the area within which the plot is being drawn.plot
- the plot (can be used to obtain standard color information
etc).domainAxis
- the domain axis.rangeAxis
- the range axis.dataset
- the dataset.row
- the row index (zero-based).column
- the column index (zero-based).
getArtifactPaint
public Paint getArtifactPaint()
Returns the paint used to color the median and average markers.
- The paint used to draw the median and average markers (never
null
).
getFillBox
public boolean getFillBox()
Returns the flag that controls whether or not the box is filled.
getItemMargin
public double getItemMargin()
Returns the item margin. This is a percentage of the available space
that is allocated to the space between items in the chart.
setArtifactPaint
public void setArtifactPaint(Paint paint)
Sets the paint used to color the median and average markers and sends
a
RendererChangeEvent
to all registered listeners.
paint
- the paint (null
not permitted).
setFillBox
public void setFillBox(boolean flag)
Sets the flag that controls whether or not the box is filled and sends a
RendererChangeEvent
to all registered listeners.
setItemMargin
public void setItemMargin(double margin)
margin
- the margin (a percentage).