|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.renderer.GrayPaintScale
public class GrayPaintScale
A paint scale that returns shades of gray.
Constructor Summary | |
---|---|
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. |
|
GrayPaintScale(double lowerBound,
double upperBound,
int alpha)
Creates a new paint scale for values in the specified range. |
Method Summary | |
---|---|
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. |
int |
getAlpha()
Returns the alpha transparency that was specified in the constructor. |
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. |
int |
hashCode()
Returns a hash code for this instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 GrayPaintScale(double lowerBound, double upperBound, int alpha)
lowerBound
- the lower bound.upperBound
- the upper bound.alpha
- the alpha transparency (0-255).
java.lang.IllegalArgumentException
- if lowerBound
is not
less than upperBound
, or alpha
is not in
the range 0 to 255.Method Detail |
---|
public double getLowerBound()
getLowerBound
in interface PaintScale
getUpperBound()
public double getUpperBound()
getUpperBound
in interface PaintScale
getLowerBound()
public int getAlpha()
public java.awt.Paint getPaint(double value)
getPaint
in interface PaintScale
value
- 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.Object
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
GrayPaintScale
instance.
clone
in interface org.jfree.util.PublicCloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if there is a problem cloning this
instance.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |