|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--agile2d.AgileJFrame
An implementation of JFrame that uses a "pluggable renderer" mechanism to manage rendering the contents of the frame.
Each AgileJFrame has a PluggableRenderer associated with it. The PluggableRenderer is responsible for rendering performed in the frame. It also provides additional methods for controlling the renderer at a high level.
Currently, two renderers are implemented: One using the standard Java2D classes built into the Java runtime, and one using an experimental OpenGL implementation. OpenGL may accelerate rendering for certain applications.
PluggableRenderers are obtained using the PluggableRendererSpi
class. The provider is configured using the System property
"agile.provider". If this System property is "java2d", then the frame
paints graphics using the standard Java2D rendering engine provided with
the JVM. If the property is unspecified, or is "opengl", the AgileJFrame
attempts to use the Agile2D OpenGL Renderer to perform rendering within
the frame, falling back on the standard Java2D rendering engine if the
Agile2D OpenGL Renderer is unavailable.
PluggableRenderer,
Serialized Form| Field Summary |
| Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
AgileJFrame()
Create a new AgileJFrame object. |
|
AgileJFrame(GraphicsConfiguration config)
Create a new AgileJFrame object. |
|
AgileJFrame(String name)
Create a new AgileJFrame object. |
|
AgileJFrame(String name,
GraphicsConfiguration config)
Create a new AgileJFrame object. |
|
| 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()
|
BufferedImage |
getImage()
|
PluggableRenderer |
getPluggableRenderer()
|
String |
getPluggableRendererName()
|
void |
paint(Graphics g)
|
void |
removeAWTEventListener(AWTEventListener evt)
Removes event listeners added by addAWTEventListener. |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
|
void |
setCursor(Cursor cursor)
|
void |
setDoubleBuffered(boolean b)
|
protected void |
setRootPane(JRootPane root)
|
void |
update(Graphics g)
|
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Constructor Detail |
public AgileJFrame()
public AgileJFrame(String name)
public AgileJFrame(GraphicsConfiguration config)
public AgileJFrame(String name,
GraphicsConfiguration config)
| Method Detail |
public PluggableRenderer getPluggableRenderer()
public String getPluggableRendererName()
public void setDoubleBuffered(boolean b)
public void addAWTEventListener(AWTEventListener evt)
evt - the AWTEventListener.public void removeAWTEventListener(AWTEventListener evt)
evt - the AWTEventListener.protected void setRootPane(JRootPane root)
setRootPane in class JFramepublic void dispose()
dispose in class Window
public void repaint(long tm,
int x,
int y,
int width,
int height)
repaint in class Componentpublic void paint(Graphics g)
paint in class Containerpublic void update(Graphics g)
update in class JFramepublic void setCursor(Cursor cursor)
setCursor in class WindowWindow.setCursor(Cursor)public BufferedImage getImage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||