Class DataContainerPanelWithContainerList<T extends DataContainer,​M extends AbstractContainerManager,​C extends AbstractContainer>

    • Constructor Detail

      • DataContainerPanelWithContainerList

        public DataContainerPanelWithContainerList()
        Initializes the panel without title.
      • DataContainerPanelWithContainerList

        public DataContainerPanelWithContainerList​(String title)
        Initializes the panel with the given title.
        Parameters:
        title - the title for the panel
    • Method Detail

      • createContainerList

        protected abstract AbstractContainerList<M,​C> createContainerList()
        Returns the container list.
        Returns:
        the list
      • getContainerList

        public AbstractContainerList<M,​C> getContainerList()
        Returns the panel listing the spectrums.
        Returns:
        the panel
      • getTableModelIndices

        public int[] getTableModelIndices​(boolean visible)
        Returns the indices of the visible/hidden containers from the table model (if container manager supports visibility).
        Parameters:
        visible - whether to return the visible or hidden ones
        Returns:
        the indices
      • getTableModelContainers

        public List<C> getTableModelContainers​(boolean visible)
        Returns the visible containers from the table model (if container manager supports visibility).
        Parameters:
        visible - whether to return the visible or hidden ones
        Returns:
        the containers
      • getSelectedContainerIndices

        public int[] getSelectedContainerIndices​(ContainerTable<M,​C> table,
                                                 int row)
        Returns the actual indices in the container manager of the selected containers.
        Parameters:
        row - the current row (used if no rows selected in table)
        Returns:
        the actual indices as used by the container manager
      • getActualSelectedContainerIndices

        public int[] getActualSelectedContainerIndices​(ContainerTable<M,​C> table,
                                                       int row)
        Returns the actual indices in the container manager of the selected containers.
        Parameters:
        row - the current row (used if no rows selected in table)
        Returns:
        the actual indices as used by the container manager
      • getDataPaintlet

        public abstract Paintlet getDataPaintlet()
        Returns the paintlet used for painting the data.
        Returns:
        the paintlet
      • setDataPaintlet

        public abstract void setDataPaintlet​(Paintlet value)
        Sets the paintlet to use for painting the data.
        Parameters:
        value - the paintlet
      • processAction

        public String processAction​(String action)
        Hook method for processing the name of the scripting action.
        Parameters:
        action - the action to process
        Returns:
        the (potentially) updated name
      • showNotes

        public void showNotes​(List<C> data)
        Displays the notes for the given chromatograms.
        Parameters:
        data - the chromatograms to display
      • supportsStoreColorInReport

        public abstract boolean supportsStoreColorInReport()
        Returns true if storing the color in the report of container's data object is supported.
        Returns:
        true if supported
      • storeColorInReport

        public abstract void storeColorInReport​(int[] indices,
                                                String name)
        Stores the color of the container in the report of container's data object.
        Parameters:
        indices - the indices of the containers of the container manager
        name - the field name to use
      • supportsStoreValueInReport

        public abstract boolean supportsStoreValueInReport()
        Returns true if storing a value in the report of container's data object is supported.
        Returns:
        true if supported
      • storeValueInReport

        public abstract void storeValueInReport​(int[] indices,
                                                AbstractField field,
                                                Object value)
        Stores the value in the report of container's data object.
        Parameters:
        indices - the indices of the containers of the container manager
        field - the field to use
        value - the value to store