Java Reference
In-Depth Information
DrawingPanel
*
Shape
- strokeColor : Color
1
+ draw () : void
ArrayList
Line
BoundedShape
Poly
- firstPoint : Point
- secondPoint : Point
- upperLeft : Point
- width, height : int
- xList, yList : ArrayList
Rect
Oval
FIGURE J.5 A class diagram for the second refinement of the PaintBox project
Remaining PaintBox Refinements
For space reasons, the code for the various PaintBox refinements is not presented
in the text. The full implementation of the first two refinements can be down-
loaded with the rest of the topic's examples. The remaining refinements are left
as projects.
The refinements of the PaintBox program continue until all requirements issues
and problems have been addressed. This type of evolutionary development is
crucial for medium- and large-scale development efforts. Figure J.7 shows the
PaintBox program after all of the seven refinements have been completed.
Search WWH ::




Custom Search