Class AbstractChartMeasurement
- java.lang.Object
-
- de.gsi.chart.plugins.measurements.AbstractChartMeasurement
-
- All Implemented Interfaces:
de.gsi.dataset.event.EventListener,de.gsi.dataset.event.EventSource
- Direct Known Subclasses:
DataSetMeasurements,SimpleMeasurements
public abstract class AbstractChartMeasurement extends java.lang.Object implements de.gsi.dataset.event.EventListener, de.gsi.dataset.event.EventSourceMeasurements that can be added to a chart and show a scalar result value in the measurement pane.- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.scene.control.Alertalertprotected AxisModeaxisModeprotected javafx.scene.control.ButtonTypebuttonDefaultprotected javafx.scene.control.ButtonTypebuttonOKprotected javafx.scene.control.ButtonTypebuttonRemoveprotected DataSetSelectordataSetSelectorprotected static doubleDEFAULT_MAXprotected static doubleDEFAULT_MINstatic intDEFAULT_SMALL_AXISprotected static longDEFAULT_UPDATE_RATE_LIMITprotected java.text.DecimalFormatformatterLargeprotected java.text.DecimalFormatformatterSmallprotected javafx.scene.layout.GridPanegridPaneprotected intlastLayoutRowprotected intrequiredNumberOfDataSetsprotected intrequiredNumberOfIndicatorsprotected static intSMALL_FORMAT_THRESHOLDprotected ValueIndicatorSelectorvalueIndicatorSelector
-
Constructor Summary
Constructors Constructor Description AbstractChartMeasurement(ParameterMeasurements plugin, java.lang.String measurementName, AxisMode axisMode, int requiredNumberOfIndicators, int requiredNumberOfDataSets)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddMinMaxRangeFields()java.util.concurrent.atomic.AtomicBooleanautoNotification()protected voidcleanUpSuperfluousIndicators()javafx.beans.property.ObjectProperty<de.gsi.dataset.DataSet>dataSetProperty()protected voiddefaultAction(java.util.Optional<javafx.scene.control.ButtonType> result)de.gsi.dataset.DataSetgetDataSet()DataViewWindowgetDataViewWindow()protected javafx.scene.layout.GridPanegetDialogContentBox()javafx.scene.layout.PanegetDisplayPane()Deprecated.protected static AxisgetFirstAxisForDataSet(Chart chart, de.gsi.dataset.DataSet dataSet, boolean isHorizontal)ParameterMeasurementsgetMeasurementPlugin()java.lang.StringgetTitle()CheckedValueFieldgetValueField()javafx.collections.ObservableList<AbstractSingleValueIndicator>getValueIndicators()javafx.collections.ObservableList<AbstractSingleValueIndicator>getValueIndicatorsUser()abstract voidinitialize()protected voidnominalAction()protected voidremoveAction()protected voidremoveSliderChangeListener()voidsetDataSet(de.gsi.dataset.DataSet value)voidsetTitle(java.lang.String title)protected static intshiftGridPaneRowOffset(java.util.List<javafx.scene.Node> nodes, int minRowOffset)java.util.Optional<javafx.scene.control.ButtonType>showConfigDialogue()javafx.beans.property.StringPropertytitleProperty()java.util.List<de.gsi.dataset.event.EventListener>updateEventListener()protected voidupdateSlider()protected AbstractSingleValueIndicatorupdateSlider(int requestedIndex)javafx.beans.property.DoublePropertyvalueProperty()
-
-
-
Field Detail
-
DEFAULT_MIN
protected static final double DEFAULT_MIN
- See Also:
- Constant Field Values
-
DEFAULT_MAX
protected static final double DEFAULT_MAX
- See Also:
- Constant Field Values
-
DEFAULT_UPDATE_RATE_LIMIT
protected static final long DEFAULT_UPDATE_RATE_LIMIT
- See Also:
- Constant Field Values
-
SMALL_FORMAT_THRESHOLD
protected static final int SMALL_FORMAT_THRESHOLD
- See Also:
- Constant Field Values
-
DEFAULT_SMALL_AXIS
public static final int DEFAULT_SMALL_AXIS
- See Also:
- Constant Field Values
-
formatterSmall
protected final java.text.DecimalFormat formatterSmall
-
formatterLarge
protected final java.text.DecimalFormat formatterLarge
-
alert
protected final javafx.scene.control.Alert alert
-
buttonOK
protected final javafx.scene.control.ButtonType buttonOK
-
buttonDefault
protected final javafx.scene.control.ButtonType buttonDefault
-
buttonRemove
protected final javafx.scene.control.ButtonType buttonRemove
-
dataSetSelector
protected final DataSetSelector dataSetSelector
-
valueIndicatorSelector
protected final ValueIndicatorSelector valueIndicatorSelector
-
lastLayoutRow
protected int lastLayoutRow
-
requiredNumberOfIndicators
protected final int requiredNumberOfIndicators
-
requiredNumberOfDataSets
protected final int requiredNumberOfDataSets
-
gridPane
protected final javafx.scene.layout.GridPane gridPane
-
axisMode
protected final AxisMode axisMode
-
-
Constructor Detail
-
AbstractChartMeasurement
public AbstractChartMeasurement(ParameterMeasurements plugin, java.lang.String measurementName, AxisMode axisMode, int requiredNumberOfIndicators, int requiredNumberOfDataSets)
-
-
Method Detail
-
autoNotification
public java.util.concurrent.atomic.AtomicBoolean autoNotification()
- Specified by:
autoNotificationin interfacede.gsi.dataset.event.EventSource
-
dataSetProperty
public javafx.beans.property.ObjectProperty<de.gsi.dataset.DataSet> dataSetProperty()
-
getDataSet
public de.gsi.dataset.DataSet getDataSet()
-
getDataViewWindow
public DataViewWindow getDataViewWindow()
-
getDisplayPane
@Deprecated public javafx.scene.layout.Pane getDisplayPane()
Deprecated.
-
getMeasurementPlugin
public ParameterMeasurements getMeasurementPlugin()
-
getTitle
public java.lang.String getTitle()
-
getValueField
public CheckedValueField getValueField()
-
getValueIndicators
public javafx.collections.ObservableList<AbstractSingleValueIndicator> getValueIndicators()
-
getValueIndicatorsUser
public javafx.collections.ObservableList<AbstractSingleValueIndicator> getValueIndicatorsUser()
-
initialize
public abstract void initialize()
-
setDataSet
public void setDataSet(de.gsi.dataset.DataSet value)
-
setTitle
public void setTitle(java.lang.String title)
-
showConfigDialogue
public java.util.Optional<javafx.scene.control.ButtonType> showConfigDialogue()
-
titleProperty
public javafx.beans.property.StringProperty titleProperty()
-
updateEventListener
public java.util.List<de.gsi.dataset.event.EventListener> updateEventListener()
- Specified by:
updateEventListenerin interfacede.gsi.dataset.event.EventSource
-
valueProperty
public javafx.beans.property.DoubleProperty valueProperty()
-
addMinMaxRangeFields
protected void addMinMaxRangeFields()
-
defaultAction
protected void defaultAction(java.util.Optional<javafx.scene.control.ButtonType> result)
-
getDialogContentBox
protected javafx.scene.layout.GridPane getDialogContentBox()
-
nominalAction
protected void nominalAction()
-
removeAction
protected void removeAction()
-
removeSliderChangeListener
protected void removeSliderChangeListener()
-
cleanUpSuperfluousIndicators
protected void cleanUpSuperfluousIndicators()
-
updateSlider
protected void updateSlider()
-
updateSlider
protected AbstractSingleValueIndicator updateSlider(int requestedIndex)
-
getFirstAxisForDataSet
protected static Axis getFirstAxisForDataSet(Chart chart, de.gsi.dataset.DataSet dataSet, boolean isHorizontal)
-
shiftGridPaneRowOffset
protected static int shiftGridPaneRowOffset(java.util.List<javafx.scene.Node> nodes, int minRowOffset)
-
-