public class DesiredHeadwayColorer 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| Modifier and Type | Field and Description |
|---|---|
Duration |
tMax
Maximum value on input scale.
|
Duration |
tMin
Minimum value on input scale.
|
protected static Color |
UNKNOWN
Unknown color.
|
| Constructor and Description |
|---|
DesiredHeadwayColorer()
Constructor using Tmin and Tmax parameters.
|
DesiredHeadwayColorer(Duration tMin,
Duration tMax)
Constructor using input Tmin and Tmax.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(GTU gtu)
Get the color, based on the Drawable object.
|
List<GTUColorer.LegendEntry> |
getLegend()
Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).
|
String |
toString() |
public final Duration tMin
public final Duration tMax
protected static final Color UNKNOWN
public DesiredHeadwayColorer()
public final List<GTUColorer.LegendEntry> getLegend()
getLegend in interface GTUColorerCopyright © 2014–2019 Delft University of Technology. All rights reserved.