|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QColormap
public class QColormap
The QColormap class maps device independent QColors to device dependent pixel values.
Nested Class Summary | |
---|---|
static class |
QColormap.Mode
This enum describes how QColormap maps device independent RGB values to device dependent pixel values. |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Constructor Summary | |
---|---|
QColormap(QColormap colormap)
Constructs a copy of another colormap. |
Method Summary | |
---|---|
static void |
cleanup()
|
QColor |
colorAt(int pixel)
Returns a QColor for the pixel. |
java.util.List<QColor> |
colormap()
Returns a vector of colors which represents the devices colormap for Indexed and Gray modes. |
int |
depth()
Returns the depth of the device. |
static QColormap |
fromNativePointer(QNativePointer nativePointer)
This function returns the QColormap instance pointed to by nativePointer |
static void |
initialize()
|
static QColormap |
instance()
Equivalent to instance(-1). |
static QColormap |
instance(int screen)
Returns the colormap for the specified screen. |
QColormap.Mode |
mode()
Returns the mode of this colormap. |
static QNativePointer |
nativePointerArray(QColormap[] array)
This function returns a QNativePointer that is pointing to the specified QColormap array. |
int |
pixel(QColor color)
Returns a device dependent pixel value for the color. |
int |
size()
Returns the size of the colormap for Indexed and Gray modes; Returns -1 for Direct mode. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QColormap(QColormap colormap)
Constructs a copy of another colormap.
Method Detail |
---|
public final QColor colorAt(int pixel)
Returns a QColor for the pixel.
public final java.util.List<QColor> colormap()
Returns a vector of colors which represents the devices colormap for Indexed and Gray modes. This function returns an empty vector for Direct mode.
public final int depth()
Returns the depth of the device.
public final QColormap.Mode mode()
Returns the mode of this colormap.
public final int pixel(QColor color)
Returns a device dependent pixel value for the color.
public final int size()
Returns the size of the colormap for Indexed and Gray modes; Returns -1 for Direct mode.
public static void cleanup()
public static void initialize()
public static QColormap instance()
Equivalent to instance(-1).
public static QColormap instance(int screen)
Returns the colormap for the specified screen. If screen is -1, this function returns the colormap for the default screen.
public static QColormap fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.public static QNativePointer nativePointerArray(QColormap[] array)
array
- the array that the returned pointer will point to.
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |