Package com.uppaal.model.core2
Class Data2D
java.lang.Object
com.uppaal.model.core2.Data2D
- All Implemented Interfaces:
Iterable<Point2D.Double>
public class Data2D extends Object implements Iterable<Point2D.Double>
-
Field Summary
Fields Modifier and Type Field Description static Point2D.DoubleemptyMaxstatic Point2D.DoubleemptyMin -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddSample(double x, double y)voidaddSample(Point2D.Double p)ColorgetColor()Point2D.DoublegetMaximum()Point2D.DoublegetMinimum()Point2D.DoublegetNearestSampleAt(double x)StringgetTitle()StringgetType()type denotes how the data should be displayed on a plot.doublegetXMinDifference()booleanisEmpty()Iterator<Point2D.Double>iterator()voidsetColor(Color newcolor)voidsetLogX(boolean logx)voidsetLogY(boolean logy)voidsetTitle(String newtitle)voidsetType(String newtype)
-
Field Details
-
Constructor Details
-
Method Details
-
addSample
-
addSample
public void addSample(double x, double y) -
getColor
-
getTitle
-
getType
type denotes how the data should be displayed on a plot. The string is interpreted as a sequence of symbols to be plotted: p - periods (dots) c - circles d - diamonds r - rectangles t - triangles (vertex pointing up) u - triangles (vertex pointing down) v - triangles (vertex pointing left) w - triangles (vertex pointing right) l - solid line k - dashed line m - dotted line n - dash-dot line a - filled polygon area between graph line and x-axis b(w) - filled bars of width w- Returns:
- The type
-
setColor
-
setTitle
-
setType
-
setLogX
public void setLogX(boolean logx) -
setLogY
public void setLogY(boolean logy) -
getXMinDifference
public double getXMinDifference() -
getNearestSampleAt
-
iterator
- Specified by:
iteratorin interfaceIterable<Point2D.Double>
-
isEmpty
public boolean isEmpty() -
getMinimum
-
getMaximum
-