org.jfree.chart.renderer.category
public class BoxAndWhiskerRenderer extends AbstractCategoryItemRenderer implements Cloneable, PublicCloneable, Serializable
Constructor Summary | |
---|---|
BoxAndWhiskerRenderer()
Default constructor. |
Method Summary | |
---|---|
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.
|
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.
|
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.
|
boolean | equals(Object obj)
Tests this renderer for equality with an arbitrary object.
|
Paint | getArtifactPaint()
Returns the paint used to color the median and average markers.
|
boolean | getFillBox()
Returns the flag that controls whether or not the box is filled.
|
double | getItemMargin()
Returns the item margin. |
LegendItem | getLegendItem(int datasetIndex, int series)
Returns a legend item for a series.
|
double | getMaximumBarWidth()
Returns the maximum bar width as a percentage of the available drawing
space.
|
CategoryItemRendererState | initialise(Graphics2D g2, Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, PlotRenderingInfo info)
Initialises the renderer. |
void | setArtifactPaint(Paint paint)
Sets the paint used to color the median and average markers and sends
a RendererChangeEvent to all registered listeners.
|
void | setFillBox(boolean flag)
Sets the flag that controls whether or not the box is filled and sends a
RendererChangeEvent to all registered listeners.
|
void | setItemMargin(double margin)
Sets the item margin and sends a RendererChangeEvent to all
registered listeners.
|
void | setMaximumBarWidth(double percent)
Sets the maximum bar width, which is specified as a percentage of the
available space for all bars, and sends a RendererChangeEvent
to all registered listeners.
|
Parameters: 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 (must be an instance of BoxAndWhiskerCategoryDataset). row the row index (zero-based). column the column index (zero-based).
Parameters: 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 (must be an instance of BoxAndWhiskerCategoryDataset). row the row index (zero-based). column the column index (zero-based). pass the pass index.
Parameters: 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 (must be an instance of BoxAndWhiskerCategoryDataset). row the row index (zero-based). column the column index (zero-based).
Parameters: obj the object (null
permitted).
Returns: true
or false
.
Returns: The paint used to draw the median and average markers (never
null
).
See Also: setArtifactPaint
Returns: A boolean.
See Also: BoxAndWhiskerRenderer
Returns: The margin.
See Also: BoxAndWhiskerRenderer
Parameters: datasetIndex the dataset index (zero-based). series the series index (zero-based).
Returns: The legend item (possibly null
).
Returns: The maximum bar width.
Since: 1.0.10
Parameters: g2 the graphics device. dataArea the area in which the data is to be plotted. plot the plot. rendererIndex the renderer index. info collects chart rendering information for return to caller.
Returns: The renderer state.
Parameters: paint the paint (null
not permitted).
See Also: getArtifactPaint
Parameters: flag the flag.
See Also: getFillBox
Parameters: margin the margin (a percentage).
See Also: getItemMargin
Parameters: percent the maximum Bar Width (a percentage).
Since: 1.0.10