Class InvestigatorWorkspaceHelper


  • public class InvestigatorWorkspaceHelper
    extends adams.gui.workspace.AbstractWorkspaceHelper<InvestigatorPanel,​adams.gui.workspace.AbstractSerializableWorkspaceManagerPanel<InvestigatorPanel>>
    Helper class for Weka Investigator workspaces.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • InvestigatorWorkspaceHelper

        public InvestigatorWorkspaceHelper()
    • Method Detail

      • serialize

        public Object serialize​(InvestigatorPanel panel)
        Generates a view of the panel that can be serialized.
        Specified by:
        serialize in class adams.gui.workspace.AbstractWorkspaceHelper<InvestigatorPanel,​adams.gui.workspace.AbstractSerializableWorkspaceManagerPanel<InvestigatorPanel>>
        Parameters:
        panel - the panel to serialize
        Returns:
        the data to serialize
      • deserialize

        public void deserialize​(InvestigatorPanel panel,
                                Object data,
                                adams.core.MessageCollection errors)
        Deserializes the data and configures the panel.
        Specified by:
        deserialize in class adams.gui.workspace.AbstractWorkspaceHelper<InvestigatorPanel,​adams.gui.workspace.AbstractSerializableWorkspaceManagerPanel<InvestigatorPanel>>
        Parameters:
        panel - the panel to update
        data - the serialized data to restore the panel with
        errors - for storing errors