public class Data2D extends Object implements Iterable<Point2D.Double>
Modifier and Type | Field and Description |
---|---|
static Point2D.Double |
emptyMax |
static Point2D.Double |
emptyMin |
Constructor and Description |
---|
Data2D(String title,
String type,
Color color) |
Modifier and Type | Method and Description |
---|---|
void |
addSample(double x,
double y) |
void |
addSample(Point2D.Double p) |
Color |
getColor() |
Point2D.Double |
getMaximum() |
Point2D.Double |
getMinimum() |
Point2D.Double |
getNearestSampleAt(double x) |
String |
getTitle() |
String |
getType()
type denotes how the data should be displayed on a plot.
|
double |
getXMinDifference() |
boolean |
isEmpty() |
Iterator<Point2D.Double> |
iterator() |
void |
setColor(Color newcolor) |
void |
setLogX(boolean logx) |
void |
setLogY(boolean logy) |
void |
setTitle(String newtitle) |
void |
setType(String newtype) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final Point2D.Double emptyMin
public static final Point2D.Double emptyMax
public void addSample(Point2D.Double p)
public void addSample(double x, double y)
public Color getColor()
public String getTitle()
public String getType()
public void setColor(Color newcolor)
public void setTitle(String newtitle)
public void setType(String newtype)
public void setLogX(boolean logx)
public void setLogY(boolean logy)
public double getXMinDifference()
public Point2D.Double getNearestSampleAt(double x)
public Iterator<Point2D.Double> iterator()
iterator
in interface Iterable<Point2D.Double>
public boolean isEmpty()
public Point2D.Double getMinimum()
public Point2D.Double getMaximum()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.