com.metsci.glimpse.context
Interface GlimpseContext

All Known Implementing Classes:
GlimpseContextImpl

public interface GlimpseContext

GlimpseContext wraps a GLContext and provides additional contextual information necessary to display a GlimpsePainter.

Author:
ulman

Method Summary
 int getDPI()
           
 javax.media.opengl.GL getGL()
           
 javax.media.opengl.GLContext getGLContext()
           
 GlimpseTargetStack getTargetStack()
          The GlimpseTargetStack stack contains the chain of nested GlimpseTargets starting at the top level GlimpseTarget (index 0) and ending at the GlimpseTarget currently being painted to.
 

Method Detail

getGLContext

javax.media.opengl.GLContext getGLContext()
Returns:
a reference to the OpenGL rendering context wrapped by this GlimpseContext

getGL

javax.media.opengl.GL getGL()
Returns:
a convenience method shorthand for the common: getGLContext( ).getGL( )

getTargetStack

GlimpseTargetStack getTargetStack()
The GlimpseTargetStack stack contains the chain of nested GlimpseTargets starting at the top level GlimpseTarget (index 0) and ending at the GlimpseTarget currently being painted to.

The top level GlimpseTarget is always an instance of GlimpseCanvas. The other levels are instances of GlimpseLayout.


getDPI

int getDPI()
Returns:
the ratio of pixels per inch for the current context


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