All Packages Class Hierarchy This Package Previous Next Index
Class gjt.DoubleBufferedContainer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----gjt.DoubleBufferedContainer
- public class DoubleBufferedContainer
- extends Container
A double-buffered container that can be used for animation
(see Playfield) or for dragging and dropping lightweight
components.
A DoubleBufferedContainer has 2 offscreen buffers: one for
the background (alone), and a workplace buffer for drawing
into offscreen.
DoubleBufferedContainer provides a number of methods for
controlling blitting between background, workplace and
the screen itself. For instance, blitBackgroundToWorkplace()
blits the entire background to the workpace buffer, but
not to the screen. Later on, one could invoke
blitWorkPlaceToScreen(Rectangle), and the workplace would
be blitted to the screen, clipped by the specified rectangle.
- See Also:
- Playfield, DoubleBufferedContainerTest
-
buffers
-
-
DoubleBufferedContainer()
-
-
DoubleBufferedContainer(Image)
-
-
blitBackgroundToWorkplace()
-
-
blitBackgroundToWorkplace(Rectangle)
-
-
blitWorkplaceToScreen()
-
-
blitWorkplaceToScreen(Rectangle)
-
-
eraseComponent(Component)
-
-
eraseComponent(Component, boolean)
-
-
moveComponent(Component, Point)
-
-
paint(Graphics)
-
-
paintBackground()
-
-
paintBackground(Graphics)
-
-
paintBackground(Rectangle)
-
-
paintComponent(Component)
-
-
paintComponent(Component, boolean)
-
-
paintComponents(Rectangle, boolean)
-
-
paintOverlappingComponents(Component)
-
-
setWallpaperImage(Image)
-
-
update(Graphics)
-
-
windowDamaged(Graphics)
-
buffers
protected DoubleBufferedContainer. OffscreenBuffer buffers
DoubleBufferedContainer
public DoubleBufferedContainer()
DoubleBufferedContainer
public DoubleBufferedContainer(Image wallpaperImage)
setWallpaperImage
public void setWallpaperImage(Image image)
update
public void update(Graphics g)
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
blitWorkplaceToScreen
public void blitWorkplaceToScreen()
blitBackgroundToWorkplace
public void blitBackgroundToWorkplace()
blitWorkplaceToScreen
public void blitWorkplaceToScreen(Rectangle clip)
blitBackgroundToWorkplace
public void blitBackgroundToWorkplace(Rectangle clip)
paintComponents
public void paintComponents(Rectangle clip,
boolean update)
paintComponent
public void paintComponent(Component comp)
eraseComponent
public void eraseComponent(Component comp)
paintComponent
public void paintComponent(Component comp,
boolean update)
eraseComponent
public void eraseComponent(Component comp,
boolean update)
moveComponent
public void moveComponent(Component comp,
Point newLoc)
windowDamaged
protected boolean windowDamaged(Graphics g)
paintOverlappingComponents
protected void paintOverlappingComponents(Component comp)
paintBackground
protected void paintBackground()
paintBackground
protected void paintBackground(Rectangle clip)
paintBackground
protected void paintBackground(Graphics g)
All Packages Class Hierarchy This Package Previous Next Index