Click here to load reader
Date post: | 18-Nov-2014 |
Category: |
Technology |
Upload: | melbournepatterns |
View: | 1,151 times |
Download: | 0 times |
Click here to load reader
Structural Patterns - Composite
Melbourne Patterns Group July 1 2009Chris Bushell
Intent
Allow clients to treat primitive objects and containers in the same way
Graphics Example
• Line
• Rectangle
• Text
etc.
Graphics Example Continued
GraphicLineRectanglePicture
LineRectangle
Recursive Composition
Puzzle Example
Participants
• Component
• Leaf
• Composite
Participants
Code