View Javadoc

1   package org.sat4j.sat.visu;
2   
3   import java.awt.Color;
4   
5   public class GnuplotFunction {
6   
7       private String functionExpression;
8       private Color color;
9       private String functionLegend;
10  
11      public GnuplotFunction(String expression) {
12          this(expression, Color.red, expression);
13      }
14  
15      public GnuplotFunction(String functionExpression, Color functionColor,
16              String functionLegend) {
17          this.functionExpression = functionExpression;
18          this.color = functionColor;
19          this.functionLegend = functionLegend;
20      }
21  
22      public String getFunctionExpression() {
23          return this.functionExpression;
24      }
25  
26      public void setFunctionExpression(String functionExpression) {
27          this.functionExpression = functionExpression;
28      }
29  
30      public Color getColor() {
31          return this.color;
32      }
33  
34      public void setColor(Color functionColor) {
35          this.color = functionColor;
36      }
37  
38      public String getFunctionLegend() {
39          return this.functionLegend;
40      }
41  
42      public void setFunctionLegend(String functionLegend) {
43          this.functionLegend = functionLegend;
44      }
45  
46  }