Class VisualizeFeaturesPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, weka.gui.Perspective

    public class VisualizeFeaturesPanel
    extends weka.gui.AbstractPerspective
    This is VisualizeFeatures tab main panel which loads data stream and shows other sub panels. This panel refers to weka.gui.explorer.PreprocessPanel.
    Author:
    Richard Kirkby (rkirkby@cs.waikato.ac.nz), Len Trigg (trigg@cs.waikato.ac.nz), Yongheng Ma (2560653665@qq.com)
    See Also:
    Serialized Form
    • Field Detail

      • m_InstSummaryPanel

        protected InstancesSummaryPanel m_InstSummaryPanel
        Displays simple stats on the working instances
      • m_OpenFileBut

        protected JButton m_OpenFileBut
        Click to load base instances from a file
      • m_RemoveButton

        protected JButton m_RemoveButton
        Button for removing attributes
      • m_SaveBut

        protected JButton m_SaveBut
        Click to apply filters and save the results
      • m_plotAmplify

        protected JButton m_plotAmplify
        Click to amplify line graph or scatter diagram so that user can see plot more clearly
      • m_startIndex

        protected JLabel m_startIndex
        The start instance index label to prompt user to input start index number
      • m_endIndex

        protected JLabel m_endIndex
        The start instance index label to prompt user to input end index number
      • m_intStartIndex

        protected int m_intStartIndex
        The start instance index of x axis for line graph or scatter diagram
      • m_intEndIndex

        protected int m_intEndIndex
        The end instance index of x axis for line graph or scatter diagram
      • m_visAllGraphBut

        protected JButton m_visAllGraphBut
        Visualize all line graphs or scatter diagrams, not histograms or bar charts
      • m_startInstanceInput

        protected JFormattedTextField m_startInstanceInput
        Format m_intStartIndex
      • m_AttSummaryPanel

        protected AttributeSummaryPanel m_AttSummaryPanel
        Displays summary stats on the selected attribute
      • m_FileChooser

        protected weka.gui.ConverterFileChooser m_FileChooser
        The file chooser for selecting data files
      • m_Instances

        protected Instances m_Instances
        The working instances
      • m_Support

        protected PropertyChangeSupport m_Support
        Manages sending notifications to people when we change the set of working instances.
      • m_IOThread

        protected Thread m_IOThread
        A thread for loading/saving instances from a file or URL
      • m_Log

        protected weka.gui.Logger m_Log
        The message logger
      • m_samoaToWekaInstanceConverter

        protected SamoaToWekaInstanceConverter m_samoaToWekaInstanceConverter
        Instance converter from Samoa instance to Weak Instance
      • m_wekaToSamoaInstanceConverter

        protected WekaToSamoaInstanceConverter m_wekaToSamoaInstanceConverter
        Instance converter from Weak instance to Samoa Instance
      • m_plotTypeBox

        protected JComboBox m_plotTypeBox
        plot type drop list: "plot type: Line graph" "plot type: Scatter diagram" "No plot type"
      • m_selectedPlotTypeIndex

        protected int m_selectedPlotTypeIndex
        The index of the selected plot type index
      • m_featureRangeBox

        protected JComboBox m_featureRangeBox
        Set feature range shown in a popup window In default, Nine plots is shown in every popup window at most.
      • m_graphPanel

        protected LineAndScatterPanel m_graphPanel
        This panel is used to draw line graphs or scatter diagrams
      • m_sendToPerspective

        protected JMenu m_sendToPerspective
        For sending instances to various perspectives/tabs
    • Constructor Detail

      • VisualizeFeaturesPanel

        public VisualizeFeaturesPanel()
        Creates the instances panel with no initial instances.
    • Method Detail

      • startIndexValidation

        public boolean startIndexValidation​(int startIndex)
      • endIndexValidation

        public boolean endIndexValidation​(int endIndex)
      • setLog

        public void setLog​(weka.gui.Logger newLog)
        Sets the Logger to receive informational messages
        Specified by:
        setLog in interface weka.gui.Perspective
        Overrides:
        setLog in class weka.gui.AbstractPerspective
        Parameters:
        newLog - the Logger that will now get info messages
      • setInstances

        public void setInstances​(Instances inst)
        Tells the panel to use a new base set of instances.
        Parameters:
        inst - a set of Instances
      • featureRangeBoxSet

        public void featureRangeBoxSet​(int numAttributes,
                                       int maxFeaturesInOneScreen)
      • getInstances

        public Instances getInstances()
        Gets the working set of instances.
        Returns:
        the working instances
      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener l)
        Adds a PropertyChangeListener who will be notified of value changes.
        Overrides:
        addPropertyChangeListener in class Container
        Parameters:
        l - a value of type 'PropertyChangeListener'
      • applyFilter

        protected void applyFilter​(weka.filters.Filter filter)
        Passes the dataset through the filter that has been configured for use.
        Parameters:
        filter - the filter to apply
      • setInstancesFromFileQ

        public void setInstancesFromFileQ()
        Queries the user for a file to load instances from, then loads the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy.
      • setInstancesFromFile2

        public void setInstancesFromFile2​(String selectedFile)
      • saveWorkingInstancesToFileQ

        public void saveWorkingInstancesToFileQ()
        Queries the user for a file to save instances as, then saves the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy.
      • saveInstancesToFile

        public void saveInstancesToFile​(weka.core.converters.AbstractFileSaver saver,
                                        weka.core.Instances inst)
        saves the data with the specified saver
        Parameters:
        saver - the saver to use for storing the data
        inst - the data to save
      • instantiationComplete

        public void instantiationComplete()
        We've been instantiated and now have access to the main application and PerspectiveManager
        Specified by:
        instantiationComplete in interface weka.gui.Perspective
        Overrides:
        instantiationComplete in class weka.gui.AbstractPerspective
      • main

        public static void main​(String[] args)
        Tests out the instance-preprocessing panel from the command line.
        Parameters:
        args - ignored