Class CoordinatesPaintlet

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

    public class CoordinatesPaintlet
    extends AbstractOverlayPaintlet
    Paintlet for painting the coordinates.

    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-x <java.awt.Color> (property: XColor)
        The color of the X axis.
        default: #808080
     
    -color-y <java.awt.Color> (property: YColor)
        The color of the Y axis.
        default: #808080
     
    -visible-x (property: XVisible)
        If set to true then X axis is visible.
     
    -visible-y (property: YVisible)
        If set to true then Y axis is visible.
     
    -offset-x <double> (property: XOffset)
        The offset of the X axis.
        default: 0.0
     
    -offset-y <double> (property: YOffset)
        The offset of the Y axis.
        default: 0.0
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_XColor

        protected Color m_XColor
        the color to use for painting for the X axis.
      • m_YColor

        protected Color m_YColor
        the color to use for painting for the Y axis.
      • m_XVisible

        protected boolean m_XVisible
        whether the X-axis is visible.
      • m_YVisible

        protected boolean m_YVisible
        whether the Y-axis is visible.
      • m_XOffset

        protected double m_XOffset
        the Y-offset for the X-axis.
      • m_YOffset

        protected double m_YOffset
        the X-offset for the Y-axis.
    • Constructor Detail

      • CoordinatesPaintlet

        public CoordinatesPaintlet()
    • Method Detail

      • setXColor

        public void setXColor​(Color value)
        Sets the color for the X axis.
        Parameters:
        value - the new color
      • getXColor

        public Color getXColor()
        Returns the color for the X axis.
        Returns:
        the color
      • XColorTipText

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

        public void setYColor​(Color value)
        Sets the color for the Y axis.
        Parameters:
        value - the new color
      • getYColor

        public Color getYColor()
        Returns the color for the Y axis.
        Returns:
        the color
      • YColorTipText

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

        public void setXOffset​(double value)
        Sets the offset for the X axis.
        Parameters:
        value - the new offset
      • getXOffset

        public double getXOffset()
        Returns the offset for the X axis.
        Returns:
        the offset
      • XOffsetTipText

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

        public void setYOffset​(double value)
        Sets the offset for the Y axis.
        Parameters:
        value - the new offset
      • getYOffset

        public double getYOffset()
        Returns the offset for the Y axis.
        Returns:
        the offset
      • YOffsetTipText

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

        public void setXInvisible​(boolean value)
        Sets the X axis visible or hides it.
        Parameters:
        value - true to hide the axis, false to show it
      • isXInvisible

        public boolean isXInvisible()
        Returns whether the X axis is visible or not.
        Returns:
        true if invisible
      • XInvisibleTipText

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

        public void setYInvisible​(boolean value)
        Sets the Y axis visible or hides it.
        Parameters:
        value - true to hide the axis, false to display it
      • isYInvisible

        public boolean isYInvisible()
        Returns whether the Y axis is visible or not.
        Returns:
        true if invisible
      • YInvisibleTipText

        public String YInvisibleTipText()
        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)
        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