Class CenteredMovingAveragePaintlet

    • Field Detail

      • m_WindowSize

        protected int m_WindowSize
        Size of window size for calculating CenteredMovingAverage
      • m_ToPlot

        protected List<Point2D> m_ToPlot
        Points to plot for the CenteredMovingAverage curve
      • m_AntiAliasingEnabled

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

      • CenteredMovingAveragePaintlet

        public CenteredMovingAveragePaintlet()
    • Method Detail

      • getTechnicalInformation

        public TechnicalInformation getTechnicalInformation()
        Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
        Specified by:
        getTechnicalInformation in interface TechnicalInformationHandler
        Returns:
        the technical information about this class
      • getWindowSize

        public int getWindowSize()
        Get the Window size for calculating the CenteredMovingAverage overlay
        Returns:
        Number of data points in window
      • windowSizeTipText

        public String windowSizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • 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.
      • calculate

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

        protected void drawData​(Graphics g)
        Draw the overlay onto the scatter plot, only calculates the value to position in this method.
        Specified by:
        drawData in class AbstractOverlayPaintlet
        Parameters:
        g - Graphics drawn on