-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelChart.java
More file actions
41 lines (32 loc) · 733 Bytes
/
Copy pathModelChart.java
File metadata and controls
41 lines (32 loc) · 733 Bytes
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
39
40
41
package POSmain;
public class ModelChart {
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public double[] getValues() {
return values;
}
public void setValues(double[] values) {
this.values = values;
}
public ModelChart(String label, double[] values) {
this.label = label;
this.values = values;
}
public ModelChart() {
}
private String label;
private double values[];
public double getMaxValues() {
double max = 0;
for (double v : values) {
if (v > max) {
max = v;
}
}
return max;
}
}