Class XYData<T extends MguiNumber>

java.lang.Object
mgui.interfaces.plots.XYData<T>

public class XYData<T extends MguiNumber>
extends java.lang.Object
An X-Y data pair.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected T X  
    protected T Y  
  • Constructor Summary

    Constructors
    Constructor Description
    XYData()  
    XYData​(T x, T y)  
  • Method Summary

    Modifier and Type Method Description
    T getX()
    Returns the X value for this pair (cloned)
    T getY()
    Returns the Y value for this pair (cloned)
    void set​(XYData<T> xy)
    Sets the X and Y values
    void setX​(double x)
    Sets the X value for this pair
    void setX​(T x)
    Sets the X value for this pair
    void setY​(double y)
    Sets the Y value for this pair
    void setY​(T y)
    Sets the Y value for this pair

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • XYData

      public XYData()
    • XYData

      public XYData​(T x, T y)
  • Method Details

    • getX

      public T getX()
      Returns the X value for this pair (cloned)
      Returns:
    • getY

      public T getY()
      Returns the Y value for this pair (cloned)
      Returns:
    • setX

      public void setX​(T x)
      Sets the X value for this pair
    • setX

      public void setX​(double x)
      Sets the X value for this pair
    • setY

      public void setY​(T y)
      Sets the Y value for this pair
    • setY

      public void setY​(double y)
      Sets the Y value for this pair
    • set

      public void set​(XYData<T> xy)
      Sets the X and Y values
      Parameters:
      xy -