FBOGlimpseCanvas
public class SimpleOffscreenCanvas extends Object implements GlimpseCanvas
com.metsci.glimpse.canvas.FrameBufferGlimpseCanvas
Constructor and Description |
---|
SimpleOffscreenCanvas(int width,
int height,
boolean useDepth,
boolean useStencil)
Deprecated.
|
SimpleOffscreenCanvas(int width,
int height,
boolean useDepth,
boolean useStencil,
javax.media.opengl.GLContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(javax.media.opengl.GLRunnable runnable)
Deprecated.
Called when
GLEventListener.dispose(GLAutoDrawable) event is fired by the GLAutoDrawable associated with the
GlimpseCanvas. |
void |
addLayout(GlimpseLayout layout)
Deprecated.
Adds a sub-layout to this GlimpseTarget which will only paint in a region of this GlimpseTarget
based on its layout constraints.
|
void |
addLayout(GlimpseLayout layout,
int zOrder)
Deprecated.
|
void |
destroy()
Deprecated.
Destroys the native surface which this canvas draws to.
|
void |
dispose()
Deprecated.
A convenience method which is equivalent to:
disposeAttached( );
destroy( );
|
void |
disposeAttached()
Deprecated.
Disposes native resources of GlimpseLayouts and GlimpsePainters associated with the GlimpseCanvas.
|
void |
disposePainter(GlimpsePainter painter)
Deprecated.
Calls
GlimpsePainter.dispose(GlimpseContext) the next time the GLContext associated with
this GlimpseCanvas is active. |
Dimension |
getDimension()
Deprecated.
|
GLSimpleFrameBufferObject |
getFrameBuffer()
Deprecated.
|
javax.media.opengl.GLContext |
getGLContext()
Deprecated.
|
javax.media.opengl.GLAutoDrawable |
getGLDrawable()
Deprecated.
|
GlimpseContext |
getGlimpseContext()
Deprecated.
|
javax.media.opengl.GLProfile |
getGLProfile()
Deprecated.
|
int[] |
getSurfaceScale()
Deprecated.
Returns the scale factors needed to convert the _native_ pixel coordinates to
the _window_ pixel coordinates.
|
GlimpseBounds |
getTargetBounds()
Deprecated.
|
GlimpseBounds |
getTargetBounds(GlimpseTargetStack stack)
Deprecated.
Returns the cached or calculated bounds of this GlimpseTarget for a particular context.
|
List<GlimpseTarget> |
getTargetChildren()
Deprecated.
|
void |
initialize(javax.media.opengl.GLContext context)
Deprecated.
|
boolean |
isDestroyed()
Deprecated.
|
boolean |
isEventConsumer()
Deprecated.
Sets whether this GlimpseTarget hides events from GlimpseTargets under it.
|
boolean |
isEventGenerator()
Deprecated.
Sets whether this GlimpseTarget generates GlimpseMouseEvents.
|
boolean |
isVisible()
Deprecated.
If true, the GlimpseTarget should be drawn on the screen and mouse events
should be dispatched for it.
|
void |
paint()
Deprecated.
Lays out any
GlimpseLayout instances
attached to the GlimpseCanvas and paints all
GlimpsePainter instances attached
to the GlimpseLayouts. |
void |
removeAllLayouts()
Deprecated.
Clears the canvas, removing all attached GlimpseLayouts.
|
void |
removeLayout(GlimpseLayout layout)
Deprecated.
Removes a previously added layout from this GlimpseTarget.
|
void |
resize(int new_width,
int new_height)
Deprecated.
|
void |
setEventConsumer(boolean consume)
Deprecated.
Set whether or not this GlimpseTarget will consume or pass through mouse events.
|
void |
setEventGenerator(boolean generate)
Deprecated.
Set whether or not this GlimpseTarget will generate GlimpseMouseEvents.
|
void |
setLookAndFeel(LookAndFeel laf)
Deprecated.
Sets the LookAndFeel for this GlimpseTarget and all child GlimpseTargets.
|
void |
setZOrder(GlimpseLayout layout,
int zOrder)
Deprecated.
|
String |
toString()
Deprecated.
|
public SimpleOffscreenCanvas(int width, int height, boolean useDepth, boolean useStencil)
public SimpleOffscreenCanvas(int width, int height, boolean useDepth, boolean useStencil, javax.media.opengl.GLContext context)
public void initialize(javax.media.opengl.GLContext context)
public void resize(int new_width, int new_height)
public GLSimpleFrameBufferObject getFrameBuffer()
public Dimension getDimension()
public GlimpseContext getGlimpseContext()
getGlimpseContext
in interface GlimpseCanvas
public javax.media.opengl.GLContext getGLContext()
getGLContext
in interface GlimpseCanvas
public GlimpseBounds getTargetBounds(GlimpseTargetStack stack)
GlimpseTarget
getTargetBounds
in interface GlimpseTarget
public GlimpseBounds getTargetBounds()
getTargetBounds
in interface GlimpseCanvas
public void addLayout(GlimpseLayout layout)
GlimpseTarget
addLayout
in interface GlimpseTarget
public void addLayout(GlimpseLayout layout, int zOrder)
addLayout
in interface GlimpseTarget
public void setZOrder(GlimpseLayout layout, int zOrder)
setZOrder
in interface GlimpseTarget
public void removeLayout(GlimpseLayout layout)
GlimpseTarget
removeLayout
in interface GlimpseTarget
public void removeAllLayouts()
GlimpseTarget
removeAllLayouts
in interface GlimpseTarget
public List<GlimpseTarget> getTargetChildren()
getTargetChildren
in interface GlimpseTarget
public void setLookAndFeel(LookAndFeel laf)
GlimpseTarget
setLookAndFeel
in interface GlimpseTarget
public void paint()
GlimpseCanvas
GlimpseLayout
instances
attached to the GlimpseCanvas and paints all
GlimpsePainter
instances attached
to the GlimpseLayouts.paint
in interface GlimpseCanvas
public boolean isEventConsumer()
GlimpseTarget
isEventConsumer
in interface GlimpseTarget
public void setEventConsumer(boolean consume)
GlimpseTarget
setEventConsumer
in interface GlimpseTarget
public boolean isEventGenerator()
GlimpseTarget
GlimpseTarget.isEventConsumer()
).isEventGenerator
in interface GlimpseTarget
public void setEventGenerator(boolean generate)
GlimpseTarget
setEventGenerator
in interface GlimpseTarget
public javax.media.opengl.GLAutoDrawable getGLDrawable()
getGLDrawable
in interface GlimpseCanvas
public javax.media.opengl.GLProfile getGLProfile()
getGLProfile
in interface GlimpseCanvas
public void destroy()
GlimpseCanvas
#disposeAttached()
.destroy
in interface GlimpseCanvas
GlimpseCanvas.disposeAttached()
public boolean isDestroyed()
isDestroyed
in interface GlimpseCanvas
#dispose()
has been successfully called. Once true, this GlimpseCanvas is no longer valid for rendering.public void addDisposeListener(javax.media.opengl.GLRunnable runnable)
GlimpseCanvas
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.addDisposeListener
in interface GlimpseCanvas
public void dispose()
GlimpseCanvas
disposeAttached( );
destroy( );
dispose
in interface GlimpseCanvas
public void disposeAttached()
GlimpseCanvas
disposeAttached
in interface GlimpseCanvas
GlimpseCanvas.destroy()
public void disposePainter(GlimpsePainter painter)
GlimpseCanvas
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( )
{
disposePainter
in interface GlimpseCanvas
public boolean isVisible()
GlimpseTarget
isVisible
in interface GlimpseTarget
public int[] getSurfaceScale()
GlimpseCanvas
getSurfaceScale
in interface GlimpseCanvas
Copyright © 2016 Metron, Inc.. All rights reserved.