public class LookupPaintScale extends Object implements PaintScale, 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.
|
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 PaintScalegetUpperBound()public double getUpperBound()
getUpperBound in interface PaintScalegetLowerBound()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 PaintScalevalue - the value.getDefaultPaint()public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone in interface PublicCloneableclone in class ObjectCloneNotSupportedException - if there is a problem cloning the
instance.Copyright © 2001–2017 JFree.org. All rights reserved.