Class ContourPlotExtendedData<Z extends Number>
java.lang.Object
org.opentrafficsim.animation.graphs.AbstractPlot<S>
org.opentrafficsim.animation.graphs.AbstractBoundedPlot<S>
org.opentrafficsim.animation.graphs.AbstractSpaceTimePlot<AbstractContourPlot.ContourPaintState>
org.opentrafficsim.animation.graphs.AbstractContourPlot<Z>
org.opentrafficsim.animation.graphs.ContourPlotExtendedData<Z>
- Type Parameters:
Z- value type
- All Implemented Interfaces:
Identifiable,org.jfree.data.general.Dataset,org.jfree.data.general.SeriesDataset,org.jfree.data.xy.XYDataset,org.jfree.data.xy.XYZDataset
- Direct Known Subclasses:
ContourPlotExtendedData.UnitPlot
Contour data plot for any numerical extended trajectory data. For extended trajectory data valued with a DJUNITS type,
sub-class
ContourPlotExtendedData.UnitPlot is available.
Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContourPlotExtendedData.UnitPlot<U extends Unit<U>,Z extends org.djunits.value.vdouble.scalar.base.DoubleScalarRel<U, Z>> Extension ofContourPlotExtendedDatafor DJUNITS data types.Nested classes/interfaces inherited from class org.opentrafficsim.animation.graphs.AbstractContourPlot
AbstractContourPlot.Bounds<Z extends Number>, AbstractContourPlot.ContourPaintState, AbstractContourPlot.LabelData<Z extends Number> -
Field Summary
Fields inherited from class org.opentrafficsim.animation.graphs.AbstractPlot
DEFAULT_INITIAL_UPPER_TIME_BOUND, GRAPH_ADD_EVENT, GRAPH_REMOVE_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionContourPlotExtendedData(String caption, ContourDataSource source, ExtendedDataNumber<?> extendedDataType, Function<Double, Z> valueConverter, BoundsPaintScale paintScale, AbstractContourPlot.LabelData<Z> labelData) Constructor with specified paint scale.ContourPlotExtendedData(String caption, ContourDataSource source, ExtendedDataNumber<?> extendedDataType, Function<Double, Z> valueConverter, AbstractContourPlot.Bounds<Z> bounds, AbstractContourPlot.LabelData<Z> labelData) Constructor with default paint scale (red at minimum, yellow at mid-point, green at maximum). -
Method Summary
Methods inherited from class org.opentrafficsim.animation.graphs.AbstractContourPlot
addListener, calculatePaintState, emptyPaintState, getContourDataType, getDomainOrder, getEndLocation, getGranularities, getGranularity, getItemCount, getRangeBinCount, getSeriesCount, getSeriesKey, getStatusLabel, getX, getXValue, getY, getYValue, getZ, getZValue, indexOf, setGranularity, setInterpolate, setPaintState, setSmoothMethods inherited from class org.opentrafficsim.animation.graphs.AbstractSpaceTimePlot
setAutoBoundDomain, setAutoBoundRange, setChart, updateFixedDomainRangeMethods inherited from class org.opentrafficsim.animation.graphs.AbstractBoundedPlot
setLowerDomainBound, setLowerRangeBound, setUpperDomainBound, setUpperRangeBoundMethods inherited from class org.opentrafficsim.animation.graphs.AbstractPlot
addChangeListener, encodeAsPng, getAvailableTime, getCaption, getChart, getGroup, getId, getPaintState, invalidate, notifyPlotChange, offerPaintState, offerUpdateInterval, removeChangeListener, setGroup, updateMethods 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
-
ContourPlotExtendedData
public ContourPlotExtendedData(String caption, ContourDataSource source, ExtendedDataNumber<?> extendedDataType, Function<Double, Z> valueConverter, AbstractContourPlot.Bounds<Z> bounds, AbstractContourPlot.LabelData<Z> labelData) Constructor with default paint scale (red at minimum, yellow at mid-point, green at maximum).- Parameters:
caption- captionsource- data sourceextendedDataType- extended data typevalueConverter- value converterbounds- paint scale boundslabelData- label data
-
ContourPlotExtendedData
public ContourPlotExtendedData(String caption, ContourDataSource source, ExtendedDataNumber<?> extendedDataType, Function<Double, Z> valueConverter, BoundsPaintScale paintScale, AbstractContourPlot.LabelData<Z> labelData) Constructor with specified paint scale.- Parameters:
caption- captionsource- data sourceextendedDataType- extended data typevalueConverter- value converterpaintScale- paint scalelabelData- label data
-
-
Method Details
-
getGraphType
Description copied from class:AbstractPlotReturn the graph type for transceiver.- Specified by:
getGraphTypein classAbstractPlot<AbstractContourPlot.ContourPaintState>- Returns:
- the graph type.
-
scale
protected double scale(double si) Description copied from class:AbstractContourPlotScale the z-value from SI to the desired unit for users, in line with unit inAbstractContourPlot.LabelData.labelFormat.- Specified by:
scalein classAbstractContourPlot<Z extends Number>- Parameters:
si- SI value- Returns:
- scaled value
-
toString
-