|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResource
| Nested Class Summary | |
|---|---|
static interface |
IResource.IListener
|
static interface |
IResource.IListenerList
|
| Method Summary | |
|---|---|
void |
_dirtyState()
Manually mark the state of this resource as having been changed. |
void |
_fireBackgroundLoadingComplete()
Firing of background loading complete event |
void |
_fireBackgroundPreparingComplete()
Firing of background preparing complete event |
void |
_notifyOrigin(java.lang.String origin)
|
void |
addListener(IResource.IListener lis)
Register a listener on this resource. |
void |
changeGroupOwnership(java.lang.String newGroup)
Change the resource group ownership of a . |
void |
escalateLoading()
Escalates the loading of a background loaded resource. |
IResourceManager |
getCreator()
|
java.lang.String |
getGroup()
|
long |
getHandle()
|
Resource.LoadingState |
getLoadingState()
Returns the current loading state. |
java.lang.String |
getName()
Gets resource name. |
java.lang.String |
getOrigin()
Get the origin of this resource, e.g. a script file name. |
int |
getSize()
Retrieves info about the size of the resource. |
int |
getStateCount()
Returns the number of times this resource has changed state, which generally means the number of times it has been loaded. |
boolean |
isBackgroundLoaded()
Returns whether this has been earmarked for background loading. |
boolean |
isLoaded()
Returns true if the has been loaded, false otherwise. |
boolean |
isLoading()
Returns whether the resource is currently in the process of background loading. |
boolean |
isManuallyLoaded()
Is this resource manually loaded? |
boolean |
isPrepared()
Returns true if the has been prepared, false otherwise. |
boolean |
isReloadable()
Returns true if the is reloadable, false otherwise. |
void |
load(boolean backgroundThread)
Loads the resource, if it is not already. |
void |
prepare()
Prepares the resource for load, if it is not already. |
void |
reload()
Reloads the resource, if it is already loaded. |
void |
removeListener(IResource.IListener lis)
Remove a listener on this resource. |
void |
setBackgroundLoaded(boolean bl)
Tells the resource whether it is background loaded or not. |
void |
touch()
'Touches' the resource to indicate it has been used. |
void |
unload()
Unloads the resource; this is not permanent, the resource can be reloaded later if required. |
| Methods inherited from interface org.ogre4j.IStringInterface |
|---|
copyParametersTo, getParamDictionary_const, getParamDictionary, getParameter, getParameters, setParameter, setParameterList |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
void prepare()
void load(boolean backgroundThread)
void reload()
boolean isReloadable()
boolean isManuallyLoaded()
void unload()
int getSize()
void touch()
java.lang.String getName()
long getHandle()
boolean isPrepared()
boolean isLoaded()
boolean isLoading()
Resource.LoadingState getLoadingState()
boolean isBackgroundLoaded()
void setBackgroundLoaded(boolean bl)
void escalateLoading()
void addListener(IResource.IListener lis)
void removeListener(IResource.IListener lis)
java.lang.String getGroup()
void changeGroupOwnership(java.lang.String newGroup)
IResourceManager getCreator()
java.lang.String getOrigin()
void _notifyOrigin(java.lang.String origin)
int getStateCount()
void _dirtyState()
void _fireBackgroundLoadingComplete()
void _fireBackgroundPreparingComplete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||