00001
00009 #ifndef QCOLORADAPTER_H
00010 #define QCOLORADAPTER_H
00011
00012 #include "JavaQxCore.h"
00013
00014 #include <QColor>
00015
00016
00017
00018
00019
00026 class JAVAQX_EXPORT QColorAdapter : public QColor
00027 {
00028 public:
00029 QColorAdapter(jobject color);
00030 QColorAdapter(jint argb);
00031 public:
00032 static void initialize(JNIEnv *env, jclass cls);
00033 static jobject toJColor(JNIEnv *env, jclass colorClass, const QColor &color);
00034 static jobject toJColor(const QColor &color);
00035 private:
00036 static jclass sm_colorClass;
00037 static jmethodID sm_constructorMID;
00038 static jmethodID sm_getARGBMID;
00039 };
00040
00041 #endif //QCOLORADAPTER_H
00042
00043
00044
00045
00046
00047
00048
00049