Existing Components for PA2


You will need to download the following classes:

They are described below.

1 The FrameBuffer Class: The FrameBuffer class is a simulation of a frame buffer in a graphis card. In essence, this class is an encapsulation of a rectangular array of pixels. A FrameBuffer object contains 501x501 pixels, with the lower left corner at -250,-250 and the upper left corner at 250,250.

The FrameBuffer class has the following methods of consequence:

2 The GraphicsWindow Class: A GraphicsWindow is a GUI window that contains a FrameBuffer object.

The GraphicsWindow class has the following methods of consequence:

3 An Example: The following application illustrates how these classes might be used:
    SimpleApplication.java

Copyright 2007