|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface implemented by pluggable renderers. Each AgileJFrame has an instance of a PluggableRenderer associated with it - the PluggableRenderer is forwarded update, paint and repaint messages from the AgileJFrame. It is responsible for rendering the contents of the frame.
| Method Summary | |
void |
addAWTEventListener(AWTEventListener evt)
Adds an event listener that is called for all events that are dispatched to the frame by the underlying rendering surface. |
void |
dispose()
Discards any device data used by this renderer. |
void |
flush(Image image)
Flush an image from video memory. |
BufferedImage |
getImage()
|
String |
getName()
Returns the name of this renderer. |
boolean |
isDoubleBuffered()
Returns true if the renderer uses harware double-buffering. |
void |
notifyAfterSetRootPane(JRootPane pane)
Called by the AgileJFrame associated with this renderer to inform the renderer that the frame has had its root pane set. |
void |
notifyBeforeSetRootPane(JRootPane pane)
Called by the AgileJFrame associated with this renderer to inform the renderer that the frame is about to change its root pane. |
boolean |
notifyPaint(Graphics g)
Called by the AgileJFrame associated with this renderer to inform the renderer that it is being painted. |
boolean |
notifyRepaint(long tm,
int x,
int y,
int width,
int height)
Called by the AgileJFrame associated with this renderer to inform the renderer that repaint has been called. |
boolean |
notifyUpdate(Graphics g)
Called by the AgileJFrame associated with this renderer to inform the renderer that is being updated. |
void |
removeAWTEventListener(AWTEventListener evt)
Removes event listeners added by addAWTEventListener. |
void |
setCursor(Cursor c)
|
void |
setDoubleBuffered(boolean v)
Tells the renderer whether to use hardware double buffering if it is available. |
| Method Detail |
public String getName()
public boolean isDoubleBuffered()
public void setDoubleBuffered(boolean v)
public void flush(Image image)
Pluggable renderers may cache the contents of an images using video memory on the graphics card. Unfortunately, because Java AWT provides no notification mechanism for discovering when an image's contents have changed, renderers are unable to detect changes to the image, and hence the renderer's version of an image can become out of date. Applications must call this method to force the current renderer to discard any copies of the image that cached in video memory.
public void dispose()
public void notifyBeforeSetRootPane(JRootPane pane)
public void notifyAfterSetRootPane(JRootPane pane)
public boolean notifyRepaint(long tm,
int x,
int y,
int width,
int height)
public boolean notifyPaint(Graphics g)
public boolean notifyUpdate(Graphics g)
public void setCursor(Cursor c)
public BufferedImage getImage()
public void addAWTEventListener(AWTEventListener evt)
public void removeAWTEventListener(AWTEventListener evt)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||