Class DLPredictionPlotInfoFX
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.data.generic.GenericLinePlotInfo
rawDeepLearningClassifier.dataPlotFX.DLPredictionPlotInfoFX
Plot the raw probability information.
Plots multiple probability lines. Note that the TDDataInfo can handle drawing lines for different channels
but we are drawing for different prediction classes here.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class dataPlotsFX.data.TDDataInfoFX
TDDataInfoFX.DataLoadObserver
-
Field Summary
Fields inherited from class dataPlotsFX.data.TDDataInfoFX
dataPlugIns, scaleInfoIndex
-
Constructor Summary
ConstructorDescriptionDLPredictionPlotInfoFX
(TDDataProviderFX tdDataProvider, DLControl dlContorl, TDGraphFX tdGraph, PamDataBlock pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.shape.Polygon
drawDataUnit
(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Draw a data unit.getColor
(int i) Get the color.getDataValue
(PamDataUnit pamDataUnit) Gets a value for a specific data unit which should be in the same units as the scale information.double[][]
getDetData
(PamDataUnit pamDataUnit) Get the line data.Get the DL prediction params.Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.Get an object that will be packed up with the serialised settings when information about a plot get's stored.void
notifyChange
(int changeType) Notifications from the PamController are passed to this function.boolean
setStoredSettings
(Serializable storedSettings) Set settings which have been read back from storage (the psf file).Methods inherited from class dataPlotsFX.data.generic.GenericLinePlotInfo
drawPredicition
Methods inherited from class dataPlotsFX.data.TDDataInfoFX
addScaleInfo, clearDraw, drawAllDataUnits, drawData, drawHighLightData, editOptions, getCurrentScaleInfo, getDataBlock, getDataDimensions, getDataName, getDataObserver, getDataProvider, getDDataProvider, getDisplayColType, getLastDrawPoints, getMasterClockOverride, getMenuNodes, getPreviousDataUnit, getRequiredDataHistory, getScaleInfo, getScaleInfo, getScaleInfoIndex, getScaleInfos, getShortName, getSourceDataBlock, getTDGraph, getToolTipText, hasAxisName, hasOptions, isPaused, isScrollChanging, isShowing, isViewer, lastUnitDrawn, removeData, removeScaleInfo, selectScaleInfo, setCurrentAxisName, setNPlotPanes, setShowing, shouldDraw, shouldDraw, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
DLPredictionPlotInfoFX
public DLPredictionPlotInfoFX(TDDataProviderFX tdDataProvider, DLControl dlContorl, TDGraphFX tdGraph, PamDataBlock pamDataBlock)
-
-
Method Details
-
drawDataUnit
public javafx.scene.shape.Polygon drawDataUnit(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Description copied from class:TDDataInfoFX
Draw a data unit.- Overrides:
drawDataUnit
in classGenericLinePlotInfo
- Parameters:
pamDataUnit
- data unit to drawg
- graphicsContext handle to draw ontype
- flag for which type of symbol to draw. e.g normal or highlighted.- Returns:
- polygon of area drawn on.
-
getSymbolChooser
- Overrides:
getSymbolChooser
in classGenericLinePlotInfo
- Returns:
- a class containing functions to chose a symbol to plot.
-
getColor
Get the color.- Specified by:
getColor
in classGenericLinePlotInfo
- Parameters:
i
- - the prediction index- Returns:
- the color for that prediciton
-
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.- Overrides:
getDataValue
in classGenericLinePlotInfo
- Returns:
- data value or null if this data point should not be plotted.
-
getGraphSettingsPane
Description copied from class:TDDataInfoFX
Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.- Overrides:
getGraphSettingsPane
in classTDDataInfoFX
- Returns:
- sliding dialog component.
-
getDlControl
-
getStoredSettings
Description copied from class:TDDataInfoFX
Get an object that will be packed up with the serialised settings when information about a plot get's stored.
The Object MUST implement serializable and ideally also cloneable or it will go belly up !
This only gets called when settings are to be saved so there is no need to keep parameters this returns up to date except right at settings save time (when this is called)- Overrides:
getStoredSettings
in classTDDataInfoFX
- Returns:
- serializable object to save.
-
setStoredSettings
Description copied from class:TDDataInfoFX
Set settings which have been read back from storage (the psf file). Assume these are of the right type and cast into whatever is needed !- Overrides:
setStoredSettings
in classTDDataInfoFX
- Returns:
- true if all OK.
-
getDlPredParams
Get the DL prediction params.- Returns:
- the params
-
getDetData
Description copied from class:GenericLinePlotInfo
Get the line data. Each double[] is a separate line with N evenly spaced data points.- Specified by:
getDetData
in classGenericLinePlotInfo
- Parameters:
pamDataUnit
- - the pam data unit containing the data.- Returns:
- the line data.
-
notifyChange
public void notifyChange(int changeType) Notifications from the PamController are passed to this function.- Overrides:
notifyChange
in classGenericLinePlotInfo
- Parameters:
changeType
- - notification flag.
-