ECE 538 Assignment 7

Do the following exercises, and make executable Jar files for the Java programs:

  1. Take one of your Java programs that uses System.out and modifiy it to display System.out output within a text area.

  2. Modify your line intersection program from the previous assignment to use "dynamic" lines (grow lines). Your new program should allow you to change the end-points of existing lines, as well as begin new sets of lines.

  3. Modify your rectangle UI from the previous assignment by allowing the user to insert and delete rectangles, using a growbox or other dynamic redrawing. Use a context-sensitive menu (popup menu) for commands such as "delete box".

  4. Modify your rectangle UI so that you can pick a rectangle and change its size dynamically, as discussed in class.

  5. Generate a Java interface representing a pickable object. There should be a routine that returns true if a screen point is within the object, a routine that returns true if a rectangle encloses the object, and a routine that draws the object (given a graphics context). Show an example program using a graphics object that implements your interface.

  6. Write a program that moves a differential-drive robot through some path (illustrating a variety of linear and curved motions) by specifying wheel velocities as a function of time.

Your submission should include the usual source-code files, executable programs, and a document reporting your work in general and validation tests in particular.


Maintained by John Loomis, last updated 31 March 2008