Package org.opentrafficsim.draw.graphs
Class ContourPlotAcceleration
java.lang.Object
org.opentrafficsim.draw.graphs.AbstractPlot
org.opentrafficsim.draw.graphs.AbstractBoundedPlot
org.opentrafficsim.draw.graphs.AbstractSpaceTimePlot
org.opentrafficsim.draw.graphs.AbstractSamplerPlot
org.opentrafficsim.draw.graphs.AbstractContourPlot<org.djunits.value.vdouble.scalar.Acceleration>
org.opentrafficsim.draw.graphs.ContourPlotAcceleration
- 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 ContourPlotAcceleration
extends AbstractContourPlot<org.djunits.value.vdouble.scalar.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
-
Field Summary
Fields inherited from class org.opentrafficsim.draw.graphs.AbstractPlot
DEFAULT_INITIAL_UPPER_TIME_BOUND, GRAPH_ADD_EVENT, GRAPH_REMOVE_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionContourPlotAcceleration(String caption, PlotScheduler scheduler, ContourDataSource dataPool) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ContourDataSource.ContourDataType<org.djunits.value.vdouble.scalar.Acceleration,org.djutils.means.ArithmeticMean<Double, Double>> Returns the contour data type for use in aContourDataSource.Return the graph type for transceiver.protected doublegetValue(int item, double cellLength, double cellSpan) Obtain value for cell from the data pool.protected doublescale(double si) Scale the value from SI to the desired unit for users.toString()Methods inherited from class org.opentrafficsim.draw.graphs.AbstractContourPlot
actionPerformed, getBlockRenderer, getDataPool, getDomainOrder, getItemCount, getRangeBinCount, getSeriesCount, getSeriesKey, getSpaceGranularity, getStatusLabel, getTimeGranularity, getX, getXValue, getY, getYValue, getZ, getZValue, increaseTime, indexOf, setInterpolation, setSpaceGranularity, setTimeGranularityMethods inherited from class org.opentrafficsim.draw.graphs.AbstractSamplerPlot
getEndLocation, getPath, getSamplerData, getTrajectoriesMethods inherited from class org.opentrafficsim.draw.graphs.AbstractSpaceTimePlot
setAutoBoundDomain, setAutoBoundRange, setChart, update, updateFixedDomainRangeMethods inherited from class org.opentrafficsim.draw.graphs.AbstractBoundedPlot
setLowerDomainBound, setLowerRangeBound, setUpperDomainBound, setUpperRangeBoundMethods inherited from class org.opentrafficsim.draw.graphs.AbstractPlot
addChangeListener, encodeAsPng, getCaption, getChart, getGroup, getId, getUpdateTime, notifyPlotChange, removeChangeListener, setGroup, setUpdateIntervalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
ContourPlotAcceleration
Constructor.- Parameters:
caption- captionscheduler- scheduler.dataPool- data pool
-
-
Method Details
-
getGraphType
Description copied from class:AbstractPlotReturn the graph type for transceiver.- Specified by:
getGraphTypein classAbstractPlot- Returns:
- the graph type.
-
scale
protected double scale(double si) Description copied from class:AbstractContourPlotScale the value from SI to the desired unit for users.- Specified by:
scalein classAbstractContourPlot<org.djunits.value.vdouble.scalar.Acceleration>- Parameters:
si- SI value- Returns:
- scaled value
-
getValue
protected double getValue(int item, double cellLength, double cellSpan) Description copied from class:AbstractContourPlotObtain value for cell from the data pool.- Specified by:
getValuein classAbstractContourPlot<org.djunits.value.vdouble.scalar.Acceleration>- Parameters:
item- item numbercellLength- cell lengthcellSpan- cell duration- Returns:
- value for cell from the data pool
-
getContourDataType
protected ContourDataSource.ContourDataType<org.djunits.value.vdouble.scalar.Acceleration,org.djutils.means.ArithmeticMean<Double, getContourDataType()Double>> Description copied from class:AbstractContourPlotReturns the contour data type for use in aContourDataSource.- Specified by:
getContourDataTypein classAbstractContourPlot<org.djunits.value.vdouble.scalar.Acceleration>- Returns:
- contour data type
-
toString
-