Package dataPlotsFX.data.generic
Class GenericLinePlotInfo
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.data.generic.GenericLinePlotInfo
- Direct Known Subclasses:
DLPredictionPlotInfoFX
,IshmaelFnPlotInfo
A Data Info which plots 1D line data i.e. usually used to plot continuous 1D
data e.g. deep learning predictions, Ishmael data, click trigger data.
- 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
ConstructorDescriptionGenericLinePlotInfo
(TDDataProviderFX tdDataProvider, 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.javafx.scene.shape.Polygon
drawPredicition
(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Draw the prediction as a line.abstract LineInfo
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.abstract double[][]
getDetData
(PamDataUnit pamDataUnit) Get the line data.void
notifyChange
(int changeType) Notifications from the PamController are passed to this function.Methods inherited from class dataPlotsFX.data.TDDataInfoFX
addScaleInfo, clearDraw, drawAllDataUnits, drawData, drawHighLightData, editOptions, getCurrentScaleInfo, getDataBlock, getDataDimensions, getDataName, getDataObserver, getDataProvider, getDDataProvider, getDisplayColType, getGraphSettingsPane, getLastDrawPoints, getMasterClockOverride, getMenuNodes, getPreviousDataUnit, getRequiredDataHistory, getScaleInfo, getScaleInfo, getScaleInfoIndex, getScaleInfos, getShortName, getSourceDataBlock, getStoredSettings, getTDGraph, getToolTipText, hasAxisName, hasOptions, isPaused, isScrollChanging, isShowing, isViewer, lastUnitDrawn, removeData, removeScaleInfo, selectScaleInfo, setCurrentAxisName, setNPlotPanes, setShowing, setStoredSettings, shouldDraw, shouldDraw, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
GenericLinePlotInfo
public GenericLinePlotInfo(TDDataProviderFX tdDataProvider, 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 classTDDataInfoFX
- 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.
-
getDetData
Get the line data. Each double[] is a separate line with N evenly spaced data points.- Parameters:
pamDataUnit
- - the pam data unit containing the data.- Returns:
- the line data.
-
drawPredicition
public javafx.scene.shape.Polygon drawPredicition(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Draw the prediction as a line.- Parameters:
plotNumber
- - the plot number.pamDataUnit
- - the PAM data unit.g
- - the graphics context.scrollStart
- - the scroll start.tdProjector
- - the TDProjectorFX.type
- - the type flag.- Returns:
- the polygon of the shape.
-
getSymbolChooser
- Specified by:
getSymbolChooser
in classTDDataInfoFX
- Returns:
- a class containing functions to chose a symbol to plot.
-
getColor
Get the color.- 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.- Specified by:
getDataValue
in classTDDataInfoFX
- Returns:
- data value or null if this data point should not be plotted.
-
notifyChange
public void notifyChange(int changeType) Notifications from the PamController are passed to this function.- Overrides:
notifyChange
in classTDDataInfoFX
- Parameters:
changeType
- - notification flag.
-