<class name="QColormap" doc="/** <p>The <a href="QColormap.html#QColormap(com.trolltech.qt.gui.QColormap)"><tt>QColormap</tt></a> class maps device independent QColors to device dependent pixel values.</p> */"> <method name="public QColormap(com.trolltech.qt.gui.QColormap colormap)" doc="/** <p>Constructs a copy of another <tt>colormap</tt>.</p> */"/> <method name="public final com.trolltech.qt.gui.QColor colorAt(int pixel)" doc="/** <p>Returns a <a href="QColor.html"><tt>QColor</tt></a> for the <tt>pixel</tt>.</p> @see <a href="QColormap.html#pixel(com.trolltech.qt.gui.QColor)"><tt>pixel</tt></a> */"/> <method name="public final java.util.List<com.trolltech.qt.gui.QColor> colormap()" doc="/** <p>Returns a vector of colors which represents the devices colormap for <tt>Indexed</tt> and <tt>Gray</tt> modes. This function returns an empty vector for <tt>Direct</tt> mode.</p> @see <a href="QColormap.html#size()"><tt>size</tt></a> */"/> <method name="public final int depth()" doc="/** <p>Returns the depth of the device.</p> @see <a href="QColormap.html#size()"><tt>size</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QColormap.Mode mode()" doc="/** <p>Returns the mode of this colormap.</p> @see <tt>QColormap::Mode</tt> */"/> <method name="public final int pixel(com.trolltech.qt.gui.QColor color)" doc="/** <p>Returns a device dependent pixel value for the <tt>color</tt>.</p> @see <a href="QColormap.html#colorAt(int)"><tt>colorAt</tt></a> */"/> <method name="public final int size()" doc="/** <p>Returns the size of the colormap for <tt>Indexed</tt> and <tt>Gray</tt> modes; Returns -1 for <tt>Direct</tt> mode.</p> @see <a href="QColormap.html#colormap()"><tt>colormap</tt></a> */"/> <method name="public native static void cleanup()" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public native static void initialize()" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public native static com.trolltech.qt.gui.QColormap instance(int screen)" doc="/** <p>Returns the colormap for the specified <tt>screen</tt>. If <tt>screen</tt> is -1, this function returns the colormap for the default screen.</p> */"/> <method name="public static com.trolltech.qt.gui.QColormap instance()" doc="/** <p>Equivalent to <a href="QColormap.html#instance(int)">instance</tt></a>(-1). */"/> <enum name="Mode" doc="/** <p>This enum describes how <a href="QColormap.html#QColormap(com.trolltech.qt.gui.QColormap)"><tt>QColormap</tt></a> maps device independent RGB values to device dependent pixel values.</p> */"> <enum-value name="Direct" doc="/** <p>Pixel values are derived directly from the RGB values, also known as &quot;True Color.&quot;</p> */"/> <enum-value name="Indexed" doc="/** <p>Pixel values represent indexes into a vector of available colors, i.e&#x2e; <a href="QColormap.html#QColormap(com.trolltech.qt.gui.QColormap)"><tt>QColormap</tt></a> uses the index of the color that most closely matches an RGB value.</p> */"/> <enum-value name="Gray" doc="/** <p>Similar to <tt>Indexed</tt>, pixel values represent a vector of available gray tones. <a href="QColormap.html#QColormap(com.trolltech.qt.gui.QColormap)"><tt>QColormap</tt></a> uses the index of the gray tone that most closely matches the computed gray tone of an RGB value.</p> */"/> </enum> </class>