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
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
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:
iterator
in interfaceIterable<Point2D.Double>
-
isEmpty
public boolean isEmpty()
-
getMinimum
public Point2D.Double getMinimum()
-
getMaximum
public Point2D.Double getMaximum()
-
-