|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.event.ComponentAdapter
|
+--client.BackingStore
Defines the offscreen buffer used in client.DoubleBufferedContainer.
| Constructor Summary | |
BackingStore(java.awt.Component component)
Constructor |
|
| Method Summary | |
void |
blitTo(java.awt.Graphics graphics)
Blits the offscreen buffer to the front buffer. |
void |
blitTo(java.awt.Graphics g,
java.awt.Rectangle clip)
Blits a portion of the offscreen buffer to the front buffer. |
void |
blitTo(java.awt.Image im)
Blits the offscreen buffer to the front buffer. |
void |
blitTo(java.awt.Image im,
java.awt.Rectangle clip)
Blits a portion of the offscreen buffer to the front buffer. |
void |
componentResized(java.awt.event.ComponentEvent event)
Recreates the backingstore if any component on it was resized. |
java.awt.Component |
getComponent()
Returns the component on the backingstore. |
java.awt.Graphics |
getGraphics()
Returns the offscreen buffers' graphics context. |
java.awt.Image |
getImage()
Returns an image of the offscreen buffer. |
void |
setComponent(java.awt.Component c)
Sets the component to be drawn on the backingstore. |
| Methods inherited from class java.awt.event.ComponentAdapter |
componentHidden, componentMoved, componentShown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BackingStore(java.awt.Component component)
component - A component to be drawn on the backingstore| Method Detail |
public void setComponent(java.awt.Component c)
c - A component to be drawn on the backingstorepublic java.awt.Component getComponent()
public java.awt.Image getImage()
public java.awt.Graphics getGraphics()
public void componentResized(java.awt.event.ComponentEvent event)
componentResized in interface java.awt.event.ComponentListenercomponentResized in class java.awt.event.ComponentAdapterevent - The ComponentEvent to be examinedpublic void blitTo(java.awt.Image im)
im - The image representing the offscreen bufferpublic void blitTo(java.awt.Graphics graphics)
graphics - The graphics context of the offscreen buffer
public void blitTo(java.awt.Image im,
java.awt.Rectangle clip)
im - The image representing the offscreen bufferclip - A rectangle defining the part of the backingstore to be
blitted.
public void blitTo(java.awt.Graphics g,
java.awt.Rectangle clip)
clip - A rectangle defining the part of the backingstore to be
blitted.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||