Class DesireColorer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.awt.Color NA
      N/A color.
    • Constructor Summary

      Constructors 
      Constructor Description
      DesireColorer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.awt.Color getColor​(double dLeft, double dRight)
      Returns a color based on desire.
      java.util.List<GTUColorer.LegendEntry> getLegend()
      Return a list of legend entries (useful to make a legend of the colors used to render the GTUs).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.opentrafficsim.core.animation.Colorer

        getColor
    • Field Detail

      • NA

        protected static final java.awt.Color NA
        N/A color.
    • Constructor Detail

      • DesireColorer

        public DesireColorer()
    • Method Detail

      • getLegend

        public final java.util.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

        protected final java.awt.Color getColor​(double dLeft,
                                                double dRight)
        Returns a color based on desire.
        Parameters:
        dLeft - double; left desire
        dRight - double; right desire
        Returns:
        color based on desire