public class DesiredSpeedColorer extends Object implements org.opentrafficsim.core.gtu.animation.GTUColorer, Serializable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
DesiredSpeedColorer(org.djunits.value.vdouble.scalar.Speed minimumSpeed,
org.djunits.value.vdouble.scalar.Speed maximumSpeed)
Construct a new SpeedGTUColorer.
|
| 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 DesiredSpeedColorer(org.djunits.value.vdouble.scalar.Speed minimumSpeed,
org.djunits.value.vdouble.scalar.Speed maximumSpeed)
minimumSpeed - Speed; the speed at (and below) which the returned color will be redmaximumSpeed - Speed; the speed at (and above) which the returned color will be greenpublic 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.