QColorAdapter Class Reference

QColor Adapter. More...

#include <QColorAdapter.h>

List of all members.

Public Member Functions

 QColorAdapter (jobject color)
 Constructs new QColorAdapter object.
 QColorAdapter (jint argb)
 Constructs new QColorAdapter object.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass cls)
 Initializes QColorAdapter class.
static jobject toJColor (JNIEnv *env, jclass colorClass, const QColor &color)
 Creates new QSwing color instance.
static jobject toJColor (const QColor &color)
 Creates new QSwing color instance.


Detailed Description

QColor Adapter.

@(#)QColorAdapter.h 0.2.0 / 2007-08-28

Copyright (c) 2007, ETF and contributors. All rights reserved.

This software is licensed under the LGPL, version 2.1, license. A copy of the license is included in the file LICENSE-LGPL.txt.

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

Constructor & Destructor Documentation

QColorAdapter::QColorAdapter ( jobject  color  ) 

Constructs new QColorAdapter object.

Parameters:
color the QSwing color

QColorAdapter::QColorAdapter ( jint  argb  ) 

Constructs new QColorAdapter object.

Parameters:
argb the argb value of the color


Member Function Documentation

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

Initializes QColorAdapter class.

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

jobject QColorAdapter::toJColor ( JNIEnv *  env,
jclass  colorClass,
const QColor &  color 
) [static]

Creates new QSwing color instance.

Parameters:
env the JNIEnv pointer
colorClass the QSwing color class
color the QColor reference
Returns:
new QSwing color instance
Exceptions:
OutOfMemoryError java exception

jobject QColorAdapter::toJColor ( const QColor &  color  )  [static]

Creates new QSwing color instance.

Parameters:
color the QColor reference
Returns:
new QSwing color instance
Exceptions:
OutOfMemoryError java exception


Copyright © 2007 ETF and contributors. All Rights Reserved.