com.jrefinery.chart
Class MeterLegend

java.lang.Object
  extended by com.jrefinery.chart.Legend
      extended by com.jrefinery.chart.StandardLegend
          extended by com.jrefinery.chart.MeterLegend

public class MeterLegend
extends StandardLegend


Field Summary
protected  java.lang.String legendText
           
 boolean showCritical
           
 boolean showNormal
           
 boolean showWarning
           
 
Fields inherited from class com.jrefinery.chart.StandardLegend
backgroundPaint, DEFAULT_FONT, innerGap, itemFont, itemPaint, outlinePaint, outlineStroke
 
Fields inherited from class com.jrefinery.chart.Legend
_anchor, chart, EAST, HORIZONTAL, INVERTED, listeners, NORTH, outerGap, SOUTH, WEST
 
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 com.jrefinery.chart.StandardLegend
getBackgroundPaint, getItemFont, getItemPaint, getOutlinePaint, getOutlineStroke, setBackgroundPaint, setItemFont, setItemPaint, setOutlinePaint, setOutlineStroke
 
Methods inherited from class com.jrefinery.chart.Legend
addChangeListener, createInstance, getAnchor, notifyListeners, removeChangeListener, setAnchor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

legendText

protected java.lang.String legendText

showNormal

public boolean showNormal

showCritical

public boolean showCritical

showWarning

public boolean showWarning
Constructor Detail

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)
Method Detail

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.