Package annotation.dataselect
Class ScalarDataSelector<TDataAnnotation extends DataAnnotation>
java.lang.Object
PamguardMVC.dataSelector.DataSelector
annotation.dataselect.AnnotationDataSelector<TDataAnnotation>
annotation.dataselect.ScalarDataSelector<TDataAnnotation>
- Direct Known Subclasses:
ClassifierDataSelector
,SNRDataSelector
public abstract class ScalarDataSelector<TDataAnnotation extends DataAnnotation>
extends AnnotationDataSelector<TDataAnnotation>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionScalarDataSelector
(DataAnnotationType<TDataAnnotation> annotationType, PamDataBlock pamDataBlock, String selectorName, boolean allowScores, int useMinMax) -
Method Summary
Modifier and TypeMethodDescriptionGet selection parameters for more organised centralised storage.abstract double
getScalarValue
(TDataAnnotation annotation) int
void
setParams
(DataSelectParams dataSelectParams) Set selection parameters from centralised storage.void
setScalarDataParams
(ScalarDataParams scalarDataParams) Methods inherited from class annotation.dataselect.AnnotationDataSelector
getAnnotationType, getLongSelectorName, scoreData
Methods inherited from class PamguardMVC.dataSelector.DataSelector
findDataSelector, getDescription, getDialogButton, getDialogButton, getMenuItem, getPamDataBlock, getSelectorName, getSelectorTitle, getSQLSelectClause, isAllowScores, setSelectorTitle, showSelectDialog
-
Field Details
-
USE_MINIMUM
public static final int USE_MINIMUM- See Also:
-
USE_MAXIMUM
public static final int USE_MAXIMUM- See Also:
-
-
Constructor Details
-
ScalarDataSelector
public ScalarDataSelector(DataAnnotationType<TDataAnnotation> annotationType, PamDataBlock pamDataBlock, String selectorName, boolean allowScores, int useMinMax)
-
-
Method Details
-
getScalarDataParams
- Returns:
- the scalarDataParams
-
setScalarDataParams
- Parameters:
scalarDataParams
- the scalarDataParams to set
-
getUseMinMax
public int getUseMinMax()- Returns:
- the useMinMax
-
getScalarValue
-
setParams
Description copied from class:DataSelector
Set selection parameters from centralised storage.- Specified by:
setParams
in classDataSelector
-
getParams
Description copied from class:DataSelector
Get selection parameters for more organised centralised storage. This must never be null since all selectors have an enable / disable options added to them automatically in their dialogs.- Specified by:
getParams
in classDataSelector
- Returns:
-
getDialogPanel
- Specified by:
getDialogPanel
in classDataSelector
- Returns:
- a dialog panel which can be used in a wider dialog
-
getDialogPaneFX
- Specified by:
getDialogPaneFX
in classDataSelector
- Returns:
- a FX pane which can be used in a wider dialog
-