- java.lang.Object
-
- org.jfree.chart.plot.MeterInterval
-
- All Implemented Interfaces:
Serializable
public class MeterInterval extends Object implements Serializable
An interval to be highlighted on aMeterPlot. Instances of this class are immutable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeterInterval(String label, Range range)Creates a new interval.MeterInterval(String label, Range range, Paint outlinePaint, Stroke outlineStroke, Paint backgroundPaint)Creates a new interval.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Checks this instance for equality with an arbitrary object.PaintgetBackgroundPaint()Returns the background paint.StringgetLabel()Returns the label.PaintgetOutlinePaint()Returns the outline paint.StrokegetOutlineStroke()Returns the outline stroke.RangegetRange()Returns the range.
-
-
-
Constructor Detail
-
MeterInterval
public MeterInterval(String label, Range range)
Creates a new interval.- Parameters:
label- the label (nullnot permitted).range- the range (nullnot permitted).
-
MeterInterval
public MeterInterval(String label, Range range, Paint outlinePaint, Stroke outlineStroke, Paint backgroundPaint)
Creates a new interval.- Parameters:
label- the label (nullnot permitted).range- the range (nullnot permitted).outlinePaint- the outline paint (nullpermitted).outlineStroke- the outline stroke (nullpermitted).backgroundPaint- the background paint (nullpermitted).
-
-
Method Detail
-
getBackgroundPaint
public Paint getBackgroundPaint()
Returns the background paint. Ifnull, the background should remain unfilled.- Returns:
- The background paint (possibly
null).
-
getOutlinePaint
public Paint getOutlinePaint()
Returns the outline paint.- Returns:
- The outline paint (possibly
null).
-
getOutlineStroke
public Stroke getOutlineStroke()
Returns the outline stroke.- Returns:
- The outline stroke (possibly
null).
-
-