javax.media.nativewindow
Interface ProxySurface.UpstreamSurfaceHook

Enclosing class:
ProxySurface

public static interface ProxySurface.UpstreamSurfaceHook

Interface allowing upstream caller to pass lifecycle actions and size info to a ProxySurface instance.


Method Summary
 void create(ProxySurface s)
          called within ProxySurface.createNotify() within lock, before using surface.
 void destroy(ProxySurface s)
          called within ProxySurface.destroyNotify() within lock, before clearing fields.
 int getHeight(ProxySurface s)
          Returns the height of the upstream surface
 int getWidth(ProxySurface s)
          Returns the width of the upstream surface
 

Method Detail

create

void create(ProxySurface s)
called within ProxySurface.createNotify() within lock, before using surface.


destroy

void destroy(ProxySurface s)
called within ProxySurface.destroyNotify() within lock, before clearing fields.


getWidth

int getWidth(ProxySurface s)
Returns the width of the upstream surface


getHeight

int getHeight(ProxySurface s)
Returns the height of the upstream surface



Copyright 2010 JogAmp Community.