public class XYPlot extends Object implements Result, Iterable<XYPlot.Curve>
XYPlot.Curve
s, meant for chart
generation.Modifier and Type | Class and Description |
---|---|
class |
XYPlot.Curve
Curve on this plot.
|
Modifier and Type | Field and Description |
---|---|
protected ArrayList<XYPlot.Curve> |
curves
Curves on this plot.
|
protected String |
labelx
Label of X axis
|
protected String |
labely
Label of Y axis
|
protected double |
maxx
Minimum and maximum for X axis
|
protected double |
maxy
Minimum and maximum for Y axis
|
protected double |
minx
Minimum and maximum for X axis
|
protected double |
miny
Minimum and maximum for Y axis
|
protected static double |
THRESHOLD
Simplification threshold
|
Constructor and Description |
---|
XYPlot()
Constructor.
|
XYPlot(String labelx,
String labely)
Constructor with labels
|
Modifier and Type | Method and Description |
---|---|
String |
getLabelx()
Get label of x axis
|
String |
getLabely()
Get label of y axis
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
double |
getMaxx()
Maximum on x axis.
|
double |
getMaxy()
Maximum on y axis.
|
double |
getMinx()
Minimum on x axis.
|
double |
getMiny()
Minimum on y axis.
|
String |
getShortName()
A short name for the result, useful for file names.
|
Iterator<XYPlot.Curve> |
iterator() |
XYPlot.Curve |
makeCurve()
Make a new curve.
|
XYPlot.Curve |
makeCurve(int color)
Make a new curve with desired color.
|
XYPlot.Curve |
makeCurve(int color,
int size)
Make a new curve with desired color.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final double THRESHOLD
protected ArrayList<XYPlot.Curve> curves
protected String labelx
protected String labely
protected double minx
protected double maxx
protected double miny
protected double maxy
public XYPlot(String labelx, String labely)
labelx
- Label for X axislabely
- Label for Y axispublic XYPlot()
public XYPlot.Curve makeCurve()
public XYPlot.Curve makeCurve(int color)
color
- Color numberpublic XYPlot.Curve makeCurve(int color, int size)
color
- Color numbersize
- Expected sizepublic String getLabelx()
public String getLabely()
public double getMinx()
public double getMaxx()
public double getMiny()
public double getMaxy()
public Iterator<XYPlot.Curve> iterator()
iterator
in interface Iterable<XYPlot.Curve>
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.