public class VelocityGTUColorer extends Object implements GTUColorer
Copyright (c) 2013-2015 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 |
|---|
VelocityGTUColorer(org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> maximumSpeed)
Construct a new VelocityGTUColorer.
|
| 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 VelocityGTUColorer(org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> maximumSpeed)
maximumSpeed - DoubleScalar.Abs<SpeedUnit>; the speed at (and above) which the returned color will be greenpublic final Color getColor(GTU gtu) throws RemoteException
getColor in interface GTUColorergtu - GTU; the GTURemoteException - on communications failurepublic final List<GTUColorer.LegendEntry> getLegend()
getLegend in interface GTUColorerCopyright © 2014–2015 Delft University of Technology. All rights reserved.