public class GrayPaintScale extends java.lang.Object implements PaintScale, org.jfree.util.PublicCloneable, java.io.Serializable
| Constructor and Description |
|---|
GrayPaintScale()
Creates a new
GrayPaintScale instance with default values. |
GrayPaintScale(double lowerBound,
double upperBound)
Creates a new paint scale for values in the specified range.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of this
GrayPaintScale instance. |
boolean |
equals(java.lang.Object obj)
Tests this
GrayPaintScale instance for equality with an
arbitrary object. |
double |
getLowerBound()
Returns the lower bound.
|
java.awt.Paint |
getPaint(double value)
Returns a paint for the specified value.
|
double |
getUpperBound()
Returns the upper bound.
|
public GrayPaintScale()
GrayPaintScale instance with default values.public GrayPaintScale(double lowerBound, double upperBound)
lowerBound - the lower bound.upperBound - the upper bound.java.lang.IllegalArgumentException - if lowerBound is not
less than upperBound.public double getLowerBound()
getLowerBound in interface PaintScalegetUpperBound()public double getUpperBound()
getUpperBound in interface PaintScalegetLowerBound()public java.awt.Paint getPaint(double value)
getPaint in interface PaintScalevalue - the value (must be within the range specified by the
lower and upper bounds for the scale).public boolean equals(java.lang.Object obj)
GrayPaintScale instance for equality with an
arbitrary object. This method returns true if and only
if:
obj is not null;obj is an instance of GrayPaintScale;equals in class java.lang.Objectobj - the object (null permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
GrayPaintScale instance.clone in interface org.jfree.util.PublicCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if there is a problem cloning this
instance.