Class ALTaskTextViewerPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class ALTaskTextViewerPanel
    extends JPanel
    This panel displays text. Used to output the results of tasks. In contrast to TastTextViewerPanel, this class supports multiple curves, standard deviations and two additional views, which display a varied parameter and the relative label acquisition rate (usually called budget).
    Version:
    $Revision: 1 $
    Author:
    Tim Sabsch (tim.sabsch@ovgu.de)
    See Also:
    Serialized Form
    • Constructor Detail

      • ALTaskTextViewerPanel

        public ALTaskTextViewerPanel()
    • Method Detail

      • setText

        public void setText​(Preview preview)
        Updates the preview table based on the information given by preview.
        Parameters:
        preview - the new information used to update the table
      • setErrorText

        public void setErrorText​(FailedTaskReport failedTaskReport)
        Displays the error message.
        Parameters:
        failedTaskReport - error message
      • setGraph

        public void setGraph​(Preview preview,
                             Color[] colors)
        Updates the graph based on the information given by the preview.
        Parameters:
        preview - information used to update the graph
        colors - color coding used to connect the tasks with the graphs
      • readCollection

        public moa.gui.active.ALTaskTextViewerPanel.ParsedPreview readCollection​(PreviewCollection<Preview> pc)
        Parses a PreviewCollection and return the resulting ParsedPreview object. If the PreviewCollection contains PreviewCollections again, it recursively adds their results. If it contains simple Previews, it adds their properties to the result.
        Parameters:
        pc - PreviewCollection
        Returns:
        relevant information contained in the PreviewCollection