public class

MeterInterval

extends Object
implements Serializable
java.lang.Object
   ↳ org.jfree.chart.plot.MeterInterval

Class Overview

An interval to be highlighted on a MeterPlot. Instances of this class are immutable.

Summary

Public Constructors
MeterInterval(String label, Range range)
Creates a new interval.
MeterInterval(String label, Range range, Paint outlinePaint, Stroke outlineStroke, Paint backgroundPaint)
Creates a new interval.
Public Methods
boolean equals(Object obj)
Checks this instance for equality with an arbitrary object.
Paint getBackgroundPaint()
Returns the background paint.
String getLabel()
Returns the label.
Paint getOutlinePaint()
Returns the outline paint.
Stroke getOutlineStroke()
Returns the outline stroke.
Range getRange()
Returns the range.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MeterInterval (String label, Range range)

Creates a new interval.

Parameters
label the label (null not permitted).
range the range (null not permitted).

public MeterInterval (String label, Range range, Paint outlinePaint, Stroke outlineStroke, Paint backgroundPaint)

Creates a new interval.

Parameters
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).

Public Methods

public boolean equals (Object obj)

Checks this instance for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public Paint getBackgroundPaint ()

Returns the background paint. If null, the background should remain unfilled.

Returns
  • The background paint (possibly null).

public String getLabel ()

Returns the label.

Returns
  • The label (never null).

public Paint getOutlinePaint ()

Returns the outline paint.

Returns
  • The outline paint (possibly null).

public Stroke getOutlineStroke ()

Returns the outline stroke.

Returns
  • The outline stroke (possibly null).

public Range getRange ()

Returns the range.

Returns
  • The range (never null).