public interface GlimpseCanvas extends GlimpseTarget
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(javax.media.opengl.GLRunnable runnable)
Called when
GLEventListener.dispose(GLAutoDrawable) event is fired by the GLAutoDrawable associated with the
GlimpseCanvas. |
void |
destroy()
Destroys the native surface which this canvas draws to.
|
void |
dispose()
A convenience method which is equivalent to:
disposeAttached( );
destroy( );
|
void |
disposeAttached()
Disposes native resources of GlimpseLayouts and GlimpsePainters associated with the GlimpseCanvas.
|
void |
disposePainter(GlimpsePainter painter)
Calls
GlimpsePainter.dispose(GlimpseContext) the next time the GLContext associated with
this GlimpseCanvas is active. |
javax.media.opengl.GLContext |
getGLContext() |
javax.media.opengl.GLAutoDrawable |
getGLDrawable() |
GlimpseContext |
getGlimpseContext() |
javax.media.opengl.GLProfile |
getGLProfile() |
int[] |
getSurfaceScale()
Returns the scale factors needed to convert the _native_ pixel coordinates to
the _window_ pixel coordinates.
|
GlimpseBounds |
getTargetBounds() |
boolean |
isDestroyed() |
void |
paint()
Lays out any
GlimpseLayout instances
attached to the GlimpseCanvas and paints all
GlimpsePainter instances attached
to the GlimpseLayouts. |
addLayout, addLayout, getTargetBounds, getTargetChildren, isEventConsumer, isEventGenerator, isVisible, removeAllLayouts, removeLayout, setEventConsumer, setEventGenerator, setLookAndFeel, setZOrder
javax.media.opengl.GLProfile getGLProfile()
javax.media.opengl.GLAutoDrawable getGLDrawable()
javax.media.opengl.GLContext getGLContext()
GlimpseContext getGlimpseContext()
GlimpseBounds getTargetBounds()
void paint()
GlimpseLayout
instances
attached to the GlimpseCanvas and paints all
GlimpsePainter
instances attached
to the GlimpseLayouts.void destroy()
#disposeAttached()
.disposeAttached()
void disposeAttached()
destroy()
void dispose()
disposeAttached( );
destroy( );
void disposePainter(GlimpsePainter painter)
Calls GlimpsePainter.dispose(GlimpseContext)
the next time the GLContext associated with
this GlimpseCanvas is active. Generally this call is equivalent to:
this.getGLDrawable( ).invoke( false, new GLRunnable( )
{
boolean isDestroyed()
#dispose()
has been successfully called. Once true, this GlimpseCanvas is no longer valid for rendering.void addDisposeListener(javax.media.opengl.GLRunnable runnable)
GLEventListener.dispose(GLAutoDrawable)
event is fired by the GLAutoDrawable
associated with the
GlimpseCanvas. This can happen for reasons other than the window containing the GlimpseCanvas being closed (for example, moving
the window between physical monitors or moving the container between docks in a docking framework). Thus, GlimpsePainters and
GlimpseLayouts attached to this GlimpseCanvas should generally not be disposed when this callback occurs.int[] getSurfaceScale()
Copyright © 2016 Metron, Inc.. All rights reserved.