public class AccelerationGTUColorer extends Object implements 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.
GTUColorer.LegendEntry| Constructor and Description |
|---|
AccelerationGTUColorer(org.djunits.value.vdouble.scalar.Acceleration maximumDeceleration,
org.djunits.value.vdouble.scalar.Acceleration maximumAcceleration)
Construct a new AccelerationGTUColorer.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(GTU gtu)
Return the fill color for a GTU.
|
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 AccelerationGTUColorer(org.djunits.value.vdouble.scalar.Acceleration maximumDeceleration,
org.djunits.value.vdouble.scalar.Acceleration maximumAcceleration)
maximumDeceleration - Acceleration; the deceleration (negative acceleration) that corresponds to the first (red)
legend entrymaximumAcceleration - Acceleration; the deceleration that corresponds to the last (blue) legend entrypublic final Color getColor(GTU gtu)
getColor in interface GTUColorergtu - GTU; the GTUpublic final List<GTUColorer.LegendEntry> getLegend()
getLegend in interface GTUColorerCopyright © 2014–2016 Delft University of Technology. All rights reserved.