Class TotalDesireColorer
- java.lang.Object
-
- org.opentrafficsim.road.gtu.colorer.DesireColorer
-
- org.opentrafficsim.road.gtu.colorer.TotalDesireColorer
-
- All Implemented Interfaces:
java.io.Serializable,Colorer<GTU>,GTUColorer
public class TotalDesireColorer extends DesireColorer
Colorer for total desire.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 14 apr. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opentrafficsim.core.animation.gtu.colorer.GTUColorer
GTUColorer.LegendEntry
-
-
Field Summary
-
Fields inherited from class org.opentrafficsim.road.gtu.colorer.DesireColorer
NA
-
-
Constructor Summary
Constructors Constructor Description TotalDesireColorer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColor(GTU gtu)Get the color, based on the Drawable object.java.lang.StringtoString()-
Methods inherited from class org.opentrafficsim.road.gtu.colorer.DesireColorer
getColor, getLegend
-
-
-
-
Method Detail
-
getColor
public final java.awt.Color getColor(GTU gtu)
Get the color, based on the Drawable object.- Parameters:
gtu- D; the object to determine the color for- Returns:
- the (fill, line) color of the drawable object
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-