Package org.opentrafficsim.animation
Interface Colorer<D extends org.opentrafficsim.base.geometry.OtsLocatable>
- Type Parameters:
D
- the drawable type
- All Known Subinterfaces:
GtuColorer
- All Known Implementing Classes:
AccelerationGtuColorer
,BlockingColorer
,ControlColorer
,DesireColorer
,DesiredHeadwayColorer
,DesiredSpeedColorer
,DistractionColorer
,FixedColor
,GtuTypeColorer
,IdGtuColorer
,IncentiveColorer
,ReactionTimeColorer
,SocialPressureColorer
,SpeedGtuColorer
,SplitColorer
,SwitchableGtuColorer
,SynchronizationColorer
,TaskColorer
,TaskSaturationColorer
,TotalDesireColorer
public interface Colorer<D extends org.opentrafficsim.base.geometry.OtsLocatable>
Colorer is the generic interface for anything that can get a static or dynamic color in an animation within OTS.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
-
Method Summary
-
Method Details
-
getColor
Get the color, based on the OtsLocatable object.- Parameters:
drawable
- the object to determine the color for- Returns:
- the (fill, line) color of the locatable object
-
getName
String getName()Returns the name of the colorer.- Returns:
- name of the colorer
-