-
Notifications
You must be signed in to change notification settings - Fork 1
/
ImageEffectParam.java
51 lines (43 loc) · 1.13 KB
/
ImageEffectParam.java
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
42
43
44
45
46
47
48
49
50
51
package assignment;
/**
* This class provides an abstraction for integer parameter which is
* used in the ImageEffect class.
*/
public class ImageEffectParam {
private String name;
private String description;
private int defaultValue;
private int value;
private int maxValue;
private int minValue;
public ImageEffectParam(String name, String description,
int defaultValue, int minValue,
int maxValue) {
this.name = name;
this.description = description;
this.defaultValue = defaultValue;
this.minValue = minValue;
this.maxValue = maxValue;
}
public void setValue(int value) {
this.value = value;
}
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public String getDefaultValue() {
return Integer.toString(defaultValue);
}
public int getValue() {
return value;
}
public int getMaxValue() {
return maxValue;
}
public int getMinValue() {
return minValue;
}
}