org.jfree.chart.renderer
Class GrayPaintScale
java.lang.Objectorg.jfree.chart.renderer.GrayPaintScale
- PaintScale, PublicCloneable, Serializable
extends java.lang.Object
implements PaintScale, PublicCloneable, Serializable
A paint scale that returns shades of gray.
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.
|
Object | clone()- Returns a clone of this
GrayPaintScale instance.
|
boolean | equals(Object obj)- Tests this
GrayPaintScale instance for equality with an
arbitrary object.
|
double | getLowerBound()- Returns the lower bound.
|
Paint | getPaint(double value)- Returns a paint for the specified value.
|
double | getUpperBound()- Returns the upper bound.
|
GrayPaintScale
public GrayPaintScale()
Creates a new GrayPaintScale instance with default values.
GrayPaintScale
public GrayPaintScale(double lowerBound,
double upperBound) Creates a new paint scale for values in the specified range.
lowerBound - the lower bound.upperBound - the upper bound.
clone
public Object clone()
throws CloneNotSupportedException Returns a clone of this GrayPaintScale instance.
equals
public boolean equals(Object obj)
Tests this
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;
obj - the object (null permitted).
getPaint
public Paint getPaint(double value)
Returns a paint for the specified value.
- getPaint in interface PaintScale
value - the value (must be within the range specified by the
lower and upper bounds for the scale).
- A paint for the specified value.