com.metsci.glimpse.canvas
Class OffscreenGlimpseCanvas

java.lang.Object
  extended by com.metsci.glimpse.canvas.OffscreenGlimpseCanvas
All Implemented Interfaces:
GlimpseCanvas, GlimpseTarget

Deprecated. FrameBufferGlimpseCanvas

public class OffscreenGlimpseCanvas
extends java.lang.Object
implements GlimpseCanvas

A GlimpseCanvas which makes use of GLPbuffer to render Glimpse components of an offscreen drawing buffer which can then be rendered to a BufferedImage.

This is no longer the preferred way of rendering Glimpse components offscreen. The FrameBufferGlimpseCanvas GlimpseCanvas provides additional capabilities (such as rendering the GlimpseCanvas onto an OpenGL texture).

Author:
ulman

Constructor Summary
OffscreenGlimpseCanvas(int width, int height)
          Deprecated.  
OffscreenGlimpseCanvas(int width, int height, javax.media.opengl.GLContext _context)
          Deprecated.  
 
Method Summary
 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 dispose()
          Deprecated. Disposes of any native resources associated with the GlimpseCanvas.
 java.awt.image.BufferedImage drawToBufferedImage()
          Deprecated.  
 java.awt.Dimension getDimension()
          Deprecated.  
 javax.media.opengl.GLContext getGLContext()
          Deprecated.  
 GlimpseContext getGlimpseContext()
          Deprecated.  
 GlimpseBounds getTargetBounds()
          Deprecated.  
 GlimpseBounds getTargetBounds(GlimpseTargetStack stack)
          Deprecated. Returns the cached or calculated bounds of this GlimpseTarget for a particular context.
 java.util.List<GlimpseTarget> getTargetChildren()
          Deprecated.  
 java.lang.Object glSyncExec(GLSimplePixelBuffer.GLRunnable runnable)
          Deprecated.  
 boolean isDisposed()
          Deprecated.  
 boolean isEventConsumer()
          Deprecated. Sets whether this GlimpseTarget hides events from GlimpseTargets under it.
 boolean isEventGenerator()
          Deprecated. Sets whether this GlimpseTarget generates GlimpseMouseEvents.
 void paint()
          Deprecated. Lays out any GlimpseLayout instances attached to the GlimpseCanvas and paints all GlimpsePainter instances attached to the GlimpseLayouts.
 void removeLayout(GlimpseLayout layout)
          Deprecated. Removes a previously added layout from this GlimpseTarget.
 void resize(int width, int height, boolean notifyListeners)
          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.  
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OffscreenGlimpseCanvas

public OffscreenGlimpseCanvas(int width,
                              int height)
Deprecated. 

OffscreenGlimpseCanvas

public OffscreenGlimpseCanvas(int width,
                              int height,
                              javax.media.opengl.GLContext _context)
Deprecated. 
Method Detail

getDimension

public java.awt.Dimension getDimension()
Deprecated. 

glSyncExec

public java.lang.Object glSyncExec(GLSimplePixelBuffer.GLRunnable runnable)
Deprecated. 

drawToBufferedImage

public java.awt.image.BufferedImage drawToBufferedImage()
Deprecated. 

resize

public void resize(int width,
                   int height,
                   boolean notifyListeners)
Deprecated. 

getGlimpseContext

public GlimpseContext getGlimpseContext()
Deprecated. 
Specified by:
getGlimpseContext in interface GlimpseCanvas

setLookAndFeel

public void setLookAndFeel(LookAndFeel laf)
Deprecated. 
Specified by:
setLookAndFeel in interface GlimpseTarget

getTargetBounds

public GlimpseBounds getTargetBounds(GlimpseTargetStack stack)
Deprecated. 
Description copied from interface: GlimpseTarget
Returns the cached or calculated bounds of this GlimpseTarget for a particular context.

Specified by:
getTargetBounds in interface GlimpseTarget
Returns:
the bounds for the given stack

getTargetBounds

public GlimpseBounds getTargetBounds()
Deprecated. 
Specified by:
getTargetBounds in interface GlimpseCanvas

addLayout

public void addLayout(GlimpseLayout layout)
Deprecated. 
Description copied from interface: GlimpseTarget
Adds a sub-layout to this GlimpseTarget which will only paint in a region of this GlimpseTarget based on its layout constraints. This same GlimpseLayout may be a child of any number of different GlimpseTargets.

Specified by:
addLayout in interface GlimpseTarget

removeLayout

public void removeLayout(GlimpseLayout layout)
Deprecated. 
Description copied from interface: GlimpseTarget
Removes a previously added layout from this GlimpseTarget.

Specified by:
removeLayout in interface GlimpseTarget

getTargetChildren

public java.util.List<GlimpseTarget> getTargetChildren()
Deprecated. 
Specified by:
getTargetChildren in interface GlimpseTarget
Returns:
the list of children added through addLayout( GlimpseLayout ).

paint

public void paint()
Deprecated. 
Description copied from interface: GlimpseCanvas
Lays out any GlimpseLayout instances attached to the GlimpseCanvas and paints all GlimpsePainter instances attached to the GlimpseLayouts.

Specified by:
paint in interface GlimpseCanvas

getGLContext

public javax.media.opengl.GLContext getGLContext()
Deprecated. 
Specified by:
getGLContext in interface GlimpseCanvas

dispose

public void dispose()
Deprecated. 
Description copied from interface: GlimpseCanvas
Disposes of any native resources associated with the GlimpseCanvas.

Specified by:
dispose in interface GlimpseCanvas

isDisposed

public boolean isDisposed()
Deprecated. 
Specified by:
isDisposed in interface GlimpseCanvas
Returns:
whether or not dispose() has been successfully called. Once true, this GlimpseCanvas is no longer valid for rendering.

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

isEventConsumer

public boolean isEventConsumer()
Deprecated. 
Description copied from interface: GlimpseTarget
Sets whether this GlimpseTarget hides events from GlimpseTargets under it. This value does not determine whether or not the GlimpseTarget will generate GlimpseMouseEvents (see {@link #isEventGenerator()).

Specified by:
isEventConsumer in interface GlimpseTarget
Returns:
whether this target hides events from targets under it

setEventConsumer

public void setEventConsumer(boolean consume)
Deprecated. 
Description copied from interface: GlimpseTarget
Set whether or not this GlimpseTarget will consume or pass through mouse events.

Specified by:
setEventConsumer in interface GlimpseTarget

isEventGenerator

public boolean isEventGenerator()
Deprecated. 
Description copied from interface: GlimpseTarget
Sets whether this GlimpseTarget generates GlimpseMouseEvents. This value does not determine whether or not GlimpseTargets underneath this GlimpseTarget will also generate GlimpseMouseEvents (see GlimpseTarget.isEventConsumer()).

Specified by:
isEventGenerator in interface GlimpseTarget
Returns:
whether this target will generate GlimpseMouseEvents

setEventGenerator

public void setEventGenerator(boolean generate)
Deprecated. 
Description copied from interface: GlimpseTarget
Set whether or not this GlimpseTarget will generate GlimpseMouseEvents.

Specified by:
setEventGenerator in interface GlimpseTarget


Copyright © 2012 Metron, Inc.. All Rights Reserved.