View Javadoc
1   package org.opentrafficsim.draw;
2   
3   import java.awt.Color;
4   
5   import org.jfree.chart.renderer.PaintScale;
6   
7   /**
8    * Paint scale that forces the output to be a color. This is used inside XYInterpolatedBlockRenderer.
9    * <p>
10   * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
11   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
12   * </p>
13   * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
14   * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a>
15   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
16   */
17  public interface ColorPaintScale extends PaintScale
18  {
19  
20      /** {@inheritDoc} */
21      @Override
22      Color getPaint(double value);
23  
24  }