com.metsci.glimpse.canvas
Interface GlimpseCanvas

All Superinterfaces:
GlimpseTarget
All Known Implementing Classes:
FrameBufferGlimpseCanvas, OffscreenGlimpseCanvas, SwingGlimpseCanvas, SwtBridgeGlimpseCanvas, SwtGlimpseCanvas

public interface GlimpseCanvas
extends GlimpseTarget

A heavy weight target for Glimpse rendering. Represents the base component onto which all Glimpse rendering is ultimately performed. GlimpseCanvas provides a facade that hides the implementation details of the specific widget toolkit (Swt or Swing) being used, allowing most Glimpse applications to be easily ported between the two.

Author:
ulman

Method Summary
 void dispose()
          Disposes of any native resources associated with the GlimpseCanvas.
 javax.media.opengl.GLContext getGLContext()
           
 GlimpseContext getGlimpseContext()
           
 GlimpseBounds getTargetBounds()
           
 boolean isDisposed()
           
 void paint()
          Lays out any GlimpseLayout instances attached to the GlimpseCanvas and paints all GlimpsePainter instances attached to the GlimpseLayouts.
 
Methods inherited from interface com.metsci.glimpse.context.GlimpseTarget
addLayout, getTargetBounds, getTargetChildren, isEventConsumer, isEventGenerator, removeLayout, setEventConsumer, setEventGenerator, setLookAndFeel
 

Method Detail

getGLContext

javax.media.opengl.GLContext getGLContext()

getGlimpseContext

GlimpseContext getGlimpseContext()

getTargetBounds

GlimpseBounds getTargetBounds()

paint

void paint()
Lays out any GlimpseLayout instances attached to the GlimpseCanvas and paints all GlimpsePainter instances attached to the GlimpseLayouts.


dispose

void dispose()
Disposes of any native resources associated with the GlimpseCanvas.


isDisposed

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


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