org.ogre4j
Class Box

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Box
All Implemented Interfaces:
IBox, INativeObject

public class Box
extends NativeObject
implements IBox


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Box()
           
  Box(InstancePointer p)
          This constructor is public for internal useage only!
protected Box(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Box(int l, int t, int r, int b)
          Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and back=1).
  Box(int l, int t, int ff, int r, int b, int bb)
          Define a box from left, top, front, right, bottom and back coordinates.
  Box(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 boolean contains(IBox def)
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 int getback()
           
 int getbottom()
           
 int getDepth()
           
 int getfront()
           
 int getHeight()
           
 int getleft()
           
 int getright()
           
 int gettop()
           
 int getWidth()
           
 void setback(int _jni_value_)
           
 void setbottom(int _jni_value_)
           
 void setfront(int _jni_value_)
           
 void setleft(int _jni_value_)
           
 void setright(int _jni_value_)
           
 void settop(int _jni_value_)
           
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

Box

public Box(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


Box

protected Box(InstancePointer p,
              boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


Box

public Box(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Box

public Box()

Box

public Box(int l,
           int t,
           int r,
           int b)
Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and back=1).


Box

public Box(int l,
           int t,
           int ff,
           int r,
           int b,
           int bb)
Define a box from left, top, front, right, bottom and back coordinates.

Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

contains

public boolean contains(IBox def)
Specified by:
contains in interface IBox

getWidth

public int getWidth()
Specified by:
getWidth in interface IBox

getHeight

public int getHeight()
Specified by:
getHeight in interface IBox

getDepth

public int getDepth()
Specified by:
getDepth in interface IBox

getleft

public int getleft()
Specified by:
getleft in interface IBox

setleft

public void setleft(int _jni_value_)
Specified by:
setleft in interface IBox

gettop

public int gettop()
Specified by:
gettop in interface IBox

settop

public void settop(int _jni_value_)
Specified by:
settop in interface IBox

getright

public int getright()
Specified by:
getright in interface IBox

setright

public void setright(int _jni_value_)
Specified by:
setright in interface IBox

getbottom

public int getbottom()
Specified by:
getbottom in interface IBox

setbottom

public void setbottom(int _jni_value_)
Specified by:
setbottom in interface IBox

getfront

public int getfront()
Specified by:
getfront in interface IBox

setfront

public void setfront(int _jni_value_)
Specified by:
setfront in interface IBox

getback

public int getback()
Specified by:
getback in interface IBox

setback

public void setback(int _jni_value_)
Specified by:
setback in interface IBox


Copyright © 2007 netAllied GmbH. All Rights Reserved.