nidaqdev
Class NIChannelListPanel

java.lang.Object
  extended by nidaqdev.NIChannelListPanel
All Implemented Interfaces:
ChannelListPanel

public class NIChannelListPanel
extends java.lang.Object
implements ChannelListPanel


Nested Class Summary
(package private)  class NIChannelListPanel.DeviceSelect
           
(package private)  class NIChannelListPanel.RangeSelect
           
 
Field Summary
private  javax.swing.JLabel[] channelLabels
           
private  javax.swing.JComboBox[] channelLists
           
private  javax.swing.JComboBox[] deviceLists
           
private  javax.swing.JLabel[] hiddenLabels
           
private  int nChannels
           
private  NIDAQProcess niDaqProcess
           
private  javax.swing.JPanel niPanel
           
private  javax.swing.JComboBox[] rangeLists
           
 
Constructor Summary
NIChannelListPanel(NIDAQProcess niDProcess)
           
 
Method Summary
protected  void enableMultiBoardOps()
           
 int[] getChannelList()
           
 java.awt.Component getComponent()
           
private  double[] getRange(int iSWChannel)
           
 boolean isDataOk()
           
protected  void setAllBoards(int boardNum)
           
private  void setDeviceHoverInfo(int iDevice)
           
private  void setDeviceRangeList(int iSWChannel)
           
 void setNumChannels(int nChannels)
          Set the total number of channels to display.
 void setParams(int[] channelList)
          Set the channel list.
private  boolean setRange(int iSWChannel, double[] range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

niDaqProcess

private NIDAQProcess niDaqProcess

niPanel

private javax.swing.JPanel niPanel

hiddenLabels

private javax.swing.JLabel[] hiddenLabels

channelLabels

private javax.swing.JLabel[] channelLabels

channelLists

private javax.swing.JComboBox[] channelLists

deviceLists

private javax.swing.JComboBox[] deviceLists

rangeLists

private javax.swing.JComboBox[] rangeLists

nChannels

private int nChannels
Constructor Detail

NIChannelListPanel

public NIChannelListPanel(NIDAQProcess niDProcess)
Method Detail

getChannelList

public int[] getChannelList()
Specified by:
getChannelList in interface ChannelListPanel
Returns:
the channel list

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface ChannelListPanel
Returns:
the component for the dialog panel.

setNumChannels

public void setNumChannels(int nChannels)
Description copied from interface: ChannelListPanel
Set the total number of channels to display.

Specified by:
setNumChannels in interface ChannelListPanel
Parameters:
nChannels - the total number of channels to display.

setParams

public void setParams(int[] channelList)
Description copied from interface: ChannelListPanel
Set the channel list.

Specified by:
setParams in interface ChannelListPanel
Parameters:
channelList - channel list

setAllBoards

protected void setAllBoards(int boardNum)

setRange

private boolean setRange(int iSWChannel,
                         double[] range)

getRange

private double[] getRange(int iSWChannel)

setDeviceHoverInfo

private void setDeviceHoverInfo(int iDevice)

setDeviceRangeList

private void setDeviceRangeList(int iSWChannel)

isDataOk

public boolean isDataOk()
Specified by:
isDataOk in interface ChannelListPanel
Returns:
true if the configuration seems to be valid (i.e. no repeated channels, etc)

enableMultiBoardOps

protected void enableMultiBoardOps()