|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResourceManager
| Nested Class Summary | |
|---|---|
static interface |
IResourceManager.IResourceCreateOrRetrieveResult
|
static interface |
IResourceManager.IResourceHandleMap
|
static interface |
IResourceManager.IResourceMap
|
static interface |
IResourceManager.IResourceMapIterator
|
| 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 |
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 interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
void create(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
void createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
void setMemoryBudget(int bytes)
int getMemoryBudget()
int getMemoryUsage()
void unload(java.lang.String name)
void unload(long handle)
void unloadAll(boolean reloadableOnly)
void reloadAll(boolean reloadableOnly)
void unloadUnreferencedResources(boolean reloadableOnly)
void reloadUnreferencedResources(boolean reloadableOnly)
void remove(IResourcePtr r)
void remove(java.lang.String name)
void remove(long handle)
void removeAll()
void getByName(IResourcePtr returnValue,
java.lang.String name)
void getByHandle(IResourcePtr returnValue,
long handle)
boolean resourceExists(java.lang.String name)
boolean resourceExists(long handle)
void _notifyResourceTouched(IResource res)
void _notifyResourceLoaded(IResource res)
void _notifyResourceUnloaded(IResource res)
void prepare(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
void load(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
IStringVector getScriptPatterns()
getScriptPatterns in interface IScriptLoader
void parseScript(IDataStreamPtr stream,
java.lang.String groupName)
parseScript in interface IScriptLoaderfloat getLoadingOrder()
getLoadingOrder in interface IScriptLoaderjava.lang.String getResourceType()
void setVerbose(boolean v)
boolean getVerbose()
void getResourceIterator(IResourceManager.IResourceMapIterator returnValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||