L
Leo Smith
Dear All,
I have received a small Java GUI project. I am a Java programmer. But I
don't fully understand the requirement. The project is:
Using J2SE 5.0, develop a JPanel that draws a list of semi-transparent
(alpha = 128) rectangles with a border. The control must have the
following public API:
public void enableZoom (boolean enabled)
When set to true (default value), the panel draws its contents 10 times
as big as the screen resolution. Similar to the “View - Zoom - Large
Size” menu option in Windows Paint*.
public bool AddRectangle (java.awt.Rectangle r)
Adds a rectangle to the list.
Also the panel must handle Mouse Events so that you can click inside of
it and create rectangles. Much like you do in Paint* when the
"Rectangle" tool is selected.
End of project description.
Major points I don't understand:
1. "..the panel draws its contents 10 times as big as the screen
resolution. Similar to the “View - Zoom - Large Size” menu option in
Windows Paint*."
What does this mean?
2. "a JPanel that draws a list of semi-transparent (alpha = 128)
rectangles with a border"
What does this mean?
If you can give me some hints to tackle this project, I would be greatly
appreciative for that.
Thank you very much.
I have received a small Java GUI project. I am a Java programmer. But I
don't fully understand the requirement. The project is:
Using J2SE 5.0, develop a JPanel that draws a list of semi-transparent
(alpha = 128) rectangles with a border. The control must have the
following public API:
public void enableZoom (boolean enabled)
When set to true (default value), the panel draws its contents 10 times
as big as the screen resolution. Similar to the “View - Zoom - Large
Size” menu option in Windows Paint*.
public bool AddRectangle (java.awt.Rectangle r)
Adds a rectangle to the list.
Also the panel must handle Mouse Events so that you can click inside of
it and create rectangles. Much like you do in Paint* when the
"Rectangle" tool is selected.
End of project description.
Major points I don't understand:
1. "..the panel draws its contents 10 times as big as the screen
resolution. Similar to the “View - Zoom - Large Size” menu option in
Windows Paint*."
What does this mean?
2. "a JPanel that draws a list of semi-transparent (alpha = 128)
rectangles with a border"
What does this mean?
If you can give me some hints to tackle this project, I would be greatly
appreciative for that.
Thank you very much.