crystalspace.jbind.impl.engine.region
Class csRegionList

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.region.csRegionList
All Implemented Interfaces:
iBase, iPointer, iRegionList

public class csRegionList
extends csBase
implements iRegionList

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csRegionList(iPointer nPointer)
           
 
Method Summary
 int add(iRegion obj)
          Add a region.
 int find(iRegion obj)
          Find a region and return its index.
 iRegion findByName(java.lang.String Name)
          Find a region by name.
 iRegion get(int n)
          Return a region by index.
 int getCount()
          Return the number of regions in this list.
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 boolean remove(int n)
          Remove the nth region.
 boolean remove(iRegion obj)
          Remove a region.
 void removeAll()
          Remove all regions.
 
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

csRegionList

public csRegionList(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)

add

public int add(iRegion obj)
Description copied from interface: iRegionList
Add a region.

Specified by:
add in interface iRegionList
Parameters:
obj -
Returns:
See Also:
iRegionList.add(crystalspace.jbind.interfaces.iengine.region.iRegion)

find

public int find(iRegion obj)
Description copied from interface: iRegionList
Find a region and return its index.

Specified by:
find in interface iRegionList
Parameters:
obj -
Returns:
See Also:
iRegionList.find(crystalspace.jbind.interfaces.iengine.region.iRegion)

findByName

public iRegion findByName(java.lang.String Name)
Description copied from interface: iRegionList
Find a region by name.

Specified by:
findByName in interface iRegionList
Parameters:
Name -
Returns:
See Also:
iRegionList.findByName(java.lang.String)

get

public iRegion get(int n)
Description copied from interface: iRegionList
Return a region by index.

Specified by:
get in interface iRegionList
Parameters:
n -
Returns:
See Also:
iRegionList.get(int)

getCount

public int getCount()
Description copied from interface: iRegionList
Return the number of regions in this list.

Specified by:
getCount in interface iRegionList
Returns:
See Also:
iRegionList.getCount()

remove

public boolean remove(int n)
Description copied from interface: iRegionList
Remove the nth region.

Specified by:
remove in interface iRegionList
Parameters:
n -
Returns:
See Also:
iRegionList.remove(int)

remove

public boolean remove(iRegion obj)
Description copied from interface: iRegionList
Remove a region.

Specified by:
remove in interface iRegionList
Parameters:
obj -
Returns:
See Also:
iRegionList.remove(crystalspace.jbind.interfaces.iengine.region.iRegion)

removeAll

public void removeAll()
Description copied from interface: iRegionList
Remove all regions.

Specified by:
removeAll in interface iRegionList
See Also:
iRegionList.removeAll()