Package com.jogamp.nativewindow
Class DelegatedUpstreamSurfaceHookMutableSize
- java.lang.Object
-
- com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
-
- com.jogamp.nativewindow.DelegatedUpstreamSurfaceHookMutableSize
-
- All Implemented Interfaces:
UpstreamSurfaceHook
,UpstreamSurfaceHook.MutableSize
public class DelegatedUpstreamSurfaceHookMutableSize extends UpstreamSurfaceHookMutableSize
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.UpstreamSurfaceHook
UpstreamSurfaceHook.MutableSize
-
-
Constructor Summary
Constructors Constructor Description DelegatedUpstreamSurfaceHookMutableSize(UpstreamSurfaceHook upstream, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(ProxySurface s)
called withinProxySurface.createNotify()
within lock, before using surface.void
destroy(ProxySurface s)
called withinProxySurface.destroyNotify()
within lock, before clearing fields.String
toString()
-
Methods inherited from class com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
getSurfaceHeight, getSurfaceWidth, getUpstreamSurface, setSurfaceSize
-
-
-
-
Constructor Detail
-
DelegatedUpstreamSurfaceHookMutableSize
public DelegatedUpstreamSurfaceHookMutableSize(UpstreamSurfaceHook upstream, int width, int height)
- Parameters:
upstream
- optional upstream UpstreamSurfaceHook used forcreate(ProxySurface)
anddestroy(ProxySurface)
.width
- initial widthheight
- initial height
-
-
Method Detail
-
create
public final void create(ProxySurface s)
Description copied from interface:UpstreamSurfaceHook
called withinProxySurface.createNotify()
within lock, before using surface.- Specified by:
create
in interfaceUpstreamSurfaceHook
- Overrides:
create
in classUpstreamSurfaceHookMutableSize
-
destroy
public final void destroy(ProxySurface s)
Description copied from interface:UpstreamSurfaceHook
called withinProxySurface.destroyNotify()
within lock, before clearing fields.- Specified by:
destroy
in interfaceUpstreamSurfaceHook
- Overrides:
destroy
in classUpstreamSurfaceHookMutableSize
-
toString
public String toString()
- Overrides:
toString
in classUpstreamSurfaceHookMutableSize
-
-