| Modifier and Type | Field and Description |
|---|---|
static Point2D.Double |
emptyMax |
static Point2D.Double |
emptyMin |
String |
title |
String |
xlabel |
String |
ylabel |
| Constructor and Description |
|---|
DataSet2D(String title,
String xlabel,
String ylabel)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String comment)
Add the comment into the array list for the comments
|
void |
addData(String legend,
String type,
Color color)
Add a new data
|
void |
addData2D(Data2D data2d)
Add the data2D
|
void |
addSample(double x,
double y)
Add a new sample
|
void |
addSample(Point2D.Double p)
Add a new sample into the array list of the Data2D
|
ArrayList<String> |
getComments()
Get comments
|
Point2D.Double |
getMaximum()
Get the maximum data2D
|
double |
getMaxXDifference()
Get the maximum difference between a lot of the data2D
|
Point2D.Double |
getMinimum()
Get the minimum data2D
|
String |
getTitle()
Get the title
|
String |
getXLabel()
Get the label x
|
String |
getYLabel()
Get the label y
|
boolean |
isEmpty()
Is the array list of the data2D empty?
|
Iterator<Data2D> |
iterator() |
void |
removeData2D(Data2D data2d)
Remove the Data2D
|
void |
setLogX(boolean logx)
Set the log x into the data2D
|
void |
setLogY(boolean logy)
Set log y
|
void |
setTitle(String newtitle)
Set title
|
void |
setXLabel(String newx)
Set the label x into the data2D
|
void |
setYLabel(String newy)
Set the label y into the data2D
|
int |
size()
Ask the data size
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final Point2D.Double emptyMin
public static final Point2D.Double emptyMax
public String title
public String xlabel
public String ylabel
public void addData(String legend, String type, Color color)
legend - - The legend datatype - - The type of the datacolor - - The colorpublic void setTitle(String newtitle)
newtitle - - The new titlepublic void setXLabel(String newx)
newx - - The new label xpublic void setYLabel(String newy)
newy - - The new label ypublic void setLogX(boolean logx)
logx - - Set the log x?public void setLogY(boolean logy)
logy - - Set the log y ?public void addData2D(Data2D data2d)
data2d - - The input datapublic void removeData2D(Data2D data2d)
data2d - - Remove this datapublic boolean isEmpty()
public int size()
public void addSample(Point2D.Double p)
p - - The data2Dpublic void addSample(double x,
double y)
x - - The log x valuey - - The log y valuepublic void addComment(String comment)
comment - - The comment stringpublic ArrayList<String> getComments()
public String getTitle()
public String getXLabel()
public String getYLabel()
public Point2D.Double getMinimum()
public Point2D.Double getMaximum()
public double getMaxXDifference()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.