Class ReactionTimeColorer
- java.lang.Object
-
- org.opentrafficsim.road.gtu.colorer.ReactionTimeColorer
-
- All Implemented Interfaces:
Colorer<Gtu>,GtuColorer
public class ReactionTimeColorer extends Object implements GtuColorer
Colors the reaction time.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 31 jan. 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opentrafficsim.core.animation.gtu.colorer.GtuColorer
GtuColorer.LegendEntry
-
-
Constructor Summary
Constructors Constructor Description ReactionTimeColorer(Duration maxReactionTime)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor(Gtu gtu)Get the color, based on the Drawable object.List<GtuColorer.LegendEntry>getLegend()Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).StringtoString()
-
-
-
Constructor Detail
-
ReactionTimeColorer
public ReactionTimeColorer(Duration maxReactionTime)
Constructor.- Parameters:
maxReactionTime- Duration; maximum reaction time.
-
-
Method Detail
-
getLegend
public List<GtuColorer.LegendEntry> getLegend()
Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).- Specified by:
getLegendin interfaceGtuColorer- Returns:
- List<LegendEntry>; the list of legend entries; the caller should not (try to) modify this List
-
-