1 package org.sat4j.sat.visu;
2
3 import info.monitorenter.gui.chart.ITrace2D;
4
5 import org.sat4j.tools.IVisualizationTool;
6
7 public class ChartBasedVisualizationTool implements IVisualizationTool {
8
9 private ITrace2D trace;
10 private int i;
11
12 public ChartBasedVisualizationTool(ITrace2D trace) {
13 this.trace = trace;
14 this.i = 0;
15 }
16
17 public void addPoint(double x, double y) {
18
19 this.trace.addPoint(x, y);
20 this.i = 0;
21
22 this.i++;
23 }
24
25 public void addInvisiblePoint(double x, double y) {
26
27 }
28
29 public void init() {
30 this.trace.removeAllPoints();
31 this.i = 0;
32
33 }
34
35 public void end() {
36
37 }
38
39 }