Package mgui.interfaces.plots
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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TgetX()Returns the X value for this pair (cloned)TgetY()Returns the Y value for this pair (cloned)voidset(XYData<T> xy)Sets the X and Y valuesvoidsetX(double x)Sets the X value for this pairvoidsetX(T x)Sets the X value for this pairvoidsetY(double y)Sets the Y value for this pairvoidsetY(T y)Sets the Y value for this pairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
X
-
Y
-
-
Constructor Details
-
XYData
public XYData() -
XYData
-
-
Method Details
-
getX
Returns the X value for this pair (cloned)- Returns:
-
getY
Returns the Y value for this pair (cloned)- Returns:
-
setX
Sets the X value for this pair -
setX
public void setX(double x)Sets the X value for this pair -
setY
Sets the Y value for this pair -
setY
public void setY(double y)Sets the Y value for this pair -
set
Sets the X and Y values- Parameters:
xy-
-