|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface presents an abstracted view of GUI objects that Magician can render onto, for example, Sun VM Canvas objects, Microsoft-specific heavyweight classes and lightweight Swing/JFC/WFC-based components. This interface also is used by the GLEventListener interface for passing common events around Magician components.
GLEventListener
,
GLComponent
Method Summary | |
void |
addGLEventListener(GLEventListener listener)
This method registers a component listener with this component. |
void |
destroy()
Destroys the component completely. |
GLContext |
getContext()
Returns the rendering context associated with this component |
GLEventListener |
getListener()
Returns the listener chain associated with a component |
boolean |
initialize()
Initializes the component. |
boolean |
isInitialized()
Tests to see whether the component is initialized |
boolean |
isOffscreen()
Returns whether or not this component is onscreen or offscreen |
boolean |
isRunning()
Returns whether or not the internal thread is running |
boolean |
isSuspended()
Returns whether or not the component is suspended |
void |
processDisplayEvent(GLEventListener listener)
Processes an display event. |
void |
processInitializeEvent(GLEventListener listener)
Processes an initialize event. |
void |
processReshapeEvent(GLEventListener listener)
Processes an reshape event. |
void |
removeGLEventListener(GLEventListener listener)
This method removes a GLEventListener from the listener chain |
void |
restart()
Reinitializes the component completely. |
void |
resume()
Resumes the component allowing it to process reshape, repaint and initialize events. |
void |
start()
Starts up the component handling. |
void |
stop()
Shuts down the internal thread safely. |
void |
suspend()
Stops the component from processing reshape, repaint and initialize events. |
Method Detail |
public GLContext getContext()
public void addGLEventListener(GLEventListener listener)
listener
- The GLEventListener to addpublic void removeGLEventListener(GLEventListener listener)
listener
- The GLEventListener to removepublic GLEventListener getListener()
public boolean initialize()
public void restart()
public void destroy()
public void start()
public void stop()
public void suspend()
public void resume()
public boolean isRunning()
public boolean isSuspended()
public boolean isInitialized()
public boolean isOffscreen()
public void processInitializeEvent(GLEventListener listener)
public void processReshapeEvent(GLEventListener listener)
public void processDisplayEvent(GLEventListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |