|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ResourceBackgroundQueue
public class ResourceBackgroundQueue
| Nested Class Summary | |
|---|---|
static class |
ResourceBackgroundQueue.Listener
|
protected static class |
ResourceBackgroundQueue.NotificationQueue
|
protected static class |
ResourceBackgroundQueue.QueuedNotification
|
protected static class |
ResourceBackgroundQueue.Request
|
protected static class |
ResourceBackgroundQueue.RequestQueue
|
protected static class |
ResourceBackgroundQueue.RequestTicketMap
|
protected static class |
ResourceBackgroundQueue.RequestType
|
| Nested classes/interfaces inherited from interface org.ogre4j.IResourceBackgroundQueue |
|---|
IResourceBackgroundQueue.IListener, IResourceBackgroundQueue.INotificationQueue, IResourceBackgroundQueue.IQueuedNotification, IResourceBackgroundQueue.IRequest, IResourceBackgroundQueue.IRequestQueue, IResourceBackgroundQueue.IRequestTicketMap |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ResourceBackgroundQueue()
|
|
ResourceBackgroundQueue(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ResourceBackgroundQueue(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ResourceBackgroundQueue(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
boolean |
_doNextQueuedBackgroundProcess()
Process a single queued background operation. |
void |
_fireOnFrameCallbacks()
Fires all the queued events for background loaded resources. |
void |
_initThread()
Initialise processing for a background thread. |
void |
_queueFireBackgroundLoadingComplete(IResource res)
Queue the firing of the 'background loading complete' event to a event. |
void |
_queueFireBackgroundPreparingComplete(IResource res)
Queue the firing of the 'background preparing complete' event to a event. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
static IResourceBackgroundQueue |
getSingleton()
Override standard retrieval. |
static IResourceBackgroundQueue |
getSingletonPtr()
Override standard retrieval. |
boolean |
getStartBackgroundThread()
Gets whether or not a thread should be created and started to handle the background loading, or whether a user thread will call the appropriate hooks. |
void |
initialise()
Initialise the background queue system. |
long |
initialiseAllResourceGroups(IResourceBackgroundQueue.IListener listener)
Initialise all resource groups which are yet to be initialised in the background. |
long |
initialiseResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
Initialise a resource group in the background. |
boolean |
isProcessComplete(long ticket)
Returns whether a previously queued process has completed or not. |
long |
load(java.lang.String resType,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams,
IResourceBackgroundQueue.IListener listener)
Load a single resource in the background. |
long |
loadResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
Loads a resource group in the background. |
long |
prepare(java.lang.String resType,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams,
IResourceBackgroundQueue.IListener listener)
Prepare a single resource in the background. |
long |
prepareResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
Prepares a resource group in the background. |
void |
setStartBackgroundThread(boolean startThread)
Sets whether or not a thread should be created and started to handle the background loading, or whether a user thread will call the appropriate hooks. |
void |
shutdown()
Shut down the background queue system. |
long |
unload(java.lang.String resType,
long handle,
IResourceBackgroundQueue.IListener listener)
Unload a single resource in the background. |
long |
unload(java.lang.String resType,
java.lang.String name,
IResourceBackgroundQueue.IListener listener)
Unload a single resource in the background. |
long |
unloadResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
Unloads a resource group in the background. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public ResourceBackgroundQueue(InstancePointer p)
protected ResourceBackgroundQueue(InstancePointer p,
boolean remote)
public ResourceBackgroundQueue(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public ResourceBackgroundQueue()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void setStartBackgroundThread(boolean startThread)
setStartBackgroundThread in interface IResourceBackgroundQueuepublic boolean getStartBackgroundThread()
getStartBackgroundThread in interface IResourceBackgroundQueuepublic void initialise()
initialise in interface IResourceBackgroundQueuepublic void shutdown()
shutdown in interface IResourceBackgroundQueue
public long initialiseResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
initialiseResourceGroup in interface IResourceBackgroundQueuepublic long initialiseAllResourceGroups(IResourceBackgroundQueue.IListener listener)
initialiseAllResourceGroups in interface IResourceBackgroundQueue
public long prepareResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
prepareResourceGroup in interface IResourceBackgroundQueue
public long loadResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
loadResourceGroup in interface IResourceBackgroundQueue
public long unload(java.lang.String resType,
java.lang.String name,
IResourceBackgroundQueue.IListener listener)
unload in interface IResourceBackgroundQueue
public long unload(java.lang.String resType,
long handle,
IResourceBackgroundQueue.IListener listener)
unload in interface IResourceBackgroundQueue
public long unloadResourceGroup(java.lang.String name,
IResourceBackgroundQueue.IListener listener)
unloadResourceGroup in interface IResourceBackgroundQueue
public long prepare(java.lang.String resType,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams,
IResourceBackgroundQueue.IListener listener)
prepare in interface IResourceBackgroundQueue
public long load(java.lang.String resType,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams,
IResourceBackgroundQueue.IListener listener)
load in interface IResourceBackgroundQueuepublic boolean isProcessComplete(long ticket)
isProcessComplete in interface IResourceBackgroundQueuepublic boolean _doNextQueuedBackgroundProcess()
_doNextQueuedBackgroundProcess in interface IResourceBackgroundQueuepublic void _initThread()
_initThread in interface IResourceBackgroundQueuepublic void _queueFireBackgroundPreparingComplete(IResource res)
_queueFireBackgroundPreparingComplete in interface IResourceBackgroundQueuepublic void _queueFireBackgroundLoadingComplete(IResource res)
_queueFireBackgroundLoadingComplete in interface IResourceBackgroundQueuepublic void _fireOnFrameCallbacks()
_fireOnFrameCallbacks in interface IResourceBackgroundQueuepublic static IResourceBackgroundQueue getSingleton()
public static IResourceBackgroundQueue getSingletonPtr()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||