Class ContourPlotSpeed

All Implemented Interfaces:
ActionListener, EventListener, org.djutils.base.Identifiable, org.jfree.data.general.Dataset, org.jfree.data.general.SeriesDataset, org.jfree.data.xy.XYDataset, org.jfree.data.xy.XYZDataset, XyInterpolatedDataset

public class ContourPlotSpeed extends AbstractContourPlot<org.djunits.value.vdouble.scalar.Speed>
Contour plot for speed.

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, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • ContourPlotSpeed

      public ContourPlotSpeed(String caption, PlotScheduler scheduler, ContourDataSource dataPool)
      Constructor.
      Parameters:
      caption - String; caption
      scheduler - PlotScheduler; scheduler.
      dataPool - ContourDataSource; data pool
  • Method Details

    • getGraphType

      public GraphType getGraphType()
      Return the graph type for transceiver.
      Specified by:
      getGraphType in class AbstractPlot
      Returns:
      GraphType; the graph type.
    • scale

      protected double scale(double si)
      Scale the value from SI to the desired unit for users.
      Specified by:
      scale in class AbstractContourPlot<org.djunits.value.vdouble.scalar.Speed>
      Parameters:
      si - double; SI value
      Returns:
      double; scaled value
    • getValue

      protected double getValue(int item, double cellLength, double cellSpan)
      Obtain value for cell from the data pool.
      Specified by:
      getValue in class AbstractContourPlot<org.djunits.value.vdouble.scalar.Speed>
      Parameters:
      item - int; item number
      cellLength - double; cell length
      cellSpan - double; cell duration
      Returns:
      double; value for cell from the data pool
    • getContourDataType

      protected ContourDataSource.ContourDataType<org.djunits.value.vdouble.scalar.Speed,?> getContourDataType()
      Returns the contour data type for use in a ContourDataSource.
      Specified by:
      getContourDataType in class AbstractContourPlot<org.djunits.value.vdouble.scalar.Speed>
      Returns:
      CountorDataType; contour data type
    • toString

      public String toString()
      Overrides:
      toString in class Object