public class DesiredHeadwayColorer extends Object implements org.opentrafficsim.core.gtu.animation.GTUColorer, 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.
| Modifier and Type | Field and Description |
|---|---|
org.djunits.value.vdouble.scalar.Duration |
tMax
Maximum value on input scale.
|
org.djunits.value.vdouble.scalar.Duration |
tMin
Minimum value on input scale.
|
protected static Color |
UNKNOWN
Unknown color.
|
| Constructor and Description |
|---|
DesiredHeadwayColorer()
Constructor using Tmin and Tmax parameters.
|
DesiredHeadwayColorer(org.djunits.value.vdouble.scalar.Duration tMin,
org.djunits.value.vdouble.scalar.Duration tMax)
Constructor using input Tmin and Tmax.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(org.opentrafficsim.core.gtu.GTU gtu) |
List<org.opentrafficsim.core.gtu.animation.GTUColorer.LegendEntry> |
getLegend() |
String |
toString() |
public final org.djunits.value.vdouble.scalar.Duration tMin
public final org.djunits.value.vdouble.scalar.Duration tMax
protected static final Color UNKNOWN
public DesiredHeadwayColorer()
public DesiredHeadwayColorer(org.djunits.value.vdouble.scalar.Duration tMin,
org.djunits.value.vdouble.scalar.Duration tMax)
tMin - Duration; minimum headwaytMax - Duration; maximum headwaypublic final Color getColor(org.opentrafficsim.core.gtu.GTU gtu)
getColor in interface org.opentrafficsim.core.gtu.animation.GTUColorerpublic final List<org.opentrafficsim.core.gtu.animation.GTUColorer.LegendEntry> getLegend()
getLegend in interface org.opentrafficsim.core.gtu.animation.GTUColorerCopyright © 2014–2018 Delft University of Technology. All rights reserved.