-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDraggedPoints.java
70 lines (57 loc) · 1.64 KB
/
DraggedPoints.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import java.awt.Color;
import java.util.ArrayList;
/**
* DraggedPoints
* The class which holds a sequence of points, along with its associated settings
*/
public class DraggedPoints {
private ArrayList<Point> alListOfPoints;
private int iSize;
Color cPointsColor;
private boolean bReflected;
private boolean bEraser;
//constructor
public DraggedPoints(ArrayList<Point> alListOfPoints
, int iSize
, Color cPointsColor
, boolean bReflected
, boolean bEraser) {
this.setAlListOfPoints(alListOfPoints);
this.setiSize(iSize);
this.setcPointsColor(cPointsColor);
this.setbReflected(bReflected);
this.setbEraser(bEraser);
}
//getters
public ArrayList<Point> getAlListOfPoints() {
return alListOfPoints;
}
public int getiSize() {
return iSize;
}
public Color getcPointsColor() {
return cPointsColor;
}
public boolean isbReflected() {
return bReflected;
}
public boolean isbEraser() {
return bEraser;
}
//setters
public void setAlListOfPoints(ArrayList<Point> alListOfPoints) {
this.alListOfPoints = alListOfPoints;
}
public void setiSize(int iSize) {
this.iSize = iSize;
}
public void setcPointsColor(Color cPointsColor) {
this.cPointsColor = cPointsColor;
}
public void setbReflected(boolean bReflected) {
this.bReflected = bReflected;
}
public void setbEraser(boolean bEraser) {
this.bEraser = bEraser;
}
}