Package de.unifreiburg.twodeedoo.scene

Scene management (Scene, Puppets)

See:
          Description

Interface Summary
IPhasedPuppet a IPuppet which can change its appearance to one of many (1..) phases selected by index (at least 0 but less than getNumberOfPhases)
IPuppet I'm an IPainter which can be moved around.
IScene I contain a collection of puppets and manage their painting.
ITextPuppet I display text on a scene.
 

Class Summary
AbstractPuppet Implementation base for IPuppets.
MultiImagePartPuppet IPhasedPuppet implementation which paints one of a collection of IBrushes.
SimpleScene Simple IScene as a composite of IPainters.
SimpleTextPuppet IPuppet which displays a string of text in default font and color.
 

Package de.unifreiburg.twodeedoo.scene Description

Scene management (Scene, Puppets)

The IScene is a plane with IPuppets on it. IScenes draw to Swing graphics contexts when asked to. Implementations of IScene can transform coordinates in order to achieve scaling, clipping, scrolling, etc; however, the SimpleScene implementation does not do any of these.

IPuppets occupy one particular place on the IScene, and they know how to paint themselves. Puppets stay on the scene in the same place until you move or IPuppet#removeFromScene() remove them.

Two implementations of IPuppets are provided: MultiImagePartPuppet (which displays any of a collection of bitmaps) and SimpleTextPuppet (which displays text in Swing's standard font).