Package cpod.dataPlotFX
Class CPODPlotInfoFX
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.data.generic.GenericDataPlotInfo
cpod.dataPlotFX.CPODPlotInfoFX
CPOD plot info.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Default symbol chooser for the display.Nested classes/interfaces inherited from class dataPlotsFX.data.TDDataInfoFX
TDDataInfoFX.DataLoadObserver
-
Field Summary
Fields inherited from class dataPlotsFX.data.generic.GenericDataPlotInfo
DEFAULT_FILL_OPACITY
Fields inherited from class dataPlotsFX.data.TDDataInfoFX
dataPlugIns, scaleInfoIndex
-
Constructor Summary
ConstructorDescriptionCPODPlotInfoFX
(PamControlledUnit cpodControl, CPODPlotProviderFX cpodPlotProviderFX, TDGraphFX tdGraph, CPODClickDataBlock cpodDataBlock) -
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
drawFrequencyData
(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Draw a frequency lineGet the data selector for clicks.getDataValue
(PamDataUnit pamDataUnit) Gets a value for a specific data unit which should be in the same units as the scale information.Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.boolean
shouldDraw
(int plotNumber, PamDataUnit dataUnit) Do we want to draw this data unit on this plot ?Methods inherited from class dataPlotsFX.data.generic.GenericDataPlotInfo
getAmplitudeScaleInfo, getAmplitudeValue, getBearingScaleInfo, getBearingValue, getFrequencyScaleInfo, getScaleInfos, getSlantScaleInfo, getSlantValue, getSymbolChooser, setCurrentAxisName
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, getShortName, getSourceDataBlock, getStoredSettings, getTDGraph, getToolTipText, hasAxisName, hasOptions, isPaused, isScrollChanging, isShowing, isViewer, lastUnitDrawn, notifyChange, removeData, removeScaleInfo, selectScaleInfo, setNPlotPanes, setShowing, setStoredSettings, shouldDraw, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
CPODPlotInfoFX
public CPODPlotInfoFX(PamControlledUnit cpodControl, CPODPlotProviderFX cpodPlotProviderFX, TDGraphFX tdGraph, CPODClickDataBlock cpodDataBlock)
-
-
Method Details
-
getGraphSettingsPane
Description copied from class:TDDataInfoFX
Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.- Overrides:
getGraphSettingsPane
in classGenericDataPlotInfo
- Returns:
- sliding dialog component.
-
createSymbolChooser
- Overrides:
createSymbolChooser
in classGenericDataPlotInfo
-
getCPODDataSelector
Get the data selector for clicks. This handles plotting clicks of different species- Returns:
- the data selector.
-
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 classGenericDataPlotInfo
- Returns:
- data value or null if this data point should not be plotted.
-
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 classGenericDataPlotInfo
- 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.
-
drawFrequencyData
public javafx.scene.shape.Polygon drawFrequencyData(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Draw a frequency line- Overrides:
drawFrequencyData
in classGenericDataPlotInfo
- Parameters:
plotNumber
-pamDataUnit
-g
-scrollStart
-tdProjector
-type
-- Returns:
-
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.
-