Package gpl.graphfx
Class GPLStatePlotInfo
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
gpl.graphfx.GPLStatePlotInfo
-
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
ConstructorDescriptionGPLStatePlotInfo
(TDDataProviderFX tdDataProvider, GPLControlledUnit gplControlledUnit, TDGraphFX tdGraph, GPLStateDataBlock stateDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawData
(int plotNumber, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector) Paint data into the graphics window.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.boolean
shouldDraw
(int plotNumber, PamDataUnit dataUnit) Do we want to draw this data unit on this plot ?Methods inherited from class dataPlotsFX.data.TDDataInfoFX
addScaleInfo, clearDraw, drawAllDataUnits, 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, notifyChange, removeData, removeScaleInfo, selectScaleInfo, setCurrentAxisName, setNPlotPanes, setShowing, setStoredSettings, shouldDraw, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
GPLStatePlotInfo
public GPLStatePlotInfo(TDDataProviderFX tdDataProvider, GPLControlledUnit gplControlledUnit, TDGraphFX tdGraph, GPLStateDataBlock stateDataBlock)
-
-
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.
-
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
-
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.
-
shouldDraw
Description copied from class:TDDataInfoFX
Do we want to draw this data unit on this plot ?- Overrides:
shouldDraw
in classTDDataInfoFX
- Returns:
- true if unit should be drawn.
-