summaryrefslogtreecommitdiff
path: root/java/src/org/singinst/uf/presenter/ScalarValuePointList.java
blob: a7fc8e0b462f5bf11fa73a1de508b78fc7d71466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.singinst.uf.presenter;

import java.util.List;

import org.singinst.uf.math.SimplePoint;


public class ScalarValuePointList {

	private List<SimplePoint> hypothesisPoints;
	private final SimpleStyle style;

	public ScalarValuePointList() {
		this(null);
	}
	
	public ScalarValuePointList(SimpleStyle style) {
		this.style = style;
	}

	public void setHypothesisPoints(List<SimplePoint> hypothesisPoints) {
		this.hypothesisPoints = hypothesisPoints;
	}

	public void draw(GraphCanvas canvas) {
		canvas.pushStyle(style);
		canvas.drawCurve(getHypothesisPoints());
		canvas.popStyle();
	}

	public List<SimplePoint> getHypothesisPoints() {
		return hypothesisPoints;
	}

	public Runnable updater() {
		throw new UnsupportedOperationException();
	}
}