Fundamentals of Computer Science II (CSC-152 99S)


Assignment 5: A Simple Graphics Application

Assigned: Friday, February 12, 1999
Due: Friday, February 17, 1999

This assignment is optional. It can only give you extra credit.

You are permitted to work in groups of up to size 3.

Create a small graphics application that has two windows: a control window and a drawing window. In the control window, users specify what to draw. You should support parameterized drawing of circles and squares: users should be able to supply any or all of the following parameters: size (radius or width), center (x and y coordinates), and color. It is acceptable if you only draw the last object the user has asked to draw.

Note that Frames, like Applets, receive a paint method when its time to update the drawing. You can force a call to paint by calling repaint.

For extra credit try any of the following. Support multiple figures in the drawing (so that if the user draws 3 circles, all of them stay visible). Support undo and redo (most appropriate if you're supporting multiple figures). Incorporate some of your ``multiple drawing primitives'' from assignment 3.


Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.

This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS152/99S/Assignments/assign.05.html

Source text last modified Thu Feb 11 15:57:45 1999.

This page generated on Thu Feb 11 16:16:25 1999 by SiteWeaver. Validate this page's HTML.

Contact our webmaster at rebelsky@math.grin.edu