Class ZScore

    • Field Detail

      • m_Plot

        protected ZScorePanel m_Plot
        z score plot to be displayed
      • m_Data

        protected SpreadSheet m_Data
        Instances to be displayed
      • m_Index

        protected int m_Index
        Index of the attribute to be plotted
      • m_Att

        protected BaseComboBox m_Att
        combo box for attribute selection
      • m_PanelPaintlet

        protected GenericObjectEditorPanel m_PanelPaintlet
        For displaying a generic object editor for choosing the paintlet
      • m_PanelOverlay

        protected GenericArrayEditorPanel m_PanelOverlay
        For displaying a generic array editor for choosing overlays
      • m_Key

        protected JPanel m_Key
        Panel for displaying the key
      • m_AttReg

        protected BaseRegExp m_AttReg
        String for regular expression
      • m_AttIndex

        protected Index m_AttIndex
        Index for choosing attribute
      • m_Detect

        protected ZScoreHitDetector m_Detect
        Hit detector for tip text and pop up menu
      • m_NumDialogs

        protected int m_NumDialogs
        number of instance explorer panels displayed
      • m_SplitPane

        protected BaseSplitPane m_SplitPane
        the split pane.
      • m_FileChooser

        protected SpreadSheetFileChooser m_FileChooser
        the file chooser for saving a specific sequence.
    • Constructor Detail

      • ZScore

        public ZScore()
    • Method Detail

      • setData

        public void setData​(SpreadSheet data)
        set the instances to be used when drawing the z score graph
        data -
      • getData

        public SpreadSheet getData()
        Get the instances being used by the z score plot
        instances used
      • getPlot

        public PlotPanel getPlot()
        Returns the plot panel of the panel, null if no panel present.
        Specified by:
        getPlot in class PaintablePanel
        the plot panel
      • prepareUpdate

        public void prepareUpdate()
        Prepares the update, i.e., calculations etc.
        Specified by:
        prepareUpdate in class PaintablePanel
      • canPaint

        protected boolean canPaint​(Graphics g)
        Description copied from class: PaintablePanel
        Returns true if the paintlets can be executed.
        Specified by:
        canPaint in class PaintablePanel
        g - the graphics context
        true if painting can go ahead
      • reset

        public void reset()
        called by the class that creates this z score plot called after the fields have all been set
      • removeOverlays

        public void removeOverlays()
        remove existing overlays and their paintlets
      • changePaintlet

        protected void changePaintlet()
        called when the paintlet used is changed
      • initGUI

        protected void initGUI()
        Description copied from class: BasePanel
        For initializing the GUI.
        initGUI in class BasePanel
      • change

        public void change()
        prepare for displaying
      • getIndex

        public int getIndex()
        get the index of the attribute being displayed
        index of attribute
      • setOverlays

        public void setOverlays​(AbstractZScoreOverlay[] val)
        set the overlays to be displayed on the z score
        val - Array of overlays
      • setPaintlet

        public void setPaintlet​(AbstractZScorePaintlet val)
        Set the paintlet to be used when plotting the data
        val - Paintlet for plotting
      • setAttReg

        public void setAttReg​(BaseRegExp val)
        Set the regular expression used when choosing the attribute
        val - String for regular expression
      • setAttindex

        public void setAttindex​(Index val)
        Set the index to use when setting the attribute using an index
        val - index for choosing attribute
      • processTipText

        public String processTipText​(PlotPanel panel,
                                     Point mouse,
                                     String tiptext)
        Description copied from interface: TipTextCustomizer
        Processes the given tip text. Among the current mouse position, the panel that initiated the call are also provided.
        Specified by:
        processTipText in interface TipTextCustomizer
        panel - the content panel that initiated this call
        mouse - the mouse position
        tiptext - the tiptext so far
        the processed tiptext
      • showData

        protected void showData()
        Displays the data as spreadsheet.
      • save

        protected void save()
        Saves the data as spreadsheet.
      • setOptionsVisible

        public void setOptionsVisible​(boolean value)
        Sets whether to hide/show the options panel.
        value - if true then the options are visible
      • getOptionsVisible

        public boolean getOptionsVisible()
        Returns whether to hide/show the options panel.
        true if the options are visible