Class VsFitPaintlet

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, ShallowCopySupporter<Paintlet>, SizeOfHandler, AntiAliasingSupporter, Paintlet, Serializable

    public class VsFitPaintlet
    extends AbstractColorPaintlet
    implements AntiAliasingSupporter
    Paints the data for the versus fit graph

    Valid options are:

    -D <int> (property: debugLevel)
        The greater the number the more additional info the scheme may output to
        the console (0 = off).
        default: 0
        minimum: 0
    -stroke-thickness <float> (property: strokeThickness)
        The thickness of the stroke.
        default: 1.0
        minimum: 0.01
    -color <java.awt.Color> (property: color)
        Stroke color for the paintlet
        default: #000000
    -size <int> (property: size)
        Size of the data points
        default: 5
    -fill-point (property: fillPoint)
        Whether to fill the data point with solid color
    -fill-color <java.awt.Color> (property: fillColor)
        color for filling the data points
        default: #ff0000
    See Also:
    Serialized Form
    • Field Detail

      • m_Index

        protected int m_Index
        Index of residuals in the instances
      • m_PredInd

        protected int m_PredInd
        Index of the predicted attribute in the instances
      • m_Fill

        protected boolean m_Fill
        Whether to fill data points
      • m_Size

        protected int m_Size
        Size of data points
      • m_FillColor

        protected Color m_FillColor
        Color for filling data points
      • m_AntiAliasingEnabled

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

      • VsFitPaintlet

        public VsFitPaintlet()
    • Method Detail

      • setFillPoint

        public void setFillPoint​(boolean val)
        Set whether data points should be filled
        val - True if points filled
      • getFillPoint

        public boolean getFillPoint()
        get whether the data points should be filled
        True if points filled
      • fillPointTipText

        public String fillPointTipText()
        Tip text for the fill points property
        String describing the property
      • setFillColor

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

        public Color getFillColor()
        Get the color for filling the data points
        Color for fill
      • fillColorTipText

        public String fillColorTipText()
        Tip text for the color property
        String describing the property
      • setSize

        public void setSize​(int val)
        Set the size of each data point
        val - Size in pixels
      • getSize

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

        public String sizeTipText()
        Tip text for the size property
        String describing the property
      • setAntiAliasingEnabled

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

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

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

        public void setIndices​(int res,
                               int pred)
        Set the indices of the residuals attribute and the predicted attribute in the instances
        res - index of residuals attribute
        pred - index of predicted attribute