crystalspace.jbind.impl.engine.light
Class csLightCallback

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.light.csLightCallback
All Implemented Interfaces:
iBase, iJPointer, iLightCallback, iPointer

public class csLightCallback
extends csBase
implements iLightCallback

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csLightCallback(iPointer nPointer)
           
 
Method Summary
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 void onColorChange(iLight light, csColor newcolor)
          Light color will be changed.
 void onDestroy(iLight light)
          Light will be destroyed.
 void onPositionChange(iLight light, csVector3 newpos)
          Light position will be changed.
 void onRadiusChange(iLight light, float newradius)
          Radius will be changed.
 void onSectorChange(iLight light, iSector newsector)
          Sector will be changed.
 
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.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csLightCallback

public csLightCallback(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase
See Also:
iBase.getVersion()

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

onColorChange

public void onColorChange(iLight light,
                          csColor newcolor)
Description copied from interface: iLightCallback
Light color will be changed.

Specified by:
onColorChange in interface iLightCallback
Parameters:
light -
newcolor -
See Also:
iLightCallback.onColorChange(crystalspace.jbind.interfaces.iengine.light.iLight, crystalspace.jbind.impl.csutil.cscolor.csColor)

onPositionChange

public void onPositionChange(iLight light,
                             csVector3 newpos)
Description copied from interface: iLightCallback
Light position will be changed.

Specified by:
onPositionChange in interface iLightCallback
Parameters:
light -
newpos -
See Also:
iLightCallback.onPositionChange(crystalspace.jbind.interfaces.iengine.light.iLight, crystalspace.jbind.impl.csgeom.vector3.csVector3)

onSectorChange

public void onSectorChange(iLight light,
                           iSector newsector)
Description copied from interface: iLightCallback
Sector will be changed.

Specified by:
onSectorChange in interface iLightCallback
Parameters:
light -
newsector -
See Also:
iLightCallback.onSectorChange(crystalspace.jbind.interfaces.iengine.light.iLight, crystalspace.jbind.interfaces.iengine.sector.iSector)

onRadiusChange

public void onRadiusChange(iLight light,
                           float newradius)
Description copied from interface: iLightCallback
Radius will be changed.

Specified by:
onRadiusChange in interface iLightCallback
Parameters:
light -
newradius -
See Also:
iLightCallback.onRadiusChange(crystalspace.jbind.interfaces.iengine.light.iLight, float)

onDestroy

public void onDestroy(iLight light)
Description copied from interface: iLightCallback
Light will be destroyed.

Specified by:
onDestroy in interface iLightCallback
Parameters:
light -
See Also:
iLightCallback.onDestroy(crystalspace.jbind.interfaces.iengine.light.iLight)