|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
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 IPuppet s. |
MultiImagePartPuppet | IPhasedPuppet implementation which paints
one of a collection of IBrush es. |
SimpleScene | Simple IScene as a composite of IPainter s. |
SimpleTextPuppet | IPuppet which displays a string of text in default font and color. |
Scene management (Scene, Puppets)
The IScene
is a plane with IPuppet
s on it.
IScene
s 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.
IPuppet
s 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 IPuppet
s are provided: MultiImagePartPuppet
(which displays any of a collection of bitmaps) and SimpleTextPuppet
(which displays text in Swing's standard font).
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |