| | |
| | | /** |
| | | * 添加点 |
| | | */ |
| | | public void addPoint(Double x, Double y, Double val) { |
| | | Point point = new Point(x, y, val); |
| | | public void addPoint(Double x, Double y, List<Double> vals) { |
| | | Point point = new Point(x, y, vals); |
| | | this.points.add(point); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public void setAvg(Double avg) { |
| | | this.avg = WebHelper.round(avg, 3); |
| | | this.avg = avg; |
| | | } |
| | | |
| | | public Double getMax() { |
| | |
| | | } |
| | | |
| | | public void setMax(Double max) { |
| | | this.max = WebHelper.round(max, 3); |
| | | this.max = max; |
| | | } |
| | | |
| | | public int getCode() { |
| | |
| | | this.info = info; |
| | | } |
| | | |
| | | public class Point { |
| | | public List<Point> getPoints() { |
| | | return points; |
| | | } |
| | | |
| | | public void setPoints(List<Point> points) { |
| | | this.points = points; |
| | | } |
| | | |
| | | public static class Point { |
| | | private Double x; |
| | | |
| | | private Double y; |
| | | |
| | | private Double val; |
| | | private List<Double> vals; |
| | | |
| | | public Point() { |
| | | } |
| | | |
| | | public Point(Double x, Double y, Double val) { |
| | | public Point(Double x, Double y, List<Double> vals) { |
| | | this.x = x; |
| | | this.y = y; |
| | | this.val = val; |
| | | this.vals = vals; |
| | | } |
| | | |
| | | public Double getX() { |
| | |
| | | this.y = y; |
| | | } |
| | | |
| | | public Double getVal() { |
| | | return val; |
| | | public List<Double> getVals() { |
| | | return vals; |
| | | } |
| | | |
| | | public void setVal(Double val) { |
| | | this.val = val; |
| | | public void setVals(List<Double> vals) { |
| | | this.vals = vals; |
| | | } |
| | | } |
| | | } |