-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOriginalStamp
More file actions
79 lines (70 loc) · 1.25 KB
/
OriginalStamp
File metadata and controls
79 lines (70 loc) · 1.25 KB
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
71
72
73
74
75
76
77
78
79
package uwstout.cs144.projects.project3.toddlerGame;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Point;
import javax.swing.JComponent;
/**
* This class is a original stamp with no specifications.
*
* @author flowersC
* @version 2016-12-13
*
*/
public class OriginalStamp extends JComponent implements Stamp {
/**
* This is the point on the panel.
*/
protected Point point;
/**
* This is the dimension of the stamp.
*/
protected Dimension dim;
/**
* This is the color of the stamp.
*/
protected Color color;
/**
* This constructs a new stamp.
*
* @param p
* the point
* @param d
* the dimension
* @param c
* the color
*/
public OriginalStamp(Point p, Dimension d, Color c) {
point = p;
dim = d;
color = c;
}
/**
* This gets the point of the stamp.
*/
@Override
public Point getPosition() {
return point;
}
/**
* This gets the dimension of the stamp.
*/
@Override
public Dimension getSize() {
return dim;
}
/**
* This gets the color of the stamp.
*/
@Override
public Color getColor() {
return color;
}
/**
* This draws the stamp.
*/
@Override
public void draw(Graphics g) {
super.paintComponent(g);
}
}