Interface Colorer<D extends org.opentrafficsim.core.animation.Drawable>

Type Parameters:
D - the drawable type
All Known Subinterfaces:
GtuColorer
All Known Implementing Classes:
AccelerationGtuColorer, BlockingColorer, ControlColorer, DefaultSwitchableGtuColorer, DesireColorer, DesiredHeadwayColorer, DesiredSpeedColorer, DistractionColorer, FixedColor, FixedColorer, GtuTypeColorer, IdGtuColorer, IncentiveColorer, LmrsSwitchableColorer, ReactionTimeColorer, SocialPressureColorer, SpeedGtuColorer, SplitColorer, SwitchableGtuColorer, SynchronizationColorer, TaskColorer, TaskSaturationColorer, TotalDesireColorer

public interface Colorer<D extends org.opentrafficsim.core.animation.Drawable>
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

    Modifier and Type
    Method
    Description
    getColor(D drawable)
    Get the color, based on the Drawable object.
  • Method Details

    • getColor

      Color getColor(D drawable)
      Get the color, based on the Drawable object.
      Parameters:
      drawable - D; the object to determine the color for
      Returns:
      the (fill, line) color of the drawable object