org.jfree.chart.plot
Class MeterInterval
java.lang.Object
org.jfree.chart.plot.MeterInterval
- Serializable
extends java.lang.Object
implements Serializable
An interval to be highlighted on a
MeterPlot
. Instances of this
class are immutable.
MeterInterval(String label, Range range) - Creates a new interval.
|
MeterInterval(String label, Range range, Paint outlinePaint, Stroke outlineStroke, Paint backgroundPaint) - Creates a new interval.
|
MeterInterval
public MeterInterval(String label,
Range range)
Creates a new interval.
label
- the label (null
not permitted).range
- the range (null
not permitted).
MeterInterval
public MeterInterval(String label,
Range range,
Paint outlinePaint,
Stroke outlineStroke,
Paint backgroundPaint)
Creates a new interval.
label
- the label (null
not permitted).range
- the range (null
not permitted).outlinePaint
- the outline paint (null
permitted).outlineStroke
- the outline stroke (null
permitted).backgroundPaint
- the background paint (null
permitted).
equals
public boolean equals(Object obj)
Checks this instance for equality with an arbitrary object.
obj
- the object (null
permitted).
getBackgroundPaint
public Paint getBackgroundPaint()
Returns the background paint. If null
, the background
should remain unfilled.
- The background paint (possibly
null
).
getLabel
public String getLabel()
Returns the label.
getOutlinePaint
public Paint getOutlinePaint()
Returns the outline paint.
- The outline paint (possibly
null
).
getOutlineStroke
public Stroke getOutlineStroke()
Returns the outline stroke.
- The outline stroke (possibly
null
).