Classes: Color, String, ArrayList, Graphics
Due Week 8: Saturday by 8pm.
In this assignment, you will design and code a basic "positional, graphical" class hierarchy of
shapes and then use them to draw graphical objects.
Make sure you design and code using the class-design techniques and principles we have already
covered!
PositionalGraphic will extend Canvas.
Your design must be based on the idea of having a "bounding rectangle" for your shapes.
What else does a positional graphic have?
Please work in pairs on this design; you must work with a different partner than HW4.
You must have your design reviewed by a TA no later than Thursday during TA office hours.
You will override the parent's paint() method; your TA will explain what paint() should
do during your design review.
Once your group has had your design approved, you will work individually to complete the coding for this homework. Make sure to list partner names in the comment as designers for the class.
Phase 1 classes are as follows:
We will discuss this more during lecture. The requirements are:
The complex shapes you must code are:
If you have other ideas let me know and we can add them to the list of possiblities.
Note that for each complex shape, the entire shape must fit within its bounding rectangle.
Next week I will post more details on the final application for you to turn in in order to
complete the assignment.
Note: Phase 1 Due Date
Phase 1 (Steps 1-8) is due no later than the first Saturday during the week it is assigned.
You should aim to be finished by the end of that week's Friday lab.