Package dataPlotsFX.rawDataPlotFX
Class RawSoundDataInfo
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.rawDataPlotFX.RawSoundDataInfo
-
Nested Class Summary
Nested classes/interfaces inherited from class dataPlotsFX.data.TDDataInfoFX
TDDataInfoFX.DataLoadObserver
-
Field Summary
Fields inherited from class dataPlotsFX.data.TDDataInfoFX
dataPlugIns, isOrderring, isViewer, scaleInfoIndex
-
Constructor Summary
ConstructorsConstructorDescriptionRawSoundDataInfo
(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, AcquisitionControl control, PamRawDataBlock pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawData
(int plotNumber, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector) Paint data into the graphics window.protected double
Get the number of bins per pixel.getDataValue
(PamDataUnit pamDataUnit) Gets a value for a specific data unit which should be in the same units as the scale information.protected float
Get the sample rate of the raw sound data.getScaleInfo
(boolean autoScale) Get scale information based on the min max values of units in the data block or fixed scale informationvoid
timeRangeSpinnerChange
(double oldValue, double newValue) Called when the time range spinner on the main display panel changes.void
timeScrollRangeChanged
(double minimumMillis, double maximumMillis) (non-Javadoc)void
timeScrollValueChanged
(double valueMillis) (non-Javadoc)Methods inherited from class dataPlotsFX.data.TDDataInfoFX
addScaleInfo, clearDraw, drawAllDataUnits, drawDataUnit, drawHighLightData, editOptions, getCurrentScaleInfo, getDataBlock, getDataDimensions, getDataName, getDataObserver, getDataProvider, getDDataProvider, getDisplayColType, getGraphSettingsPane, getLastDrawPoints, getMasterClockOverride, getMenuNodes, getPreviousDataUnit, getRequiredDataHistory, getScaleInfo, getScaleInfoIndex, getScaleInfos, getShortName, getSourceDataBlock, getStoredSettings, getTdDataProvider, getTDGraph, getToolTipText, hasAxisName, hasOptions, isPaused, isScrollChanging, isShowing, isViewer, lastUnitDrawn, notifyChange, removeData, removeScaleInfo, selectScaleInfo, setCurrentAxisName, setNPlotPanes, setShowing, setStoredSettings, shouldDraw, shouldDraw
-
Constructor Details
-
RawSoundDataInfo
public RawSoundDataInfo(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, AcquisitionControl control, PamRawDataBlock pamDataBlock)
-
-
Method Details
-
drawData
public void drawData(int plotNumber, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector) Description copied from class:TDDataInfoFX
Paint data into the graphics window.- Overrides:
drawData
in classTDDataInfoFX
- Parameters:
plotNumber
- plot numberg
- graphics
-
getScaleInfo
Description copied from class:TDDataInfoFX
Get scale information based on the min max values of units in the data block or fixed scale information- Overrides:
getScaleInfo
in classTDDataInfoFX
- Parameters:
autoScale
- . Create a scale information which is based on min/max value of data units in data block. False to use fixed scale information.- Returns:
- Information about the scales of the data.
-
getDataValue
Description copied from class:TDDataInfoFX
Gets a value for a specific data unit which should be in the same units as the scale information. This will then be converted into a plot position by the TDGraph.- Specified by:
getDataValue
in classTDDataInfoFX
- Parameters:
pamDataUnit
-- Returns:
- data value or null if this data point should not be plotted.
-
getSymbolChooser
- Specified by:
getSymbolChooser
in classTDDataInfoFX
- Returns:
- a class containing functions to chose a symbol to plot.
-
getSampleRate
protected float getSampleRate()Get the sample rate of the raw sound data.- Returns:
- sample rate of the raw sound data in S/s.
-
getBinsPerPixel
protected double getBinsPerPixel()Get the number of bins per pixel. This is calculated from the width of the tdGraph in pixels, the time the display represents and the sample rate of raw sound data.- Returns:
- the number of bins per pixel.
-
timeScrollRangeChanged
public void timeScrollRangeChanged(double minimumMillis, double maximumMillis) (non-Javadoc)- Overrides:
timeScrollRangeChanged
in classTDDataInfoFX
- Parameters:
minimumMillis
- new minimum in millismaximumMillis
- new maximum in millis.- See Also:
-
timeRangeSpinnerChange
public void timeRangeSpinnerChange(double oldValue, double newValue) Description copied from class:TDDataInfoFX
Called when the time range spinner on the main display panel changes.- Overrides:
timeRangeSpinnerChange
in classTDDataInfoFX
- Parameters:
oldValue
- old value (seconds)newValue
- new value (seconds)
-
timeScrollValueChanged
public void timeScrollValueChanged(double valueMillis) (non-Javadoc)- Overrides:
timeScrollValueChanged
in classTDDataInfoFX
- Parameters:
valueMillis
- new scroll value in millis- See Also:
-