Class GroupedChannelPaneFX

java.lang.Object
pamViewFX.fxNodes.utilityPanes.GroupedChannelPaneFX

public class GroupedChannelPaneFX extends Object
The grouping part of a grouped source pane which can be used separately from the entire grouped source pane.
Author:
Doug Gillespie
  • Field Details

  • Constructor Details

    • GroupedChannelPaneFX

      public GroupedChannelPaneFX()
  • Method Details

    • getContentNode

      public javafx.scene.Node getContentNode()
    • setChannelGroups

      public void setChannelGroups(int[] channelGroups)
    • isAutoGrouping

      public boolean isAutoGrouping()
    • setAutoGrouping

      public void setAutoGrouping(boolean autoGrouping)
    • setGrouping

      public void setGrouping(int groupType)
    • enableGroupBoxes

      public void enableGroupBoxes()
    • disableAll

      public void disableAll(boolean disable)
    • getGrouping

      public int getGrouping()
    • getChannelGroups

      public int[] getChannelGroups()
    • setParams

      public void setParams(GroupedSourceParameters params)
    • getParams

      public boolean getParams(GroupedSourceParameters params)
    • getGroupMap

      public static int getGroupMap(int channelMap, int[] groupList)
      Creates a bitmap for the groups, the same idea as a channelmap. The groupList array that is passed is of length [numChannels], and each index holds the group number for that channel (e.g. if channel 3 is in group 5, groupList[3]=5). For channels that are not in a group, the groupList array will hold a -1.
      Parameters:
      channelMap - the channels that are available
      groupList - an array of length [numChannels] holding the group number for each channel
      Returns:
    • countChannelGroups

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

      public static int getGroupChannels(int group, int channelMap, int[] groupList)
    • getGroupList

      public static String getGroupList(int group, int channelMap, int[] groupList)
    • getGroupIndex

      public static int getGroupIndex(int groupMap, int channelMap, int[] groupList)
    • getSourcePane

      public PamGridPane getSourcePane()
      Get the grid pane which all main nodes.
      Returns:
      the main source pane.
    • getChannelListPane

      public PamGridPane getChannelListPane()
      Get the channel list pane- this is the grid pane in which channels and combo boxes sit.
      Returns:
      channel list pane
    • getObservableProperty

      public javafx.beans.property.SimpleObjectProperty<GroupedSourceParameters> getObservableProperty()
      Returns:
      the observableProperty