APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.awt.image

public abstract Class VSyncedBSManager

extends Object
Class Inheritance
Known Direct Subclasses
sun.awt.image.VSyncedBSManager.NoLimitVSyncBSMgr, sun.awt.image.VSyncedBSManager.SingleVSyncedBSMgr
Imports
java.awt.image.BufferStrategy, java.lang.ref.WeakReference

Manages v-synced buffer strategies.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
VSyncedBSManager.NoLimitVSyncBSMgr

An instance of the manager which allows any buffer strategy to be v-synced.

private static class
VSyncedBSManager.SingleVSyncedBSMgr

An instance of the manager which allows only one buffer strategy to be v-synced at any give moment in the vm.

Field Summary

Modifier and TypeField and Description
private static VSyncedBSManager
private static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract boolean
private static VSyncedBSManager
getInstance(boolean create)

public static synchronized void
releaseVsync(BufferStrategy bs)

Lets the manager know that this buffer strategy is no longer interested in being v-synced.

pack-priv abstract void
public static boolean

Returns:

true if the bs is allowed to be v-synced, false otherwise
vsyncAllowed
(BufferStrategy bs)

Returns true if the buffer strategy is allowed to be created v-synced.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theInstanceback to summary
private static VSyncedBSManager theInstance
vSyncLimitback to summary
private static final boolean vSyncLimit

Constructor Detail

VSyncedBSManagerback to summary
public VSyncedBSManager()

Method Detail

checkAllowedback to summary
pack-priv abstract boolean checkAllowed(BufferStrategy bs)
getInstanceback to summary
private static VSyncedBSManager getInstance(boolean create)
releaseVsyncback to summary
public static synchronized void releaseVsync(BufferStrategy bs)

Lets the manager know that this buffer strategy is no longer interested in being v-synced.

relinquishVsyncback to summary
pack-priv abstract void relinquishVsync(BufferStrategy bs)
vsyncAllowedback to summary
public static boolean vsyncAllowed(BufferStrategy bs)

Returns true if the buffer strategy is allowed to be created v-synced.

Returns:boolean

true if the bs is allowed to be v-synced, false otherwise

sun.awt.image back to summary

private final Class VSyncedBSManager.NoLimitVSyncBSMgr

extends VSyncedBSManager
Class Inheritance

An instance of the manager which allows any buffer strategy to be v-synced.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
pack-priv void
Inherited from sun.awt.image.VSyncedBSManager:
releaseVsyncvsyncAllowed

Constructor Detail

NoLimitVSyncBSMgrback to summary
private NoLimitVSyncBSMgr()

Method Detail

checkAllowedback to summary
pack-priv boolean checkAllowed(BufferStrategy bs)

Implements abstract sun.awt.image.VSyncedBSManager.checkAllowed.

Annotations
@Override
relinquishVsyncback to summary
pack-priv void relinquishVsync(BufferStrategy bs)

Implements abstract sun.awt.image.VSyncedBSManager.relinquishVsync.

Annotations
@Override
sun.awt.image back to summary

private final Class VSyncedBSManager.SingleVSyncedBSMgr

extends VSyncedBSManager
Class Inheritance

An instance of the manager which allows only one buffer strategy to be v-synced at any give moment in the vm.

Field Summary

Modifier and TypeField and Description
private WeakReference<BufferStrategy>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public synchronized boolean
public synchronized void
Inherited from sun.awt.image.VSyncedBSManager:
releaseVsyncvsyncAllowed

Field Detail

strategyback to summary
private WeakReference<BufferStrategy> strategy

Constructor Detail

SingleVSyncedBSMgrback to summary
private SingleVSyncedBSMgr()

Method Detail

checkAllowedback to summary
public synchronized boolean checkAllowed(BufferStrategy bs)

Implements abstract sun.awt.image.VSyncedBSManager.checkAllowed.

Annotations
@Override
relinquishVsyncback to summary
public synchronized void relinquishVsync(BufferStrategy bs)

Implements abstract sun.awt.image.VSyncedBSManager.relinquishVsync.

Annotations
@Override