DimensionObject Class Reference

Dimension Object. More...

#include <DimensionObject.h>

Inheritance diagram for DimensionObject:

GlobalJObject

List of all members.

Public Member Functions

 DimensionObject (JNIEnv *env, jobject obj)
 Constructs new DimensionObject object.
bool getWidth (jint &result)
 Returns width.
bool getWidth (JNIEnv *env, jint &result)
 Returns width.
bool getHeight (jint &result)
 Returns height.
bool getHeight (JNIEnv *env, jint &result)
 Returns height.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass cls)
 Initializes DimensionObject class.
static jobject newObject (jint width, jint height)
 Creates new QSwing dimension object.


Detailed Description

Dimension Object.

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

Constructor & Destructor Documentation

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

Constructs new DimensionObject object.

Parameters:
env the JNIEnv pointer
obj the QSwing Dimension object


Member Function Documentation

bool DimensionObject::getWidth ( jint &  result  ) 

Returns width.

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

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

Returns width.

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

bool DimensionObject::getHeight ( jint &  result  ) 

Returns height.

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

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

Returns height.

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

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

Initializes DimensionObject class.

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

jobject DimensionObject::newObject ( jint  width,
jint  height 
) [static]

Creates new QSwing dimension object.

Parameters:
width the width
height the height
Returns:
new instance of the QSwing dimension class


Copyright © 2007 ETF and contributors. All Rights Reserved.