Class AbstractProbabilityPaintlet

    • Field Detail

      • m_Index

        protected int m_Index
        Index of the attribute in the instances
      • m_RegressionLine

        protected boolean m_RegressionLine
        Whether to draw a regression line
      • m_Size

        protected int m_Size
        Size of the points
      • m_Fill

        protected boolean m_Fill
        Whether to fill the data points
      • m_AxisLeft

        protected AxisPanel m_AxisLeft
        x axis of the plot
      • m_AxisBottom

        protected AxisPanel m_AxisBottom
        y axis of the plot
      • m_Sorted

        protected double[] m_Sorted
        the sorted data.
      • m_TransformedY

        protected double[] m_TransformedY
        Transformed data for the y axis
      • m_FillColor

        protected Color m_FillColor
        Color to fill data points
      • m_AntiAliasingEnabled

        protected boolean m_AntiAliasingEnabled
        whether anti-aliasing is enabled.
    • Constructor Detail

      • AbstractProbabilityPaintlet

        public AbstractProbabilityPaintlet()
    • Method Detail

      • setFillColor

        public void setFillColor​(Color val)
        Set the color for filling the data points
        Parameters:
        val - Color for filling points
      • getFillColor

        public Color getFillColor()
        get the color for filling the data points
        Returns:
        Color for filling the data points
      • fillColorTipText

        public String fillColorTipText()
        Tip text for the fill color property
        Returns:
        String describing the property
      • setFillPoint

        public void setFillPoint​(boolean val)
        Set whether the data points are filled with color
        Parameters:
        val - True if data points filled
      • getFillPoint

        public boolean getFillPoint()
        Get whether the data points should be filled with color
        Returns:
        True if filled
      • fillPointTipText

        public String fillPointTipText()
        Tip text for the fill point property
        Returns:
        String describing the property
      • setSize

        public void setSize​(int val)
        Set the size of the data points
        Parameters:
        val - Size of the data points in pixels
      • getSize

        public int getSize()
        Get the size of the data points
        Returns:
        Size of the points in pixels
      • sizeTipText

        public String sizeTipText()
        Tip text for the data point size property
        Returns:
      • setAntiAliasingEnabled

        public void setAntiAliasingEnabled​(boolean value)
        Sets whether to use anti-aliasing.
        Specified by:
        setAntiAliasingEnabled in interface AntiAliasingSupporter
        Parameters:
        value - if true then anti-aliasing is used
      • isAntiAliasingEnabled

        public boolean isAntiAliasingEnabled()
        Returns whether anti-aliasing is used.
        Specified by:
        isAntiAliasingEnabled in interface AntiAliasingSupporter
        Returns:
        true if anti-aliasing is used
      • antiAliasingEnabledTipText

        public String antiAliasingEnabledTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • configureAxes

        public abstract void configureAxes()
        Sets the axes to the correct type for the distribution.
      • calculateDimensions

        public abstract void calculateDimensions()
        For calculating the dimensions of the plot area.
      • setIndex

        public void setIndex​(int val)
        Set the index of the attribute used
        Parameters:
        val - Attribute index
      • setLine

        public void setLine​(boolean val)
        Set whether a regression line is drawn
        Parameters:
        val - True if regression line is to be drawn
      • hasFitLine

        public abstract boolean hasFitLine()
        Whether a regression line has been implemented for this regresion paintlet
        Returns:
        True if regression line implemented