public abstract class AbstractGlimpseCanvas extends Object implements GlimpseCanvas
Constructor and Description |
---|
AbstractGlimpseCanvas() |
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(javax.media.opengl.GLRunnable runnable)
Called when
GLEventListener.dispose(GLAutoDrawable) event is fired by the GLAutoDrawable associated with the
GlimpseCanvas. |
void |
addLayout(GlimpseLayout layout)
Adds a sub-layout to this GlimpseTarget which will only paint in a region of this GlimpseTarget
based on its layout constraints.
|
void |
addLayout(GlimpseLayout layout,
int zOrder) |
void |
dispose()
A convenience method which is equivalent to:
disposeAttached( );
destroy( );
|
void |
disposeAttached()
Disposes native resources of GlimpseLayouts and GlimpsePainters associated with the GlimpseCanvas.
|
void |
disposePainter(GlimpsePainter painter)
Calls
GlimpsePainter.dispose(GlimpseContext) the next time the GLContext associated with
this GlimpseCanvas is active. |
GlimpseContext |
getGlimpseContext() |
List<GlimpseTarget> |
getTargetChildren() |
boolean |
isEventConsumer()
Sets whether this GlimpseTarget hides events from GlimpseTargets under it.
|
boolean |
isEventGenerator()
Sets whether this GlimpseTarget generates GlimpseMouseEvents.
|
void |
removeAllLayouts()
Clears the canvas, removing all attached GlimpseLayouts.
|
void |
removeLayout(GlimpseLayout layout)
Removes a previously added layout from this GlimpseTarget.
|
void |
setEventConsumer(boolean consume)
Set whether or not this GlimpseTarget will consume or pass through mouse events.
|
void |
setEventGenerator(boolean generate)
Set whether or not this GlimpseTarget will generate GlimpseMouseEvents.
|
void |
setLookAndFeel(LookAndFeel laf)
Sets the LookAndFeel for this GlimpseTarget and all child GlimpseTargets.
|
void |
setZOrder(GlimpseLayout layout,
int zOrder) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getGLContext, getGLDrawable, getGLProfile, getSurfaceScale, getTargetBounds, isDestroyed, paint
getTargetBounds, isVisible
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
public void addLayout(GlimpseLayout layout)
GlimpseTarget
addLayout
in interface GlimpseTarget
public void addLayout(GlimpseLayout layout, int zOrder)
addLayout
in interface GlimpseTarget
public void setZOrder(GlimpseLayout layout, int zOrder)
setZOrder
in interface GlimpseTarget
public void removeLayout(GlimpseLayout layout)
GlimpseTarget
removeLayout
in interface GlimpseTarget
public List<GlimpseTarget> getTargetChildren()
getTargetChildren
in interface GlimpseTarget
public void removeAllLayouts()
GlimpseTarget
removeAllLayouts
in interface GlimpseTarget
public void addDisposeListener(javax.media.opengl.GLRunnable runnable)
GlimpseCanvas
GLEventListener.dispose(GLAutoDrawable)
event is fired by the GLAutoDrawable
associated with the
GlimpseCanvas. This can happen for reasons other than the window containing the GlimpseCanvas being closed (for example, moving
the window between physical monitors or moving the container between docks in a docking framework). Thus, GlimpsePainters and
GlimpseLayouts attached to this GlimpseCanvas should generally not be disposed when this callback occurs.addDisposeListener
in interface GlimpseCanvas
public GlimpseContext getGlimpseContext()
getGlimpseContext
in interface GlimpseCanvas
public void setLookAndFeel(LookAndFeel laf)
GlimpseTarget
setLookAndFeel
in interface GlimpseTarget
public void dispose()
GlimpseCanvas
disposeAttached( );
destroy( );
dispose
in interface GlimpseCanvas
public void disposeAttached()
GlimpseCanvas
disposeAttached
in interface GlimpseCanvas
GlimpseCanvas.destroy()
public void disposePainter(GlimpsePainter painter)
GlimpseCanvas
Calls GlimpsePainter.dispose(GlimpseContext)
the next time the GLContext associated with
this GlimpseCanvas is active. Generally this call is equivalent to:
this.getGLDrawable( ).invoke( false, new GLRunnable( )
{
disposePainter
in interface GlimpseCanvas
Copyright © 2016 Metron, Inc.. All rights reserved.