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.Double
emptyMax
static Point2D.Double
emptyMin
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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)
-
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:
iterator
in interfaceIterable<Point2D.Double>
-
isEmpty
public boolean isEmpty() -
getMinimum
-
getMaximum
-