com.jrefinery.chart
Class MeterLegend
java.lang.Object
com.jrefinery.chart.Legend
com.jrefinery.chart.StandardLegend
com.jrefinery.chart.MeterLegend
public class MeterLegend
- extends StandardLegend
|
Constructor Summary |
MeterLegend(JFreeChart chart,
int outerGap,
Spacer innerGap,
java.awt.Paint backgroundPaint,
java.awt.Stroke outlineStroke,
java.awt.Paint outlinePaint,
java.awt.Font itemFont,
java.awt.Paint itemPaint,
java.lang.String legendText)
|
MeterLegend(JFreeChart chart,
java.lang.String legendText)
|
|
Method Summary |
java.awt.geom.Rectangle2D |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D available)
Draws the legend on a Java 2D graphics device (such as the screen or a printer). |
protected java.awt.geom.Rectangle2D |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D available,
boolean horizontal,
boolean inverted)
Draws the legend. |
java.lang.String |
getLegendText()
|
void |
setLegendText(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
legendText
protected java.lang.String legendText
showNormal
public boolean showNormal
showCritical
public boolean showCritical
showWarning
public boolean showWarning
MeterLegend
public MeterLegend(JFreeChart chart,
java.lang.String legendText)
MeterLegend
public MeterLegend(JFreeChart chart,
int outerGap,
Spacer innerGap,
java.awt.Paint backgroundPaint,
java.awt.Stroke outlineStroke,
java.awt.Paint outlinePaint,
java.awt.Font itemFont,
java.awt.Paint itemPaint,
java.lang.String legendText)
getLegendText
public java.lang.String getLegendText()
setLegendText
public void setLegendText(java.lang.String text)
draw
public java.awt.geom.Rectangle2D draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D available)
- Description copied from class:
StandardLegend
- Draws the legend on a Java 2D graphics device (such as the screen or a printer).
- Overrides:
draw in class StandardLegend
- Parameters:
g2 - The graphics device.available - The area within which the legend, and afterwards the plot, should be drawn.
- Returns:
- The area used by the legend.
draw
protected java.awt.geom.Rectangle2D draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D available,
boolean horizontal,
boolean inverted)
- Description copied from class:
StandardLegend
- Draws the legend.
- Overrides:
draw in class StandardLegend
available - The area available for drawing the chart.horizontal - A flag indicating whether the legend items are laid out horizontally.inverted - ???
- Returns:
- ???
Copyright © 2003 MBARI.
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.