Package Array.layoutFX
Class SensorSourcePane
java.lang.Object
Array.layoutFX.SensorSourcePane
-
Constructor Summary
ConstructorDescriptionSensorSourcePane
(ArraySensorFieldType sensorType, boolean fixedOption, boolean defaultOption) -
Method Summary
Modifier and TypeMethodDescriptionvoid
javafx.scene.Node
getPane()
Get the sensor pane.Get the type of parameter being used, fixed, default or sensorGet the type of sensor.boolean
setDataBlock
(PamDataBlock aDataBlock) Set the selected datablock for sensor data.void
setOnAction
(javafx.event.EventHandler<javafx.event.ActionEvent> e) void
setParameterType
(ArrayParameterType paramType) Set the type of parameter being used, fixed, default or sensor
-
Constructor Details
-
SensorSourcePane
public SensorSourcePane(ArraySensorFieldType sensorType, boolean fixedOption, boolean defaultOption)
-
-
Method Details
-
getSensorType
Get the type of sensor.- Returns:
- the type of sensor.
-
setOnAction
public void setOnAction(javafx.event.EventHandler<javafx.event.ActionEvent> e) -
fillDropDown
public void fillDropDown() -
setParameterType
Set the type of parameter being used, fixed, default or sensor- Parameters:
paramType
-
-
getParameterType
Get the type of parameter being used, fixed, default or sensor- Returns:
-
setDataBlock
Set the selected datablock for sensor data. Before calling this, you should call fillDropDown to make sure list of blocks is up to date.- Parameters:
aDataBlock
- datablock to select- Returns:
- true if that block was selected OK, i.e. it was in the list.
-
getDataBlock
- Returns:
- Currently selected datablock for this sensor (can be null)
-
getPane
public javafx.scene.Node getPane()Get the sensor pane.- Returns:
- the sensor pane
-