public class MeterInterval
extends java.lang.Object
implements java.io.Serializable
MeterPlot. Instances of this
class are immutable.| Modifier and Type | Field and Description |
|---|---|
private java.awt.Paint |
backgroundPaint
The background paint for the interval.
|
private java.lang.String |
label
The interval label.
|
private java.awt.Paint |
outlinePaint
The outline paint (used for the arc marking the interval).
|
private java.awt.Stroke |
outlineStroke
The outline stroke (used for the arc marking the interval).
|
private Range |
range
The interval range.
|
private static long |
serialVersionUID
For serialization.
|
| Constructor and Description |
|---|
MeterInterval(java.lang.String label,
Range range)
Creates a new interval.
|
MeterInterval(java.lang.String label,
Range range,
java.awt.Paint outlinePaint,
java.awt.Stroke outlineStroke,
java.awt.Paint backgroundPaint)
Creates a new interval.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks this instance for equality with an arbitrary object.
|
java.awt.Paint |
getBackgroundPaint()
Returns the background paint.
|
java.lang.String |
getLabel()
Returns the label.
|
java.awt.Paint |
getOutlinePaint()
Returns the outline paint.
|
java.awt.Stroke |
getOutlineStroke()
Returns the outline stroke.
|
Range |
getRange()
Returns the range.
|
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
|
private static final long serialVersionUID
private java.lang.String label
private Range range
private transient java.awt.Paint outlinePaint
private transient java.awt.Stroke outlineStroke
private transient java.awt.Paint backgroundPaint
public MeterInterval(java.lang.String label,
Range range)
label - the label (null not permitted).range - the range (null not permitted).public MeterInterval(java.lang.String label,
Range range,
java.awt.Paint outlinePaint,
java.awt.Stroke outlineStroke,
java.awt.Paint backgroundPaint)
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 java.lang.String getLabel()
null).public Range getRange()
null).public java.awt.Paint getBackgroundPaint()
null, the background
should remain unfilled.null).public java.awt.Paint getOutlinePaint()
null).public java.awt.Stroke getOutlineStroke()
null).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).private void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
stream - the output stream.java.io.IOException - if there is an I/O error.private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
stream - the input stream.java.io.IOException - if there is an I/O error.java.lang.ClassNotFoundException - if there is a classpath problem.