cis20.1-fall2007-sklar, assignment II, part 2
INFORMATION
- This is the second part of the assignment for unit II.
It is worth 8 points.
- The first part of this assignment was distributed earlier and was worth
6 points.
- BOTH PARTS TOGETHER ARE DUE ON OCT 29, totalling 14 points.
INSTRUCTIONS
- For the first part of the assignment, you created several Java
and HTML files.
For this second part of the assignment, you will create a PDF design
document and at least one Java file. If your interface is an applet,
then you will also create an HTML file.
- When you are completely finished with all the steps in BOTH PARTS
of the assignment, zip all your files together and email the
zip file to me as an attachment.
- The subject line of your email should say: cis20.1 hwII
- My email address is: sklar@sci.brooklyn.cuny.edu.
BE SURE TO ASK IN THE LAB IF YOU NEED HELP WITH ANY STEPS!!!!
project specifications.
In the first part of this assignment, you modified the bounce
example.
For this part of the assignment, you can also refer to the dots
examples posted on the class web page.
You need to build an interface in JAVA that meets the following
TECHNICAL SPECIFICATIONS.
Your interface must include:
- either a Mouse Listener or a Key Listener
(both is okay too)
- drawing that includes at least 3 shapes (line, oval, rectangle,
arc and/or polygon); at least 1 type must be filled
- objects drawn (as above) in at least 3 different colors
Your interface must meet the following DESIGN SPECIFICATIONS:
- your interface will show a viewing window on a "world" in
which objects are animated (like the balls moving around in the
bounce example)
- note that this viewing window will only be able to display
a portion of the "world" at a time; your program will have to
keep track of what is going on in the whole world all the time---and
what portion of that is viewable by the user
- your user will be able to move the viewing window around to
reveal different portions of the world, using either the mouse or
keyboard
Your world can contain anything you want.
You can make it as creative and/or beautiful or strange or ugly or boring
as you want.
Just make sure you meet the specifications listed above :-)
NOTE THAT WE WILL DISCUSS HOW TO DO THINGS LIKE COORDINATE
TRANSFORMATIONS AND CLIPPING --- THE KINDS OF TECHNIQUES YOU WILL NEED
TO IMPLEMENT THE VIEWING WINDOW --- IN CLASS ON MONDAY OCT 15.
points breakdown.
- (1 point) design:
Include a PDF document that shows a drawing of the entire world and
the viewing window into it.
Explain how the user can shift the viewing window.
- (3 points) implementation -- event handling and viewport shifting:
use either a mouse or a keyboard listener to allow the user to shift
the viewing window around and change her view of the world
- (2 points) implementation -- drawing:
use at least 3 different types of shapes and 3 different colors to
draw your world
- (2 points) implementation -- animation:
animate the objects in your world, either randomly or according to
some master plan....