Class BoxPlotGraph

    • Field Detail

      • m_Median

        protected double m_Median
        median for attribute
      • m_Lower

        protected double m_Lower
        lower quartile for attribute
      • m_Upper

        protected double m_Upper
        upper quartile for attribute
      • m_Min

        protected double m_Min
        Minimum value for attribute
      • m_Max

        protected double m_Max
        maximum value for attribute
      • m_Data

        protected double[] m_Data
        array for each value within an attribute
      • m_Fill

        protected boolean m_Fill
        Fill each of the boxes with color
      • m_Color

        protected Color m_Color
        Color to fill the boxes
    • Constructor Detail

      • BoxPlotGraph

        public BoxPlotGraph()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class PlotPanel
      • pass

        public void pass​(SpreadSheet data,
                         String att)
        Passes in the data to construct the box plot graph
        Parameters:
        data - Instance data
        att - Attribute being graphed in this box plot
      • paintPlot

        public void paintPlot​(Graphics g)
        Performs the painting on the graphics area
        Parameters:
        g - Graphics object for painting on
      • axisSame

        public void axisSame​(double max,
                             double min)
        Axis are the same for each graph, this sets boundary values
        Parameters:
        max - Maximum y value
        min - Minimum y value
      • setFill

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

        public void setColor​(Color val)
        Set the color used to fill the plots
        Parameters:
        val - color of box plots