Class MeterInterval
java.lang.Object
org.jfree.chart.plot.MeterInterval
- All Implemented Interfaces:
Serializable
An interval to be highlighted on a
MeterPlot. Instances of this
class are immutable.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PaintThe background paint for the interval.private StringThe interval label.private PaintThe outline paint (used for the arc marking the interval).private StrokeThe outline stroke (used for the arc marking the interval).private RangeThe interval range.private static final longFor serialization. -
Constructor Summary
ConstructorsConstructorDescriptionMeterInterval(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
Modifier and TypeMethodDescriptionbooleanChecks this instance for equality with an arbitrary object.Returns the background paint.getLabel()Returns the label.Returns the outline paint.Returns the outline stroke.getRange()Returns the range.private voidreadObject(ObjectInputStream stream) Provides serialization support.private voidwriteObject(ObjectOutputStream stream) Provides serialization support.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
label
The interval label. -
range
The interval range. -
outlinePaint
The outline paint (used for the arc marking the interval). -
outlineStroke
The outline stroke (used for the arc marking the interval). -
backgroundPaint
The background paint for the interval.
-
-
Constructor Details
-
MeterInterval
-
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 Details
-
getLabel
-
getRange
-
getBackgroundPaint
Returns the background paint. Ifnull, the background should remain unfilled.- Returns:
- The background paint (possibly
null).
-
getOutlinePaint
Returns the outline paint.- Returns:
- The outline paint (possibly
null).
-
getOutlineStroke
Returns the outline stroke.- Returns:
- The outline stroke (possibly
null).
-
equals
-
writeObject
Provides serialization support.- Parameters:
stream- the output stream.- Throws:
IOException- if there is an I/O error.
-
readObject
Provides serialization support.- Parameters:
stream- the input stream.- Throws:
IOException- if there is an I/O error.ClassNotFoundException- if there is a classpath problem.
-