Class GroupedSourcePanel

java.lang.Object
PamView.dialog.SourcePanel
PamView.dialog.GroupedSourcePanel
All Implemented Interfaces:
ActionListener, EventListener

public class GroupedSourcePanel extends SourcePanel
  • Field Details

  • Constructor Details

    • GroupedSourcePanel

      public GroupedSourcePanel(Window ownerWindow, Class sourceType, boolean hasChannels, boolean includeSubClasses, boolean autoGrouping)
    • GroupedSourcePanel

      public GroupedSourcePanel(Window ownerWindow, String borderTitle, Class sourceType, boolean hasChannels, boolean includeSubClasses, boolean autoGrouping)
  • Method Details

    • setChannelGroups

      public void setChannelGroups(int[] channelGroups)
    • addComponent

      public static void addComponent(JPanel panel, Component p, GridBagConstraints constraints)
    • isAutoGrouping

      public boolean isAutoGrouping()
    • setAutoGrouping

      public void setAutoGrouping(boolean autoGrouping)
    • setGrouping

      public void setGrouping(int groupType)
    • enableGroupBoxes

      public void enableGroupBoxes()
    • getGrouping

      public int getGrouping()
    • getChannelGroups

      public int[] getChannelGroups()
      Returns the channel group assignment. The array returned is of length nChannels, and each index position 'i' holds the group number that is associated with channel 'i'
      Returns:
    • setParams

      public void setParams(GroupedSourceParameters params)
    • getParams

      public boolean getParams(GroupedSourceParameters params)
    • getGroupAssignments

      public static int[] getGroupAssignments(int channelMap, int[] groupList)
      Get a look up table which can assign individual channels to indexed groups.
      Parameters:
      channelMap - total channel map
      groupList - channel group assignments
      Returns:
      look up table from channels to groups. -1 where a channel isn't assigned.
    • getGroupMap

      public static int getGroupMap(int channelMap, int[] groupList)
    • countChannelGroups

      public static int countChannelGroups(int channelMap, int[] groupList)
      Count the number of separate channel groups
      Parameters:
      channelMap - total channel map
      groupList - channel group assignments
      Returns:
      number of groups
    • getGroupChannels

      public static int getGroupChannels(int group, int channelMap, int[] groupList)
      Get a bitmap of channels in the ith group
      Parameters:
      group - group number
      channelMap - total channel map
      groupList - channel group assignments
      Returns:
      bitmap of channels in the group
    • getGroupList

      public static String getGroupList(int group, int channelMap, int[] groupList)
      Get a string representation of the channels in a group
      Parameters:
      group - group index
      channelMap - total channel map
      groupList - channel group assignments
      Returns:
      string representation of the group
    • getGroupIndex

      public static int getGroupIndex(int groupMap, int channelMap, int[] groupList)
      Parameters:
      groupMap -
      channelMap -
      groupList -
      Returns: