Package analoginput.swing
Class AnalogChannelPanel
java.lang.Object
analoginput.swing.AnalogChannelPanel
- All Implemented Interfaces:
PamDialogPanel
Construct a dialog panel with range information for a list of named channels
- Author:
- dg50
-
Constructor Summary
ConstructorDescriptionAnalogChannelPanel
(SensorChannelInfo[] sensorChannelInfos, int maxChannel, List<AnalogRangeData> rangeList, boolean allowNones) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enableItem
(int item) getDeviceParams
(AnalogDeviceParams deviceParams) Get the awt component which will be incorporated into a larger display panel / component.getItemCalibration
(int item) getItemRange
(int iItem) boolean
void
setDeviceParams
(AnalogDeviceParams deviceParams) void
setItemCalibration
(int item, CalibrationData calData) boolean
setItemRange
(int iItem, AnalogRangeData rangeData) void
Set the initial parameter values in the panel.
-
Constructor Details
-
AnalogChannelPanel
public AnalogChannelPanel(SensorChannelInfo[] sensorChannelInfos, int maxChannel, List<AnalogRangeData> rangeList, boolean allowNones)
-
-
Method Details
-
setItemRange
-
getItemRange
-
setDeviceParams
-
setItemCalibration
-
getItemCalibration
-
getDeviceParams
-
getDialogComponent
Description copied from interface:PamDialogPanel
Get the awt component which will be incorporated into a larger display panel / component.- Specified by:
getDialogComponent
in interfacePamDialogPanel
- Returns:
- an awt component.
-
setParams
public void setParams()Description copied from interface:PamDialogPanel
Set the initial parameter values in the panel. Since this interface is purely abstract, the type of parameter is unknown, so concrete implementations will somehow have to pass the class containing the parameter information in some other way.- Specified by:
setParams
in interfacePamDialogPanel
-
getParams
public boolean getParams()- Specified by:
getParams
in interfacePamDialogPanel
- Returns:
- true if parameters all have acceptable values and the dialog can close.
-
enableItem
public void enableItem(int item)
-