Class BlockingColorer

java.lang.Object
org.opentrafficsim.road.gtu.colorer.BlockingColorer
All Implemented Interfaces:
Colorer<GTU>, GTUColorer

public class BlockingColorer
extends Object
implements GTUColorer
Displays whether a GTU is blocking conflicts.

Copyright (c) 2013-2019 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 7 sep. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

  • Method Details

    • 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:
      getLegend in interface GTUColorer
      Returns:
      List<LegendEntry>; the list of legend entries; the caller should not (try to) modify this List
    • getColor

      public Color getColor​(GTU gtu)
      Get the color, based on the Drawable object.
      Specified by:
      getColor in interface Colorer<GTU>
      Parameters:
      gtu - D; the object to determine the color for
      Returns:
      the (fill, line) color of the drawable object
    • toString

      public String toString()
      Overrides:
      toString in class Object