-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGreetingText.java
More file actions
52 lines (47 loc) · 1.27 KB
/
GreetingText.java
File metadata and controls
52 lines (47 loc) · 1.27 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
/* Gerard Ortega, 171668
I have not discussed the Java language code
in my program with anyone
other than my instructor or the teaching
assistants assigned to this course.
I have not used Java language code
obtained from another student, or
any other unauthorized source, either
modified or unmodified.
If any Java language
code or documentation used in my program was
obtained from another source, such as a text
book or course notes, those have been clearly
noted with a proper citation in the
comments of my code. */
import java.awt.*;
import java.awt.geom.*;
import javax.swing.*;
public class GreetingText implements DrawingObject
{
private int x;
private int y;
public GreetingText(int x, int y)
{
this.x = x;
this.y = y;
}
public void draw(Graphics2D g2d, AffineTransform reset)
{
Font resetFont = g2d.getFont();
g2d.setFont( new Font("Arial", Font.PLAIN, 36 ) );
g2d.setColor(Color.RED);
g2d.drawString("TEAM MAGMA WISHES YOU A",x,y);
g2d.setColor(Color.YELLOW);
g2d.drawString("SCORCHING",x+140,y+35);
g2d.setColor(Color.RED);
g2d.drawString("SUMMER",x+180,y+70);
g2d.setFont(resetFont);
}
public void animate(){}
public boolean canBeAwakened()
{
return false;
}
public void awakenToggle()
{}
}