public class ContinuousColorPaintScale extends Object implements org.jfree.chart.renderer.PaintScale, Serializable
 Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
 $LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
 initial version Jul 30, 2014 
| Constructor and Description | 
|---|
ContinuousColorPaintScale(String format,
                         double[] bounds,
                         Color[] boundColors)
Create a new ContinuousColorPaintScale. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getFormat()
Retrieve the format string. 
 | 
double | 
getLowerBound() | 
Paint | 
getPaint(double value) | 
double | 
getUpperBound() | 
String | 
toString() | 
ContinuousColorPaintScale(String format, double[] bounds, Color[] boundColors) throws org.opentrafficsim.simulationengine.OTSSimulationException
format - Format string to render the value under the mouse in a human readable formatbounds - Double[] array of boundary values (all values must be distinct and the number of values must be >= 2)boundColors - Color[] array of the colors to use at the boundary values (must have same size as bounds)org.opentrafficsim.simulationengine.OTSSimulationException - when bounds are wrongpublic final double getLowerBound()
getLowerBound in interface org.jfree.chart.renderer.PaintScalepublic final Paint getPaint(double value)
getPaint in interface org.jfree.chart.renderer.PaintScalepublic final double getUpperBound()
getUpperBound in interface org.jfree.chart.renderer.PaintScalepublic final String getFormat()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.