|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.engine.sharevar.csSharedVariable
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Fields inherited from interface crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariable |
SV_COLOR, SV_FLOAT, SV_UNKNOWN, SV_VECTOR |
Constructor Summary | |
csSharedVariable(iPointer nPointer)
|
Method Summary | |
void |
addListener(iSharedVariableListener listener)
Add a listener to variables. |
float |
get()
Get the floating point version of the var value. |
csColor |
getColor()
Get the csColor from the variable. |
java.lang.String |
getName()
Get the name of this variable. |
int |
getType()
Get the type currently stored by this variable. |
csVector3 |
getVector()
Get the vector from the variable. |
int |
getVersion()
Return the version of the interface |
protected boolean |
isNativePointerValidSafe(long pointer)
|
iObject |
queryObject()
Get the private object interface. |
void |
removeListener(iSharedVariableListener listener)
Remove a listener. |
void |
set(float val)
Set the variable to a floating pt value. |
void |
setColor(csColor col)
Set the variable to store a csColor. |
void |
setName(java.lang.String name)
iSharedVariables are referenced by name. |
void |
setVector(csVector3 v)
Set the variable to store a csVector3. |
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Constructor Detail |
public csSharedVariable(iPointer nPointer)
nPointer
- Method Detail |
public int getVersion()
iBase
getVersion
in interface iBase
getVersion
in class csBase
iBase.getVersion()
public java.lang.String getName()
iSharedVariable
getName
in interface iSharedVariable
getName
in class csBase
iBase.getName()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
csNativeObject.isNativePointerValidSafe(long)
public void addListener(iSharedVariableListener listener)
iSharedVariable
addListener
in interface iSharedVariable
listener
- iSharedVariable.addListener(crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariableListener)
public float get()
iSharedVariable
get
in interface iSharedVariable
iSharedVariable.get()
public csColor getColor()
iSharedVariable
getColor
in interface iSharedVariable
iSharedVariable.getColor()
public int getType()
iSharedVariable
getType
in interface iSharedVariable
iSharedVariable.getType()
public csVector3 getVector()
iSharedVariable
getVector
in interface iSharedVariable
iSharedVariable.getVector()
public iObject queryObject()
iSharedVariable
queryObject
in interface iSharedVariable
iSharedVariable.queryObject()
public void removeListener(iSharedVariableListener listener)
iSharedVariable
removeListener
in interface iSharedVariable
listener
- iSharedVariable.removeListener(crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariableListener)
public void set(float val)
iSharedVariable
set
in interface iSharedVariable
val
- iSharedVariable.set(float)
public void setColor(csColor col)
iSharedVariable
setColor
in interface iSharedVariable
col
- iSharedVariable.setColor(crystalspace.jbind.impl.csutil.cscolor.csColor)
public void setName(java.lang.String name)
iSharedVariable
setName
in interface iSharedVariable
name
- iSharedVariable.setName(java.lang.String)
public void setVector(csVector3 v)
iSharedVariable
setVector
in interface iSharedVariable
v
- iSharedVariable.setVector(crystalspace.jbind.impl.csgeom.vector3.csVector3)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |