A Flexible Static Visual Content System
|
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
Content
object can only contain one ``piece'' of visual content.sampled.Content
object that
used one BufferedImage
as a character's head and another
BufferedImage
as its bodydescribed.Content
object
that encapsulates, for example, a house with a door and
roof that are different colorsOne Obvious Design
Using the Composite Pattern
Three "Copies" of the Composite
One Composite
Using an Abstract Parent
Using a Parameterized Parent
visual.statik
Package
AbstractAggregateContent
visual.statik
Package (cont.)
CompositeContent
visual.statik.sampled
Package
CompositeContent
visual.statik.described
Package
CompositeContent
described.CompositeContent
Visualization