|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.canvas.OffscreenGlimpseCanvas
public class OffscreenGlimpseCanvas
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).
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 |
---|
public OffscreenGlimpseCanvas(int width, int height)
public OffscreenGlimpseCanvas(int width, int height, javax.media.opengl.GLContext _context)
Method Detail |
---|
public java.awt.Dimension getDimension()
public java.lang.Object glSyncExec(GLSimplePixelBuffer.GLRunnable runnable)
public java.awt.image.BufferedImage drawToBufferedImage()
public void resize(int width, int height, boolean notifyListeners)
public GlimpseContext getGlimpseContext()
getGlimpseContext
in interface GlimpseCanvas
public void setLookAndFeel(LookAndFeel laf)
setLookAndFeel
in interface GlimpseTarget
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 removeLayout(GlimpseLayout layout)
GlimpseTarget
removeLayout
in interface GlimpseTarget
public java.util.List<GlimpseTarget> getTargetChildren()
getTargetChildren
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 javax.media.opengl.GLContext getGLContext()
getGLContext
in interface GlimpseCanvas
public void dispose()
GlimpseCanvas
dispose
in interface GlimpseCanvas
public boolean isDisposed()
isDisposed
in interface GlimpseCanvas
public java.lang.String toString()
toString
in class java.lang.Object
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |