Package clickDetector.tdPlots
Class ClickPlotInfo
java.lang.Object
dataPlots.data.TDDataInfo
clickDetector.tdPlots.ClickPlotInfo
-
Field Summary
Fields inherited from class dataPlots.data.TDDataInfo
UNITS_ANGLE, UNITS_TEMPERATURE
-
Constructor Summary
ConstructorDescriptionClickPlotInfo
(TDDataProvider tdDataProvider, ClickControl clickControl, TDGraph tdGraph, PamDataBlock pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear any residual drawing objects that get held between calls, e.g.boolean
editOptions
(Window frame) Edit options - generally involves throwing up a dialog of some sort.Get the CickControl class fro this ClickPlotInfogetDataValue
(PamDataUnit pamDataUnit) Gets a value for a specific data unit which should be in the same units as the scale information.int
getFixedScaleInformation
(int orientation) Return a hiding dialog component which will get incorporated into a larger tabbed sliding dialog.getScaleInformation
(int orientation, boolean autoScale) Get an object that will be packed up with the serialised settings when information about a plot get's stored.boolean
Has options that will result in a dialog.void
selectColourType
(int colourId) void
selectDataLine
(DataLineInfo dataLine) Called when the user selects a specific data linevoid
setDisplayChannels
(int displayChannels) boolean
setStoredSettings
(Serializable storedSettings) Set settings which have been read back from storage (the psf file).void
Called when settings have changed.Methods inherited from class dataPlots.data.TDDataInfo
addDataUnits, drawData, drawDataUnit, drawHighLightData, getCurrentDataLine, getCurrentDataLineIndex, getDataBlock, getDataDimensions, getDataLineInfos, getDataName, getDataProvider, getShortName, getTdGraph, getToolTipText, hasAxisName, isShowing, notifyModelChanged, removeData, setCurrentAxisName, setFixedScaleInformation, setShowing, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
ClickPlotInfo
public ClickPlotInfo(TDDataProvider tdDataProvider, ClickControl clickControl, TDGraph tdGraph, PamDataBlock pamDataBlock)
-
-
Method Details
-
getDataValue
Description copied from class:TDDataInfo
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 classTDDataInfo
- Returns:
- data value or null if this data poit should not be plotted.
-
getClickControl
Get the CickControl class fro this ClickPlotInfo- Returns:
- ClickControl instance fro this ClickPlotInfo.
-
getSymbolChooser
- Specified by:
getSymbolChooser
in classTDDataInfo
- Returns:
- a class containing functions to chose a symbol to plot.
-
getScaleInformation
- Overrides:
getScaleInformation
in classTDDataInfo
- Returns:
- Information about the scales of the data.
-
getFixedScaleInformation
- Overrides:
getFixedScaleInformation
in classTDDataInfo
- Returns:
- the fixedScaleInformation
-
clearDraw
public void clearDraw()Description copied from class:TDDataInfo
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 classTDDataInfo
-
hasOptions
public boolean hasOptions()Description copied from class:TDDataInfo
Has options that will result in a dialog.- Overrides:
hasOptions
in classTDDataInfo
- Returns:
- true if there are options.
-
editOptions
Description copied from class:TDDataInfo
Edit options - generally involves throwing up a dialog of some sort.- Overrides:
editOptions
in classTDDataInfo
- Returns:
- true if options dialog OK button was pressed.
-
getStoredSettings
Description copied from class:TDDataInfo
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 classTDDataInfo
- Returns:
- serializable object to save.
-
setStoredSettings
Description copied from class:TDDataInfo
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 classTDDataInfo
- Returns:
- true if all OK.
-
getDisplayChannels
public int getDisplayChannels() -
setDisplayChannels
public void setDisplayChannels(int displayChannels) -
getHidingDialogComponent
Description copied from class:TDDataInfo
Return a hiding dialog component which will get incorporated into a larger tabbed sliding dialog.- Overrides:
getHidingDialogComponent
in classTDDataInfo
- Returns:
- sliding dialog component.
-
updateSettings
public void updateSettings()Called when settings have changed. -
selectColourType
public void selectColourType(int colourId) -
selectDataLine
Description copied from class:TDDataInfo
Called when the user selects a specific data line- Overrides:
selectDataLine
in classTDDataInfo
-