public class LookupPaintScale extends Object implements PaintScale, org.jfree.util.PublicCloneable, Serializable
Constructor and Description |
---|
LookupPaintScale()
Creates a new paint scale.
|
LookupPaintScale(double lowerBound,
double upperBound,
Paint defaultPaint)
Creates a new paint scale with the specified default paint.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double value,
Paint paint)
Adds an entry to the lookup table.
|
void |
add(Number value,
Paint paint)
Deprecated.
Use
add(double, Paint) . |
Object |
clone()
Returns a clone of the instance.
|
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
Paint |
getDefaultPaint()
Returns the default paint (never
null ). |
double |
getLowerBound()
Returns the lower bound.
|
Paint |
getPaint(double value)
Returns the paint associated with the specified value.
|
double |
getUpperBound()
Returns the upper bound.
|
public LookupPaintScale()
public LookupPaintScale(double lowerBound, double upperBound, Paint defaultPaint)
lowerBound
- the lower bound.upperBound
- the upper bound.defaultPaint
- the default paint (null
not
permitted).public Paint getDefaultPaint()
null
).public double getLowerBound()
getLowerBound
in interface PaintScale
getUpperBound()
public double getUpperBound()
getUpperBound
in interface PaintScale
getLowerBound()
public void add(Number value, Paint paint)
add(double, Paint)
.n
up
to but not including the next value in the table take on the specified
paint
.value
- the data value (null
not permitted).paint
- the paint.public void add(double value, Paint paint)
n
up
to but not including the next value in the table take on the specified
paint
.value
- the data value.paint
- the paint.public Paint getPaint(double value)
getPaint
in interface PaintScale
value
- the value.getDefaultPaint()
public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- if there is a problem cloning the
instance.Jas4pp 1.5 © Java Analysis Studio for Particle Physics