|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
org.jfree.chart.renderer.category.MinMaxCategoryRenderer
public class MinMaxCategoryRenderer
Renderer for drawing min max plot. This renderer draws all the series under
the same category in the same x position using objectIcon and
a line from the maximum value to the minimum value. For use with the
CategoryPlot class. The example shown here is generated by
the MinMaxCategoryPlotDemo1.java program included in the
JFreeChart Demo Collection:
| Field Summary |
|---|
| Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
|---|
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO |
| Constructor Summary | |
|---|---|
MinMaxCategoryRenderer()
Default constructor. |
|
| Method Summary | |
|---|---|
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. |
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object. |
Paint |
getGroupPaint()
Returns the paint used to draw the line between the minimum and maximum value items in each category. |
Stroke |
getGroupStroke()
Returns the stroke used to draw the line between the minimum and maximum value items in each category. |
Icon |
getMaxIcon()
Returns the icon displayed for the maximum value data item within each category. |
Icon |
getMinIcon()
Returns the icon displayed for the minimum value data item within each category. |
Icon |
getObjectIcon()
Returns the icon drawn for each data item. |
boolean |
isDrawLines()
Gets whether or not lines are drawn between category points. |
void |
setDrawLines(boolean draw)
Sets the flag that controls whether or not lines are drawn to connect the items within a series and sends a RendererChangeEvent to
all registered listeners. |
void |
setGroupPaint(Paint paint)
Sets the paint used to draw the line between the minimum and maximum value items in each category and sends a RendererChangeEvent to
all registered listeners. |
void |
setGroupStroke(Stroke stroke)
Sets the stroke of the line between the minimum value and the maximum value and sends a RendererChangeEvent to all registered
listeners. |
void |
setMaxIcon(Icon icon)
Sets the icon displayed for the maximum value data item within each category and sends a RendererChangeEvent to all registered
listeners. |
void |
setMinIcon(Icon icon)
Sets the icon displayed for the minimum value data item within each category and sends a RendererChangeEvent to all registered
listeners. |
void |
setObjectIcon(Icon icon)
Sets the icon drawn for each data item and sends a RendererChangeEvent to all registered listeners. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinMaxCategoryRenderer()
| Method Detail |
|---|
public boolean isDrawLines()
setDrawLines(boolean)public void setDrawLines(boolean draw)
RendererChangeEvent to
all registered listeners.
draw - the new value of the flag.isDrawLines()public Paint getGroupPaint()
null).setGroupPaint(Paint)public void setGroupPaint(Paint paint)
RendererChangeEvent to
all registered listeners.
paint - the paint (null not permitted).getGroupPaint()public Stroke getGroupStroke()
null).setGroupStroke(Stroke)public void setGroupStroke(Stroke stroke)
RendererChangeEvent to all registered
listeners.
stroke - the new stroke (null not permitted).public Icon getObjectIcon()
null).setObjectIcon(Icon)public void setObjectIcon(Icon icon)
RendererChangeEvent to all registered listeners.
icon - the icon.getObjectIcon()public Icon getMaxIcon()
null).setMaxIcon(Icon)public void setMaxIcon(Icon icon)
RendererChangeEvent to all registered
listeners.
icon - the icon (null not permitted).getMaxIcon()public Icon getMinIcon()
null).setMinIcon(Icon)public void setMinIcon(Icon icon)
RendererChangeEvent to all registered
listeners.
icon - the icon (null not permitted).getMinIcon()
public void drawItem(Graphics2D g2,
CategoryItemRendererState state,
Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset dataset,
int row,
int column,
int pass)
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 dataset.row - the row index (zero-based).column - the column index (zero-based).pass - the pass index.public boolean equals(Object obj)
equals in class AbstractCategoryItemRendererobj - the object (null permitted).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||