Class ChartPaintlet

    • Field Detail

      • m_MarkerExtent

        protected int m_MarkerExtent
        the maximum width/height of the shape to plot around the points (= data point marker), if there's enough space.
      • m_AntiAliasingEnabled

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

      • ChartPaintlet

        public ChartPaintlet()
    • Method Detail

      • setMarkerExtent

        public void setMarkerExtent​(int value)
        Sets the extent (width and height of the shape around the plotted point). 0 turns the plotting off. Should be an odd number for centering the shape.
        Parameters:
        value - the new extent
      • getMarkerExtent

        public int getMarkerExtent()
        Returns the current marker extent (which is the width and height of the shape).
        Returns:
        the current extent
      • markerExtentTipText

        public String markerExtentTipText()
        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.
      • drawData

        protected void drawData​(Graphics g,
                                PaintEvent.PaintMoment moment,
                                XYSequence data,
                                Color color)
        Draws the data with the given color.
        Parameters:
        g - the graphics context
        moment - the paint moment
        data - the data to draw
        color - the color to draw in