Class ContourPlotAcceleration

All Implemented Interfaces:
Identifiable, org.jfree.data.general.Dataset, org.jfree.data.general.SeriesDataset, org.jfree.data.xy.XYDataset, org.jfree.data.xy.XYZDataset

public class ContourPlotAcceleration extends AbstractContourPlot<Acceleration>
Contour plot for acceleration.

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

    • ContourPlotAcceleration

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

    • getGraphType

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

      protected double scale(double si)
      Description copied from class: AbstractContourPlot
      Scale the value from SI to the desired unit for users.
      Specified by:
      scale in class AbstractContourPlot<Acceleration>
      Parameters:
      si - SI value
      Returns:
      scaled value
    • getValue

      protected double getValue(int item, double cellLength, double cellSpan)
      Description copied from class: AbstractContourPlot
      Obtain value for cell from the data pool.
      Specified by:
      getValue in class AbstractContourPlot<Acceleration>
      Parameters:
      item - item number
      cellLength - cell length
      cellSpan - cell duration
      Returns:
      value for cell from the data pool
    • toString

      public String toString()
      Overrides:
      toString in class Object