Class AbstractOverlayPaintlet

    • Field Detail

      • m_XInd

        protected int m_XInd
        Index of the attribute displayed on the x axis
      • m_YInd

        protected int m_YInd
        Index of the attribute displayed on the y axis
      • m_Calculated

        protected boolean m_Calculated
        Whether the overlay has been calculated
      • m_AxisBottom

        protected AxisPanel m_AxisBottom
        X axis of scatter plot
      • m_AxisLeft

        protected AxisPanel m_AxisLeft
        y axis of scatter plot
    • Constructor Detail

      • AbstractOverlayPaintlet

        public AbstractOverlayPaintlet()
    • Method Detail

      • parameters

        public void parameters​(SpreadSheet data,
                               int x,
                               int y)
        Pass the parameters required by the overlay paintlet
        Parameters:
        data - instances to plot
        x - Index of attribute on x axis
        y - Index of attribute on y axis
      • setWindowSize

        public void setWindowSize​(int val)
        Set the window size, only applicable for the lowess overlay paintlet
        Parameters:
        val - int size of window
      • setIndicator

        public void setIndicator​(boolean val)
        Set whether an indicator should be shown on the sides
        Parameters:
        val - true if indicator shown
      • calculate

        public void calculate()
        Calculates the data for the paintlet, doesn't handle the drawing of the overlay. Sometimes just initializes the axispanels
      • drawData

        protected abstract void drawData​(Graphics g)
        Draw the overlay onto the scatter plot, only calculates the value to position in this method
        Parameters:
        g - Graphics drawn on
      • setCalculated

        public void setCalculated​(boolean val)
        set whether the paintlet has been calculated
        Parameters:
        val - True if paintlet calculated
      • getCalculated

        public boolean getCalculated()
        Get whether the paintlet has been calculated
        Returns:
        True if paintlet calculated