| java.lang.Object org.jfree.chart.renderer.LookupPaintScale
LookupPaintScale | public class LookupPaintScale implements PaintScale,PublicCloneable,Serializable(Code) | | A paint scale that uses a lookup table to associate paint instances
with data value ranges.
since: 1.0.4 |
Constructor Summary | |
public | LookupPaintScale() Creates a new paint scale. | public | LookupPaintScale(double lowerBound, double upperBound, Paint defaultPaint) Creates a new paint scale with the specified default paint. |
Method Summary | |
public void | add(Number value, Paint paint) Adds an entry to the lookup table. | public void | add(double value, Paint paint) Adds an entry to the lookup table. | public Object | clone() Returns a clone of the instance. | public boolean | equals(Object obj) Tests this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public Paint | getDefaultPaint() Returns the default paint (never null ). | public double | getLowerBound() Returns the lower bound. | public Paint | getPaint(double value) Returns the paint associated with the specified value.
Parameters: value - the value. | public double | getUpperBound() Returns the upper bound. |
LookupPaintScale | public LookupPaintScale()(Code) | | Creates a new paint scale.
|
LookupPaintScale | public LookupPaintScale(double lowerBound, double upperBound, Paint defaultPaint)(Code) | | Creates a new paint scale with the specified default paint.
Parameters: lowerBound - the lower bound. Parameters: upperBound - the upper bound. Parameters: defaultPaint - the default paint (null not permitted). |
add | public void add(Number value, Paint paint)(Code) | | Adds an entry to the lookup table. Any values from n up
to but not including the next value in the table take on the specified
paint .
Parameters: value - the data value (null not permitted). Parameters: paint - the paint.LookupPaintScale.add(double,Paint) |
add | public void add(double value, Paint paint)(Code) | | Adds an entry to the lookup table. Any values from n up
to but not including the next value in the table take on the specified
paint .
Parameters: value - the data value. Parameters: paint - the paint. since: 1.0.6 |
equals | public boolean equals(Object obj)(Code) | | Tests this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getDefaultPaint | public Paint getDefaultPaint()(Code) | | Returns the default paint (never null ).
The default paint. |
|
|