-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIntegral.java
37 lines (33 loc) · 975 Bytes
/
Integral.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
import java.io.File;
import java.io.IOException;
import javax.imageio.*;
import java.awt.image.*;
public class Integral{
private String name;
private BufferedImage integralImage;
private BufferedImage answerImage;
private int timeLimit;
public Integral(String name, int timeLimit, String integralFileName, String answerFileName){
this.name = name;
this.timeLimit = timeLimit;
try{
integralImage = ImageIO.read(new File("images/" + integralFileName));
answerImage = ImageIO.read(new File("images/" + answerFileName));
}
catch (IOException e){
System.out.println(e);
}
}
public String getName(){
return name;
}
public BufferedImage getIntegralImage(){
return integralImage;
}
public BufferedImage getAnswerImage(){
return answerImage;
}
public int getTimeLimit(){
return timeLimit;
}
}