public final class InverseGrayScale extends Object implements org.jfree.chart.renderer.PaintScale, org.jfree.util.PublicCloneable, Serializable
Constructor and Description |
---|
InverseGrayScale()
Creates a new
GrayPaintScale instance with default values. |
InverseGrayScale(double lowerBound,
double upperBound)
Creates a new paint scale for values in the specified range.
|
InverseGrayScale(double lowerBound,
double upperBound,
int alpha)
Creates a new paint scale for values in the specified range.
|
Modifier and Type | Method and Description |
---|---|
InverseGrayScale |
clone()
Returns a clone of this
GrayPaintScale instance. |
boolean |
equals(Object obj) |
int |
getAlpha()
Returns the alpha transparency that was specified in the constructor.
|
double |
getLowerBound()
Returns the lower bound.
|
Paint |
getPaint(double value)
Returns a paint for the specified value.
|
double |
getUpperBound()
Returns the upper bound.
|
int |
hashCode() |
public InverseGrayScale()
GrayPaintScale
instance with default values.public InverseGrayScale(double lowerBound, double upperBound)
lowerBound
- the lower bound.upperBound
- the upper bound.IllegalArgumentException
- if lowerBound
is not
less than upperBound
.public InverseGrayScale(double lowerBound, double upperBound, int alpha)
lowerBound
- the lower bound.upperBound
- the upper bound.alpha
- the alpha transparency (0-255).IllegalArgumentException
- if lowerBound
is not
less than upperBound
, or alpha
is not in
the range 0 to 255.public double getLowerBound()
getLowerBound
in interface org.jfree.chart.renderer.PaintScale
getUpperBound()
public double getUpperBound()
getUpperBound
in interface org.jfree.chart.renderer.PaintScale
getLowerBound()
public int getAlpha()
public Paint getPaint(double value)
getPaint
in interface org.jfree.chart.renderer.PaintScale
value
- the value (must be within the range specified by the
lower and upper bounds for the scale).public InverseGrayScale clone()
GrayPaintScale
instance.clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- if there is a problem cloning this
instance.Copyright © 2014. All rights reserved.