Class AbstractScatterPlotPaintlet

    • Field Detail

      • m_XIndex

        protected int m_XIndex
        index of attribute for x axis
      • m_YIndex

        protected int m_YIndex
        Index of attribute for y axis
      • m_ColorIndex

        protected int m_ColorIndex
        the index of the categorical attriute for the coloring.
      • m_Size

        protected int m_Size
        size of the plot points
      • m_XData

        protected double[] m_XData
        Data to display on the x axis
      • m_YData

        protected double[] m_YData
        Data to display on the y axis
      • m_ColorData

        protected String[] m_ColorData
        the values of the coloring axis.
      • m_ColorMapping

        protected Map<String,​Color> m_ColorMapping
        the value - color association.
      • m_ColorProvider

        protected ColorProvider m_ColorProvider
        the color provider for the coloring.
      • m_AxisLeft

        protected AxisPanel m_AxisLeft
        y axis of plot
      • m_AxisBottom

        protected AxisPanel m_AxisBottom
        x axis of plot
      • m_AntiAliasingEnabled

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

      • AbstractScatterPlotPaintlet

        public AbstractScatterPlotPaintlet()
    • Method Detail

      • 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.
      • setColorProvider

        public void setColorProvider​(ColorProvider value)
        Sets the color provider to use when using a column for the plot colors.
        Specified by:
        setColorProvider in interface ColorProviderHandler
        Parameters:
        value - the provider
      • colorProviderTipText

        public String colorProviderTipText()
        Returns the tip text for this property.
        Specified by:
        colorProviderTipText in interface ColorProviderHandler
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getActualColor

        protected Color getActualColor​(int index,
                                       Color defColor)
        Returns the actual color to use. Uses the provided default color if no color mapping active.
        Parameters:
        index - the row index
        defColor - the default color
        Returns:
      • drawData

        protected void drawData​(Graphics g)
        draws the data on the graphics object
        Parameters:
        g - Graphics object to draw on
      • getXIndex

        public int getXIndex()
        get index of chosen attribute for x axis
        Returns:
        chosen index
      • setXIndex

        public void setXIndex​(int val)
        Set the index of attribute for x axis
        Parameters:
        val - Index to set
      • getYIndex

        public int getYIndex()
        Get index of chosen attribute for y axis
        Returns:
        chosen index
      • setYIndex

        public void setYIndex​(int val)
        Set the index of attribute for y axis
        Parameters:
        val - Index to set
      • getColorIndex

        public int getColorIndex()
        Get index of chosen attribute for color.
        Returns:
        chosen index
      • setColorIndex

        public void setColorIndex​(int val)
        Set the index of attribute for color.
        Parameters:
        val - Index to set
      • newHitDetector

        public AbstractScatterPlotHitDetector newHitDetector()
        Returns a new instance of the hit detector to use.
        Returns:
        the hit detector