|
|||||||||
| Home >> All >> org >> jfree >> chart >> renderer >> [ category overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfree.chart.renderer.category
Class MinMaxCategoryRenderer

java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
org.jfree.chart.renderer.category.MinMaxCategoryRenderer
- All Implemented Interfaces:
- CategoryItemRenderer, java.lang.Cloneable, org.jfree.chart.LegendItemSource, org.jfree.util.PublicCloneable, java.io.Serializable
- public class MinMaxCategoryRenderer
- extends AbstractCategoryItemRenderer
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 org.jfree.chart.plot.CategoryPlot class.
| Field Summary | |
private java.awt.Paint |
groupPaint
The paint of the line between the minimum value and the maximum value. |
private java.awt.Stroke |
groupStroke
The stroke of the line between the minimum value and the maximum value. |
private int |
lastCategory
The last category. |
private double |
max
The maximum. |
private javax.swing.Icon |
maxIcon
The icon used to indicate the maximum value. |
private java.lang.Number |
maxValue
The maximum number. |
private double |
min
The minimum. |
private javax.swing.Icon |
minIcon
The icon used to indicate the minimum value. |
private java.lang.Number |
minValue
The minimum number. |
private javax.swing.Icon |
objectIcon
The icon used to indicate the values. |
private boolean |
plotLines
A flag indicating whether or not lines are drawn between XY points. |
private static long |
serialVersionUID
For serialization. |
| Fields inherited from class org.jfree.chart.renderer.category.AbstractCategoryItemRenderer |
|
| 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(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.plot.CategoryPlot plot,
org.jfree.chart.axis.CategoryAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.data.category.CategoryDataset dataset,
int row,
int column,
int pass)
Draw a single data item. |
java.awt.Paint |
getGroupPaint()
Gets the paint of the line between the minimum value and the maximum value. |
java.awt.Stroke |
getGroupStroke()
Gets the stroke of the line between the minimum value and the maximum value. |
private javax.swing.Icon |
getIcon(java.awt.Shape shape,
boolean fill,
boolean outline)
Returns an icon. |
private javax.swing.Icon |
getIcon(java.awt.Shape shape,
java.awt.Paint fillPaint,
java.awt.Paint outlinePaint)
Returns an icon. |
javax.swing.Icon |
getMaxIcone()
Gets the icon used to indicate the maximum value. |
javax.swing.Icon |
getMinIcon()
Gets the icon used to indicate the minimum value. |
javax.swing.Icon |
getObjectIcon()
Gets the icon used to indicate the values. |
boolean |
isDrawLines()
Gets whether or not lines are drawn between category points. |
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support. |
void |
setDrawLines(boolean drawLines)
Sets whether or not lines are drawn between category points. |
void |
setGroupPaint(java.awt.Paint groupPaint)
Sets the paint of the line between the minimum value and the maximum value. |
void |
setGroupStroke(java.awt.Stroke groupStroke)
Sets the stroke of the line between the minimum value and the maximum value. |
void |
setMaxIcon(javax.swing.Icon maxIcon)
Sets the icon used to indicate the maximum value. |
void |
setMinIcon(javax.swing.Icon minIcon)
Sets the icon used to indicate the minimum value. |
void |
setObjectIcon(javax.swing.Icon objectIcon)
Sets the icon used to indicate the values. |
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- For serialization.
- See Also:
- Constant Field Values
plotLines
private boolean plotLines
- A flag indicating whether or not lines are drawn between XY points.
groupPaint
private transient java.awt.Paint groupPaint
- The paint of the line between the minimum value and the maximum value.
groupStroke
private transient java.awt.Stroke groupStroke
- The stroke of the line between the minimum value and the maximum value.
minIcon
private transient javax.swing.Icon minIcon
- The icon used to indicate the minimum value.
maxIcon
private transient javax.swing.Icon maxIcon
- The icon used to indicate the maximum value.
objectIcon
private transient javax.swing.Icon objectIcon
- The icon used to indicate the values.
lastCategory
private int lastCategory
- The last category.
min
private double min
- The minimum.
max
private double max
- The maximum.
minValue
private java.lang.Number minValue
- The minimum number.
maxValue
private java.lang.Number maxValue
- The maximum number.
| Constructor Detail |
MinMaxCategoryRenderer
public MinMaxCategoryRenderer()
- Default constructor.
| Method Detail |
drawItem
public void drawItem(java.awt.Graphics2D g2, CategoryItemRendererState state, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.plot.CategoryPlot plot, org.jfree.chart.axis.CategoryAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.data.category.CategoryDataset dataset, int row, int column, int pass)
- Draw a single data item.
setDrawLines
public void setDrawLines(boolean drawLines)
- Sets whether or not lines are drawn between category points.
isDrawLines
public boolean isDrawLines()
- Gets whether or not lines are drawn between category points.
setGroupPaint
public void setGroupPaint(java.awt.Paint groupPaint)
- Sets the paint of the line between the minimum value and the maximum
value.
getGroupPaint
public java.awt.Paint getGroupPaint()
- Gets the paint of the line between the minimum value and the maximum
value.
setGroupStroke
public void setGroupStroke(java.awt.Stroke groupStroke)
- Sets the stroke of the line between the minimum value and the maximum
value.
getGroupStroke
public java.awt.Stroke getGroupStroke()
- Gets the stroke of the line between the minimum value and the maximum
value.
setObjectIcon
public void setObjectIcon(javax.swing.Icon objectIcon)
- Sets the icon used to indicate the values.
getObjectIcon
public javax.swing.Icon getObjectIcon()
- Gets the icon used to indicate the values.
setMaxIcon
public void setMaxIcon(javax.swing.Icon maxIcon)
- Sets the icon used to indicate the maximum value.
getMaxIcone
public javax.swing.Icon getMaxIcone()
- Gets the icon used to indicate the maximum value.
setMinIcon
public void setMinIcon(javax.swing.Icon minIcon)
- Sets the icon used to indicate the minimum value.
getMinIcon
public javax.swing.Icon getMinIcon()
- Gets the icon used to indicate the minimum value.
getIcon
private javax.swing.Icon getIcon(java.awt.Shape shape, java.awt.Paint fillPaint, java.awt.Paint outlinePaint)
- Returns an icon.
getIcon
private javax.swing.Icon getIcon(java.awt.Shape shape, boolean fill, boolean outline)
- Returns an icon.
writeObject
private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException
- Provides serialization support.
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
- Provides serialization support.
|
|||||||||
| Home >> All >> org >> jfree >> chart >> renderer >> [ category overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC