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
-
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)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
emptyMin
public static final Point2D.Double emptyMin
-
emptyMax
public static final Point2D.Double emptyMax
-
-
Method Detail
-
addSample
public void addSample(Point2D.Double p)
-
addSample
public void addSample(double x, double y)
-
getColor
public Color getColor()
-
getTitle
public String getTitle()
-
getType
public String 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
public void setColor(Color newcolor)
-
setTitle
public void setTitle(String newtitle)
-
setType
public void setType(String newtype)
-
setLogX
public void setLogX(boolean logx)
-
setLogY
public void setLogY(boolean logy)
-
getXMinDifference
public double getXMinDifference()
-
getNearestSampleAt
public Point2D.Double getNearestSampleAt(double x)
-
iterator
public Iterator<Point2D.Double> iterator()
- Specified by:
iteratorin interfaceIterable<Point2D.Double>
-
isEmpty
public boolean isEmpty()
-
getMinimum
public Point2D.Double getMinimum()
-
getMaximum
public Point2D.Double getMaximum()
-
-