|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ResourceManager
public class ResourceManager
| Nested Class Summary | |
|---|---|
static class |
ResourceManager.ResourceCreateOrRetrieveResult
|
static class |
ResourceManager.ResourceHandleMap
|
static class |
ResourceManager.ResourceMap
|
static class |
ResourceManager.ResourceMapIterator
|
| Nested classes/interfaces inherited from interface org.ogre4j.IResourceManager |
|---|
IResourceManager.IResourceCreateOrRetrieveResult, IResourceManager.IResourceHandleMap, IResourceManager.IResourceMap, IResourceManager.IResourceMapIterator |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ResourceManager(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ResourceManager(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ResourceManager(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_notifyResourceLoaded(IResource res)
Notify this manager that a resource which it manages has been loaded. |
void |
_notifyResourceTouched(IResource res)
Notify this manager that a resource which it manages has been 'touched', i.e. used. |
void |
_notifyResourceUnloaded(IResource res)
Notify this manager that a resource which it manages has been unloaded. |
void |
create(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
Creates a new blank resource, but does not immediately load it. |
void |
createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
Create a new resource, or retrieve an existing one with the same name if it already exists. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
void |
getByHandle(IResourcePtr returnValue,
long handle)
Retrieves a pointer to a resource by handle, or null if the resource does not exist. |
void |
getByName(IResourcePtr returnValue,
java.lang.String name)
Retrieves a pointer to a resource by name, or null if the resource does not exist. |
float |
getLoadingOrder()
Gets the relative loading order of resources of this type. |
int |
getMemoryBudget()
Get the limit on the amount of memory this resource handler may use. |
int |
getMemoryUsage()
Gets the current memory usage, in bytes. |
void |
getResourceIterator(IResourceManager.IResourceMapIterator returnValue)
Returns an iterator over all resources in this manager. |
java.lang.String |
getResourceType()
Gets a string identifying the type of resource this manager handles. |
IStringVector |
getScriptPatterns()
Gets the file patterns which should be used to find scripts for this . |
boolean |
getVerbose()
Gets whether this manager and its resources habitually produce log output |
void |
load(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
Generic load method, used to create a specific to this without using one of the specialised 'load' methods (containing per-Resource-type parameters). |
void |
parseScript(IDataStreamPtr stream,
java.lang.String groupName)
Parse the definition of a set of resources from a script file. |
void |
prepare(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
Generic prepare method, used to create a specific to this without using one of the specialised 'prepare' methods (containing per-Resource-type parameters). |
void |
reloadAll(boolean reloadableOnly)
Caused all currently loaded resources to be reloaded. |
void |
reloadUnreferencedResources(boolean reloadableOnly)
Caused all currently loaded but not referenced by any other object resources to be reloaded. |
void |
remove(IResourcePtr r)
Remove a single resource. |
void |
remove(long handle)
Remove a single resource by handle. |
void |
remove(java.lang.String name)
Remove a single resource by name. |
void |
removeAll()
Removes all resources. |
boolean |
resourceExists(long handle)
|
boolean |
resourceExists(java.lang.String name)
|
void |
setMemoryBudget(int bytes)
Set a limit on the amount of memory this resource handler may use. |
void |
setVerbose(boolean v)
Sets whether this manager and its resources habitually produce log output |
void |
unload(long handle)
Unloads a single resource by handle. |
void |
unload(java.lang.String name)
Unloads a single resource by name. |
void |
unloadAll(boolean reloadableOnly)
Unloads all resources. |
void |
unloadUnreferencedResources(boolean reloadableOnly)
Unload all resources which are not referenced by any other object. |
| 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 ResourceManager(InstancePointer p)
protected ResourceManager(InstancePointer p,
boolean remote)
public ResourceManager(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| 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 NativeObject
public void create(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
create in interface IResourceManager
public void createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
createOrRetrieve in interface IResourceManagerpublic void setMemoryBudget(int bytes)
setMemoryBudget in interface IResourceManagerpublic int getMemoryBudget()
getMemoryBudget in interface IResourceManagerpublic int getMemoryUsage()
getMemoryUsage in interface IResourceManagerpublic void unload(java.lang.String name)
unload in interface IResourceManagerpublic void unload(long handle)
unload in interface IResourceManagerpublic void unloadAll(boolean reloadableOnly)
unloadAll in interface IResourceManagerpublic void reloadAll(boolean reloadableOnly)
reloadAll in interface IResourceManagerpublic void unloadUnreferencedResources(boolean reloadableOnly)
unloadUnreferencedResources in interface IResourceManagerpublic void reloadUnreferencedResources(boolean reloadableOnly)
reloadUnreferencedResources in interface IResourceManagerpublic void remove(IResourcePtr r)
remove in interface IResourceManagerpublic void remove(java.lang.String name)
remove in interface IResourceManagerpublic void remove(long handle)
remove in interface IResourceManagerpublic void removeAll()
removeAll in interface IResourceManager
public void getByName(IResourcePtr returnValue,
java.lang.String name)
getByName in interface IResourceManager
public void getByHandle(IResourcePtr returnValue,
long handle)
getByHandle in interface IResourceManagerpublic boolean resourceExists(java.lang.String name)
resourceExists in interface IResourceManagerpublic boolean resourceExists(long handle)
resourceExists in interface IResourceManagerpublic void _notifyResourceTouched(IResource res)
_notifyResourceTouched in interface IResourceManagerpublic void _notifyResourceLoaded(IResource res)
_notifyResourceLoaded in interface IResourceManagerpublic void _notifyResourceUnloaded(IResource res)
_notifyResourceUnloaded in interface IResourceManager
public void prepare(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
prepare in interface IResourceManager
public void load(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
load in interface IResourceManagerpublic IStringVector getScriptPatterns()
getScriptPatterns in interface IResourceManagergetScriptPatterns in interface IScriptLoader
public void parseScript(IDataStreamPtr stream,
java.lang.String groupName)
parseScript in interface IResourceManagerparseScript in interface IScriptLoaderpublic float getLoadingOrder()
getLoadingOrder in interface IResourceManagergetLoadingOrder in interface IScriptLoaderpublic java.lang.String getResourceType()
getResourceType in interface IResourceManagerpublic void setVerbose(boolean v)
setVerbose in interface IResourceManagerpublic boolean getVerbose()
getVerbose in interface IResourceManagerpublic void getResourceIterator(IResourceManager.IResourceMapIterator returnValue)
getResourceIterator in interface IResourceManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||