Package objectdraw

Objectdraw is a library intended to support the teaching of introductory Java programming by simplifying the construction of programs that draw elementary graphics and interact primarily by reacting to mouse events such as clicking and dragging.

See:
          Description

Interface Summary
Drawable1DInterface Drawable1DInterface describes the methods available for manipulating lines drawn on a DrawingCanvas.
Drawable2DInterface Drawable2DInterface describes the methods available for manipulating two-dimensional objects placed on a DrawingCanvas.
DrawableInterface DrawableInterface describes the methods available for manipulating any graphical object placed on a DrawingCanvas.
DrawingCanvas The DrawingCanvas interface describes the methods that are available on a drawing canvas.
Resizable2DInterface Resizable2DInterface describes the methods available for manipulating objects on a DrawingCanvas that can be resized under program control.
 

Class Summary
ActiveObject The class ActiveObject is used to define objects controlled by sequences of instructions that are executed independently of and simultaneously with other instructions in a program.
AngLine AngLine is a variant of Line where the constructor takes a starting point and angle from the horizontal rather than two end points.
AWTController AWTController is an AWT compatible class designed to be extended to produce programs that employ a GUI interface but do not include graphics displayed in a DrawingCanvas.
AWTDrawingCanvas An AWTDrawingCanvas is an AWT GUI component designed for displaying simple graphics created by constructing Lines, FilledOvals, FilledRects, or any of the other objectdraw classes that implement DrawableInterface.
AWTFrameCanvas AWTFrameCanvas is an extension of AWTDrawingCanvas that creates a Frame and puts an AWTDrawingCanvas inside.
AWTFrameController AWTFrameController is a version of AWTController intended to make it possible to run a controller outside the context of an applet viewer as appropriate with environments like BlueJ and Dr.
AWTFrameWindowController AWTFrameWindowController is a version of AWTWindowController intended to make it possible to run a window controller outside the context of an applet viewer as appropriate with environments like BlueJ and Dr.
AWTSizeablePanel Panel that allows you to specify the desired width and height.
AWTWindowController AWTWindowController is an AWT compatible class designed to be extended to produce programs that handle simple mouse events and draw graphics in a single window on the screen.
Controller Controller is a Swing compatible class designed to be extended to produce programs that employ a GUI but do not include graphics displayed in a DrawingCanvas.
ControllerFrame ControllerFrame is an extension of Frame that runs an Applet inside it.
DrawableIterator An object of type DrawableIterator can be obtained by invoking the getDrawableIterator method of a DrawaingCanvas and then used to write loops that sequentially process all the Drawable objects displayed on the associated canvas.
FilledArc FilledArc is an implementation of a drawable filled arc object.
FilledOval FilledOval is an implementation of a drawable filled oval object.
FilledRect FilledRect is an implementation of a drawable filled rectangle object.
FilledRoundedRect FilledRoundedRect is an implementation of a drawable filled rounded rectangle object.
FrameCanvas FrameCanvas is an extension of JDrawingCanvas that creates a JFrame and puts a JDrawingCanvas inside.
FrameController FrameController is a version of Controller intended to make it possible to run a controller outside the context of an applet viewer as appropriate with environments like BlueJ and Dr.
FramedArc FramedArc is an implementation of a drawable framed arc object.
FramedOval FramedOval is an implementation of a drawable framed oval object.
FramedRect FramedRect is an implementation of a drawable framed rectangle object.
FramedRoundedRect FramedRoundedRect is an implementation of a drawable framed rounded rectangle object.
FrameWindowController FrameWindowController is a version of WindowController intended to make it possible to run a window controller outside the context of an applet viewer as appropriate with environments like BlueJ and Dr.
JDrawingCanvas A JDrawingCanvas is a Swing GUI component designed for displaying simple graphics created by instantiating members of subclasses of the Drawable class.
Line Line is an implementation of a drawable line segment object.
Location Location is an implementation of a point on the real plane.
RandomDoubleGenerator A generator that provides random double between two values upon demand.
RandomIntGenerator A generator that provides random integer between two values upon demand
SizeablePanel Panel that allows you to specify the width and height.
Text Text is an implementation of text strings that can be drawn on a Drawingcanvas.
VisibleImage A VisibleImage represents an Image that can be drawn on the canvas.
WindowController WindowController is a Swing compatible class designed to be extended to produce programs that handle simple mouse events and draw graphics in a single window on the screen.
 

Package objectdraw Description

Objectdraw is a library intended to support the teaching of introductory Java programming by simplifying the construction of programs that draw elementary graphics and interact primarily by reacting to mouse events such as clicking and dragging. Objectdraw provides

Authors

The design and coding of this library was completed by faculty and students at Williams College including Kim Bruce, Andrea Danyluk, Thomas Murtagh, Barbara Lerner, Jonathan Kallay, Jung Hee Yang, Krishna Kannan, Pete Applegate, Cheng Hu, and Ashok Pillai.