Top Fields Constructors Methods
jogamp.nativewindow

public Class SurfaceUpdatedHelper

extends Object
implements SurfaceUpdatedListener
Class Inheritance
All Implemented Interfaces
com.jogamp.nativewindow.SurfaceUpdatedListener
Imports
java.util.ArrayList, com.jogamp.nativewindow.NativeSurface, .SurfaceUpdatedListener

Field Summary

Modifier and TypeField and Description
private volatile boolean
private final ArrayList<SurfaceUpdatedListener>
private final Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final void
public final void
public final SurfaceUpdatedListener
get(final int i)

public final boolean
public final int
size()

public final void
surfaceUpdated(final Object
is the caller object who updated the surface, e.g. a JOGL GLDrawable.
updater
,
final NativeSurface
the updated NativeSurface
ns
,
final long
the time in ms, when the surface was updated
when
)

Implements com.jogamp.nativewindow.SurfaceUpdatedListener.surfaceUpdated.

Notification of a surface update event, eg.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isEmptyback to summary
private volatile boolean isEmpty
surfaceUpdatedListenersback to summary
private final ArrayList<SurfaceUpdatedListener> surfaceUpdatedListeners
surfaceUpdatedListenersLockback to summary
private final Object surfaceUpdatedListenersLock

Constructor Detail

SurfaceUpdatedHelperback to summary
public SurfaceUpdatedHelper()

Method Detail

addSurfaceUpdatedListenerback to summary
public final void addSurfaceUpdatedListener(final SurfaceUpdatedListener l)
addSurfaceUpdatedListenerback to summary
public final void addSurfaceUpdatedListener(int index, final SurfaceUpdatedListener l) throws IndexOutOfBoundsException
getback to summary
public final SurfaceUpdatedListener get(final int i)
removeSurfaceUpdatedListenerback to summary
public final boolean removeSurfaceUpdatedListener(final SurfaceUpdatedListener l)
sizeback to summary
public final int size()
surfaceUpdatedback to summary
public final void surfaceUpdated(final Object updater, final NativeSurface ns, final long when)

Implements com.jogamp.nativewindow.SurfaceUpdatedListener.surfaceUpdated.

Doc from com.jogamp.nativewindow.SurfaceUpdatedListener.surfaceUpdated.

Notification of a surface update event, eg. after a swap buffer operation.

Parameters
updater:Object

is the caller object who updated the surface, e.g. a JOGL GLDrawable.

ns:NativeSurface

the updated NativeSurface

when:long

the time in ms, when the surface was updated

Annotations
@Override