|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.chart.AbstractRenderer | +--com.jrefinery.chart.AbstractCategoryItemRenderer | +--com.jrefinery.chart.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.
Constructor Summary | |
MinMaxCategoryRenderer()
Default constructor. |
Method Summary | |
void |
drawCategoryItem(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
ValueAxis axis,
CategoryDataset data,
int series,
java.lang.Object category,
int categoryIndex,
java.lang.Object previousCategory)
Draw a single data item. |
void |
drawRangeMarker(java.awt.Graphics2D g2,
CategoryPlot plot,
ValueAxis axis,
Marker marker,
java.awt.geom.Rectangle2D axisDataArea,
java.awt.Shape dataClipRegion)
Draws a horizontal line across the chart to represent the marker. |
java.awt.geom.Rectangle2D |
getAxisArea(java.awt.geom.Rectangle2D plotArea)
Returns the area that the axes must fit into. |
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. |
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. |
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. |
Methods inherited from class com.jrefinery.chart.AbstractCategoryItemRenderer |
drawPlotBackground, getCategoriesPaint, getCategoryPaint, getDataClipRegion, getLegendItem, getPlot, getToolTipGenerator, getURLGenerator, getUseCategoriesPaint, initialise, isStacked, setCategoriesPaint, setPlot, setToolTipGenerator, setURLGenerator |
Methods inherited from class com.jrefinery.chart.AbstractRenderer |
addPropertyChangeListener, firePropertyChanged, getInfo, removePropertyChangeListener, setInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MinMaxCategoryRenderer()
Method Detail |
public java.awt.geom.Rectangle2D getAxisArea(java.awt.geom.Rectangle2D plotArea)
getAxisArea
in class AbstractCategoryItemRenderer
plotArea
- the plot area.public void drawCategoryItem(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, CategoryPlot plot, ValueAxis axis, CategoryDataset data, int series, java.lang.Object category, int categoryIndex, java.lang.Object previousCategory)
g2
- The graphics device.dataArea
- The area in which the data is drawn.plot
- The plot.axis
- The range axis.data
- The data.series
- The series number (zero-based index).category
- The category.categoryIndex
- The category number (zero-based index).previousCategory
- The previous category (will be null when the first category is
drawn).public void drawRangeMarker(java.awt.Graphics2D g2, CategoryPlot plot, ValueAxis axis, Marker marker, java.awt.geom.Rectangle2D axisDataArea, java.awt.Shape dataClipRegion)
g2
- The graphics device.plot
- The plot.axis
- The value axis.marker
- The marker line.axisDataArea
- The axis data area.dataClipRegion
- The data clip region.public void setDrawLines(boolean drawLines)
drawLines
- If tru, then line will be drawn between sequenced categories.public boolean isDrawLines()
public void setGroupPaint(java.awt.Paint groupPaint)
groupPaint
- The new paintpublic java.awt.Paint getGroupPaint()
public void setGroupStroke(java.awt.Stroke groupStroke)
groupStroke
- The new strokepublic java.awt.Stroke getGroupStroke()
public void setObjectIcon(javax.swing.Icon objectIcon)
objectIcon
- the icon.public javax.swing.Icon getObjectIcon()
public void setMaxIcon(javax.swing.Icon maxIcon)
maxIcon
- the max icon.public javax.swing.Icon getMaxIcone()
public void setMinIcon(javax.swing.Icon minIcon)
minIcon
- the min icon.public javax.swing.Icon getMinIcon()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |