| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.jfree.chart.renderer.AbstractRendererorg.jfree.chart.renderer.category.AbstractCategoryItemRendererorg.jfree.chart.renderer.category.MinMaxCategoryRendererpublic class MinMaxCategoryRendererextends AbstractCategoryItemRendererobjectIcon and
a line from the maximum value to the minimum value.
For use with the CategoryPlot class.
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 | |
| |
Method Summary | |
void |
|
boolean |
|
Paint |
|
Stroke |
|
Icon |
|
Icon |
|
Icon |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
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.
- Specified by:
- drawItem in interface CategoryItemRenderer
- 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 dataset.row- the row index (zero-based).column- the column index (zero-based).pass- the pass index.
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object. The icon fields are NOT included in the test, so this implementation is a little weak.
- Overrides:
- equals in interface AbstractCategoryItemRenderer
- Parameters:
obj- the object (nullpermitted).
- Returns:
- A boolean.
- Since:
- 1.0.7
public Paint getGroupPaint()
Returns the paint used to draw the line between the minimum and maximum value items in each category.
- Returns:
- The paint (never
null).
- See Also:
setGroupPaint(Paint)
public Stroke getGroupStroke()
Returns the stroke used to draw the line between the minimum and maximum value items in each category.
- Returns:
- The stroke (never
null).
- See Also:
setGroupStroke(Stroke)
public Icon getMaxIcon()
Returns the icon displayed for the maximum value data item within each category.
- Returns:
- The icon (never
null).
- See Also:
setMaxIcon(Icon)
public Icon getMinIcon()
Returns the icon displayed for the minimum value data item within each category.
- Returns:
- The icon (never
null).
- See Also:
setMinIcon(Icon)
public Icon getObjectIcon()
Returns the icon drawn for each data item.
- Returns:
- The icon (never
null).
- See Also:
setObjectIcon(Icon)
public boolean isDrawLines()
Gets whether or not lines are drawn between category points.
- Returns:
- boolean true if line will be drawn between sequenced categories, otherwise false.
- See Also:
setDrawLines(boolean)
public void setDrawLines(boolean draw)
Sets the flag that controls whether or not lines are drawn to connect the items within a series and sends aRendererChangeEventto all registered listeners.
- Parameters:
draw- the new value of the flag.
- See Also:
isDrawLines()
public void setGroupPaint(Paint paint)
Sets the paint used to draw the line between the minimum and maximum value items in each category and sends aRendererChangeEventto all registered listeners.
- Parameters:
paint- the paint (nullnot permitted).
- See Also:
getGroupPaint()
public void setGroupStroke(Stroke stroke)
Sets the stroke of the line between the minimum value and the maximum value and sends aRendererChangeEventto all registered listeners.
- Parameters:
stroke- the new stroke (nullnot permitted).
public void setMaxIcon(Icon icon)
Sets the icon displayed for the maximum value data item within each category and sends aRendererChangeEventto all registered listeners.
- Parameters:
icon- the icon (nullnot permitted).
- See Also:
getMaxIcon()
public void setMinIcon(Icon icon)
Sets the icon displayed for the minimum value data item within each category and sends aRendererChangeEventto all registered listeners.
- Parameters:
icon- the icon (nullnot permitted).
- See Also:
getMinIcon()
public void setObjectIcon(Icon icon)
Sets the icon drawn for each data item and sends aRendererChangeEventto all registered listeners.
- Parameters:
icon- the icon.
- See Also:
getObjectIcon()