Intent
Enable to assemble complex objects out of primitive objects, recursive composition.
Applicability
- need to assemble objects out of primitive objects
- represent a part-whole hierarchies
Structure
[to do: diagram with Component and Composite]
Consequences
- it is easy to add new primitive objects that can be assembled into composites
- plurality is hidden from interfaces
- black-box reuse
Implementation
- navigating and finding children in a composite
- back pointerst to parent?
Uses in JHotDraw