public abstract class DesireColorer extends Object implements GTUColorer, Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
GTUColorer.LegendEntry| Constructor and Description |
|---|
DesireColorer() |
| Modifier and Type | Method and Description |
|---|---|
protected Color |
getColor(double dLeft,
double dRight)
Returns a color based on desire.
|
List<GTUColorer.LegendEntry> |
getLegend()
Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).
|
protected static final Color NA
public final List<GTUColorer.LegendEntry> getLegend()
getLegend in interface GTUColorerprotected final Color getColor(double dLeft, double dRight)
dLeft - double; left desiredRight - double; right desireCopyright © 2014–2019 Delft University of Technology. All rights reserved.