Class MetaMainTask

    • Field Detail

      • isLastSubtaskOnLevel

        protected boolean[] isLastSubtaskOnLevel
      • nameSuffix

        protected String nameSuffix
      • colorCoding

        protected Color colorCoding
    • Constructor Detail

      • MetaMainTask

        public MetaMainTask()
    • Method Detail

      • getSubtaskThreads

        public abstract List<? extends TaskThread> getSubtaskThreads()
        Get the list of threads for all subtasks and recursively the children's subtasks.
        Returns:
        list of subtask threads, recursively generated
      • getDisplayName

        public String getDisplayName()
        Get the task's display name consisting of the general task name, indentation showing the tree structure depending on the subtask level and optionally a name suffix given from a supertask.
        Returns:
        display name
      • setNameSuffix

        public void setNameSuffix​(String suffix)
        Set a suffix for the tasks display name.
        Parameters:
        suffix -
      • setIsLastSubtaskOnLevel

        public void setIsLastSubtaskOnLevel​(boolean[] parentIsLastSubtaskList,
                                            boolean isLastSubtask)
        Set the list of booleans indicating if the current branch in the subtask tree is the last one on its respective level.
        Parameters:
        parentIsLastSubtaskList - the internal list of the parent
        isLastSubtask - if the current subtask is the parents last one
      • getSubtaskLevel

        public int getSubtaskLevel()
        Get the tasks subtask level (how deep it is in the tree). 0 is the root task level.
        Returns:
      • isSubtask

        public boolean isSubtask()
        Check if the task is a subtask of another parent.
        Returns:
        true if the task is a subtask
      • setColorCoding

        public void setColorCoding​(Color newColorCoding)
        Set the color coding for this task (the color which is used for multi-curve plots).
        Parameters:
        newColorCoding - the new color coding for this task
      • getColorCoding

        public Color getColorCoding()
        Get the color coding for this task (the color which is used for multi-curve plots).
        Returns:
        the color coding for this task