RectangleObject Class Reference

Rectangle Object. More...

#include <RectangleObject.h>

Inheritance diagram for RectangleObject:

GlobalJObject

List of all members.

Public Member Functions

 RectangleObject (JNIEnv *env, jobject obj)
 Constructs new RectangleObject object.
bool getX (jint &result)
 Returns x coordinate of the rectangle.
bool getX (JNIEnv *env, jint &result)
 Returns x coordinate of the rectangle.
bool getY (jint &result)
 Returns y coordinate of the rectangle.
bool getY (JNIEnv *env, jint &result)
 Returns y coordinate of the rectangle.
bool getWidth (jint &result)
 Returns width of the rectangle.
bool getWidth (JNIEnv *env, jint &result)
 Returns width of the rectangle.
bool getHeight (jint &result)
 Returns height of the rectangle.
bool getHeight (JNIEnv *env, jint &result)
 Returns height of the rectangle.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass cls)
 Initializes RectangleObject class.
static jobject newObject (jint x, jint y, jint width, jint height)
 Creates new QSwing rectangle object.


Detailed Description

Rectangle Object.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Constructor & Destructor Documentation

RectangleObject::RectangleObject ( JNIEnv *  env,
jobject  obj 
)

Constructs new RectangleObject object.

Parameters:
env the JNIEnv pointer
obj the QSwing Rectangle object


Member Function Documentation

bool RectangleObject::getX ( jint &  result  ) 

Returns x coordinate of the rectangle.

Parameters:
result the result
Returns:
true if no exception is thrown

bool RectangleObject::getX ( JNIEnv *  env,
jint &  result 
)

Returns x coordinate of the rectangle.

Parameters:
env the JNIEnv pointer
result the result
Returns:
true if no exception is thrown

bool RectangleObject::getY ( jint &  result  ) 

Returns y coordinate of the rectangle.

Parameters:
result the result
Returns:
true if no exception is thrown

bool RectangleObject::getY ( JNIEnv *  env,
jint &  result 
)

Returns y coordinate of the rectangle.

Parameters:
env the JNIEnv pointer
result the result
Returns:
true if no exception is thrown

bool RectangleObject::getWidth ( jint &  result  ) 

Returns width of the rectangle.

Parameters:
result the result
Returns:
true if no exception is thrown

bool RectangleObject::getWidth ( JNIEnv *  env,
jint &  result 
)

Returns width of the rectangle.

Parameters:
env the JNIEnv pointer
result the result
Returns:
true if no exception is thrown

bool RectangleObject::getHeight ( jint &  result  ) 

Returns height of the rectangle.

Parameters:
result the result
Returns:
true if no exception is thrown

bool RectangleObject::getHeight ( JNIEnv *  env,
jint &  result 
)

Returns height of the rectangle.

Parameters:
env the JNIEnv pointer
result the result
Returns:
true if no exception is thrown

void RectangleObject::initialize ( JNIEnv *  env,
jclass  cls 
) [static]

Initializes RectangleObject class.

Parameters:
env the JNIEnv pointer
cls the QSwing Rectangle class
Exceptions:
FatalError if failed

jobject RectangleObject::newObject ( jint  x,
jint  y,
jint  width,
jint  height 
) [static]

Creates new QSwing rectangle object.

Parameters:
x the x coordinate of the rectangle
y the x coordinate of the rectangle
width the width of the rectangle
height the height of the rectangle
Returns:
new instance of the QSwing rectangle class


Copyright © 2007 ETF and contributors. All Rights Reserved.