Class BoxPlotManager

    • Field Detail

      • m_SplitPane

        protected BaseSplitPane m_SplitPane
        the split pane.
      • m_ModelAvailableAttributes

        protected DefaultListModel<String> m_ModelAvailableAttributes
        attributes that can be chosen
      • m_ModelChosenAttributes

        protected DefaultListModel<String> m_ModelChosenAttributes
        attributes that have been chosen
      • m_PanelRight

        protected JPanel m_PanelRight
        Panel for displaying box plots
      • m_Data

        protected SpreadSheet m_Data
        Instances to be graphed
      • m_WidthLeft

        protected int m_WidthLeft
        width of left hand panel of the box plot manager
      • m_Width

        protected int m_Width
        width of graphs drawn
      • m_Height

        protected int m_Height
        Height of graphs drawn
      • m_AxisWidth

        protected int m_AxisWidth
        width of the axis of each box plot
      • m_NumHorizontal

        protected int m_NumHorizontal
        Number of box plots to display horizontally
      • m_AxisSame

        protected boolean m_AxisSame
        whether the axis should have the same scale
      • m_Color

        protected Color m_Color
        Color to fill boxes with
      • m_Fill

        protected boolean m_Fill
        Whether boxes should be filled
      • m_SpinnerWidth

        protected JSpinner m_SpinnerWidth
        spinner to choose the width of each box plot
      • m_SpinnerHeight

        protected JSpinner m_SpinnerHeight
        Spinner to choose the height of each box plot
      • m_SpinnerAxisWid

        protected JSpinner m_SpinnerAxisWid
        spinner to choose the axis width of each box plot
      • m_CheckBoxSameAxis

        protected BaseCheckBox m_CheckBoxSameAxis
        select whether graphs have the same axis
      • m_Range

        protected Range m_Range
        Range of box plots to display initially
      • m_ButtonAdd

        protected BaseButton m_ButtonAdd
        Button to add selected attribute to chosen attributes list
      • m_ButtonAddAll

        protected BaseButton m_ButtonAddAll
        Button to add all attributes to chosen attributes list
      • m_ListAvailableAttributes

        protected BaseListWithButtons m_ListAvailableAttributes
        Object that contains a list and a group of buttons for choosing attributes
      • m_ListChosenAttributes

        protected BaseListWithButtons m_ListChosenAttributes
        Object that contains a list and a group of buttons for removing attributes
      • m_ButtonRemove

        protected BaseButton m_ButtonRemove
        Button to remove a selected attribute from chosen attributes list
      • m_ButtonRemoveAll

        protected BaseButton m_ButtonRemoveAll
        Button to remove all attributes from the chosen attributes list
      • m_PanelParams

        protected ParameterPanel m_PanelParams
        Object that contains a set of label and component objects, aids displaying
      • m_SpinnerGrid

        protected JSpinner m_SpinnerGrid
        Spinner for choosing the number of box plots to be displayed horizontally
      • m_CheckBoxFill

        protected BaseCheckBox m_CheckBoxFill
        Check box to choose if boxes should b filled
      • m_ButtonFillColor

        protected BaseButton m_ButtonFillColor
        Button to choose color of boxes
    • Constructor Detail

      • BoxPlotManager

        public BoxPlotManager()
    • Method Detail

      • initialize

        protected void initialize()
        Description copied from class: BasePanel
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the gui
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • setData

        public void setData​(SpreadSheet inst)
        sets the instances to be displayed
        Parameters:
        inst - Instances object for displaying
      • updateButtons

        protected void updateButtons()
        Updates whether each of the buttons can be pressed depending on the selected list objects
      • fillChange

        protected void fillChange​(ItemEvent val)
        Fill boxes check box is changed
        Parameters:
        val - the event
      • colorChange

        protected void colorChange()
        Color for box plots changes
      • updateGui

        protected void updateGui()
        Updates the state of gui components after options have been set
      • reset

        public void reset()
        Called when the fields set from the class that created this boxplotmanager object
      • addClicked

        protected void addClicked()
        adds attributes to selected attributes list
      • removeClicked

        protected void removeClicked()
        removes attribute from selected list and places in attribute list
      • removeAllClicked

        protected void removeAllClicked()
        removes all attributes from the chosen attribute list
      • addAllClicked

        protected void addAllClicked()
        Displays box plots for all attributes
      • spinWidthChange

        protected void spinWidthChange​(ChangeEvent e)
        Changes the width of the box plots
        Parameters:
        e - The event that occurred
      • spinHeightChange

        protected void spinHeightChange​(ChangeEvent e)
        Changes the height of the box plots
        Parameters:
        e - The event that occurred
      • spinAxisChange

        protected void spinAxisChange​(ChangeEvent e)
        Changes the width of the left axis on each box plot
        Parameters:
        e - The event that occurred
      • spinHorizontalChange

        protected void spinHorizontalChange​(ChangeEvent e)
        Change the number of box plots to be displayed in each row
        Parameters:
        e - The event that occured
      • sameAxisChange

        protected void sameAxisChange​(ItemEvent e)
        Sets the axis scale to be the same for each box plot
        Parameters:
        e - The event that occured
      • setBoxWidth

        public void setBoxWidth​(int val)
        Set the width of each box plot
        Parameters:
        val - Width in pixels
      • getBoxWidth

        public int getBoxWidth()
        Get the width of each box plot drawn
        Returns:
        Width in pixels
      • setBoxHeight

        public void setBoxHeight​(int val)
        Set the height of each box plot drawn
        Parameters:
        val - Height in pixels
      • getBoxHeight

        public int getBoxHeight()
        Get the height of each box plot
        Returns:
        Height in pixels
      • setAxisWidth

        public void setAxisWidth​(int val)
        Set the width of the left axis for each box plot
        Parameters:
        val - Width in pixels
      • getAxisWidth

        public int getAxisWidth()
        Get the width of the left axis for each boxplot
        Returns:
        Width in pixels
      • setNumHorizontal

        public void setNumHorizontal​(int val)
        Set the number of box plots to display on each row
        Parameters:
        val - number on each row
      • getNumHorizontal

        public int getNumHorizontal()
        Get the number of box plots to display on each row
        Returns:
        Number in each row
      • setSameAxis

        public void setSameAxis​(boolean val)
        Set whether each box plot should have the same axis scale
        Parameters:
        val - true if same axis
      • getSameAxis

        public boolean getSameAxis()
        get whether the box plots should all use the same axis scale
        Returns:
        true if they use the same axis scale
      • setRange

        public void setRange​(Range val)
        Set the range of box plots to display initially
        Parameters:
        val - Range object containing range of attributes
      • getRange

        public Range getRange()
        Get the range of box plots to be displayed initially
        Returns:
        The range of box plots to display
      • setFill

        public void setFill​(boolean val)
        Set whether the boxes should be filled with color
        Parameters:
        val - True if filled
      • getFill

        public boolean getFill()
        Returns whether the boxes should be filled with color.
        Returns:
        true if filled
      • setColor

        public void setColor​(Color val)
        Set the color to fill the boxes with
        Parameters:
        val - Color to fill
      • getColor

        public Color getColor()
        Returns the color to fill the boxes with.
        Returns:
        the fill color
      • update

        protected void update()
        Update the display with box plots required
      • painted

        public void painted​(PaintEvent e)
        Controls the painting of the box plots
        Specified by:
        painted in interface PaintListener
        Parameters:
        e - the event