Class TriggerDataPlotFX
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
clickDetector.basicalgorithm.plot.TriggerDataPlotFX
-
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
ConstructorDescriptionTriggerDataPlotFX
(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, TriggerBackgroundHandler triggerBackgroundHandler, TriggerBackgroundDataBlock triggerBackgroundDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear any residual drawing objects that get held between calls, e.g.javafx.scene.shape.Polygon
drawDataUnit
(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Draw a data unit.getDataValue
(PamDataUnit pamDataUnit) Gets a value for a specific data unit which should be in the same units as the scale information.getScaleInfo
(boolean autoScale) Get scale information based on the min max values of units in the data block or fixed scale informationMethods inherited from class dataPlotsFX.data.TDDataInfoFX
addScaleInfo, drawAllDataUnits, drawData, drawHighLightData, editOptions, getCurrentScaleInfo, getDataBlock, getDataDimensions, getDataName, getDataObserver, getDataProvider, getDDataProvider, getDisplayColType, getGraphSettingsPane, getLastDrawPoints, getMasterClockOverride, getMenuNodes, getPreviousDataUnit, getRequiredDataHistory, getScaleInfoIndex, getScaleInfos, getShortName, getSourceDataBlock, getStoredSettings, getTDGraph, getToolTipText, hasAxisName, hasOptions, isPaused, isScrollChanging, isShowing, isViewer, lastUnitDrawn, notifyChange, removeData, removeScaleInfo, selectScaleInfo, setCurrentAxisName, setNPlotPanes, setShowing, setStoredSettings, shouldDraw, shouldDraw, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
TriggerDataPlotFX
public TriggerDataPlotFX(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, TriggerBackgroundHandler triggerBackgroundHandler, TriggerBackgroundDataBlock triggerBackgroundDataBlock)
-
-
Method Details
-
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.
-
getSymbolChooser
- Specified by:
getSymbolChooser
in classTDDataInfoFX
- Returns:
- a class containing functions to chose a symbol to plot.
-
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.
-
getScaleInfo
- Overrides:
getScaleInfo
in classTDDataInfoFX
- Returns:
- the fixedScaleInformation
-
clearDraw
public void clearDraw()Description copied from class:TDDataInfoFX
Clear any residual drawing objects that get held between calls, e.g. the point of the previous unit plotted which may have been held so that lines can be drawn between points.- Overrides:
clearDraw
in classTDDataInfoFX
-
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.
-