public class GlimpseContextImpl extends Object implements GlimpseContext
Constructor and Description |
---|
GlimpseContextImpl(javax.media.opengl.GLContext context,
int[] scale) |
GlimpseContextImpl(GlimpseCanvas canvas) |
Modifier and Type | Method and Description |
---|---|
int |
getDPI() |
javax.media.opengl.GL |
getGL() |
javax.media.opengl.GLContext |
getGLContext() |
int[] |
getSurfaceScale()
Returns the scale factors needed to convert the _native_ pixel coordinates to
the _window_ pixel coordinates.
|
GlimpseTargetStack |
getTargetStack()
The
GlimpseTargetStack stack contains the chain of nested
GlimpseTarget s starting at the top level GlimpseTarget
(index 0) and ending at the GlimpseTarget currently being painted to. |
String |
toString() |
public GlimpseContextImpl(javax.media.opengl.GLContext context, int[] scale)
public GlimpseContextImpl(GlimpseCanvas canvas)
public javax.media.opengl.GLContext getGLContext()
getGLContext
in interface GlimpseContext
public javax.media.opengl.GL getGL()
getGL
in interface GlimpseContext
getGLContext( )
.getGL( )
public GlimpseTargetStack getTargetStack()
GlimpseContext
GlimpseTargetStack
stack contains the chain of nested
GlimpseTarget
s 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
.
getTargetStack
in interface GlimpseContext
public int getDPI()
getDPI
in interface GlimpseContext
public int[] getSurfaceScale()
GlimpseContext
getSurfaceScale
in interface GlimpseContext
Copyright © 2016 Metron, Inc.. All rights reserved.