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 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 valuesvoid
setX(double x)
Sets the X value for this pairvoid
setX(T x)
Sets the X value for this pairvoid
setY(double y)
Sets the Y value for this pairvoid
setY(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
-
-