| Book Description
About the Author
Table of Contents
Source Code
Errata
Send Comments
Teaching Materials
Author's Homepage
|
Object-Oriented
Software Development Using Java
Xiaoping
Jia, Ph.D
Chapter
9: Design Case Study: A Drawing Pad
Contents
9.1 Planning
9.2 Iteration 1: A Simple Scribble Pad
9.2.1 The Scribbling Canvas and
Its Listener
9.2.2 The Application
9.3 Iteration 2: Menus, Options, and Files
9.3.1 Strokes
9.3.2 The Scribble Canvas
9.3.3 The Canvas Listener
9.3.4 The Application
9.3.5 Choosing Colors
9.4 Iteration 3: Refactoring
9.4.1 The Shapes
9.4.2 The Tools
9.4.3 Extending Components
9.5 Iteration 4: Adding Shapes and Tools
9.5.1 The Shapes
9.5.2 The Toolkit
9.5.3 Design Pattern: State
9.5.4 A Concrete Tool –
TwoEndsTool
9.5.5 Extending Components
9.5.6 Design Pattern: Factory
Method
9.6 Iteration 5: More Drawing Tools
9.6.1 Filled Shapes
9.6.2 Drawing Filled Shapes
9.6.3 The Application
9.7 Iteration 6: The Text Tool
9.7.1 The Text Shape
9.7.2 The Keyboard Input Tool
9.7.3 The Font Option Menu
-
Iteration 1 A Simple Scribble Pad
-
Source code: package scribble1
-
The design
-
Compile:
javac scribble1/Scribble.java
-
Run:
-
Screen shot:
-
The scribble application

-
Iteration 2 Menus, Options, and Files
-
Source code: package scribble2
-
The design
-
Compile:
javac scribble2/Scribble.java
-
Run:
-
Screen shot:
-
The scribble application
-
The color dialog
-
The color chooser
-
The file dialog
-
The about dialog
-
The exit dialog

-
Iteration 3 Refactoring
-
Source code: package scribble3
-
The design
-
Compile:
javac scribble3/Scribble.java
-
Run:
-
Iteration 4 Drawing Tools
-
Source code: package draw1
-
The design
-
Overall
-
The shapes
-
The tools

-
Compile:
javac draw1/DrawingPad.java
-
Run:
-
Screen shot:
-
The drawing pad application

-
Iteration 5 More Drawing Tools
-
Source code: package draw2
-
The design
-
Compile:
javac draw2/DrawingPad.java
-
Run:
-
Iteration 6 The Text Tool
-
Source code: package draw3
-
The design
-
Compile:
javac draw3/DrawingPad.java
-
Run:
-
Screen shot:
-
The drawing pad application
-
The cascading menus
Book Description - About
the Author - Table of Contents
Source
Code - Errata - Send
Comments
Teaching Materials - Author's
Homepage
|