Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gdk.Colormap
public class Colormap
extends GObject
Constructor Summary | |
| |
| |
Method Summary | |
boolean |
|
boolean[] |
|
void |
|
static Colormap |
|
Color[] |
|
Screen |
|
static Colormap |
|
Type |
|
Visual |
|
Color |
|
public Colormap()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a Colormap initialized to the system's default colormap.
public Colormap(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Create a new Colormap from a handle to a native resource.
public Colormap(Visual v, boolean allocate)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Creates a new colormap for the given visual. If allocate is true the newly created colormap will be a private colormap, and all colors in it will be allocated for the application use.
public boolean allocateColor(Color color, boolean writable, boolean bestMatch)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Allocates a single color from a colormap.
- Parameters:
color
- The color to allocatewritable
- If true the color is allocated writable.bestMatch
- If true GDK will attempt to do matching against existing colors if the color cannot be allocated as requested.
public boolean[] allocateColors(Color[] colors, boolean writable, boolean bestMatch)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Allocates colors from a colormap.
- Parameters:
colors
-writable
-bestMatch
-
public void freeColors(Color[] colors)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Frees previously allocated Colors.
- Parameters:
colors
-
public static Colormap getColormapFromHandle(Handle hndl)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used only by Java-Gnome.
public Color[] getColors()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Retrieve all of the Colors associated with the Colormap.
public Screen getScreen()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the screen for which the colormap was created.
public static Colormap getSystem()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the system's default colormap.
public Type getType()
public Visual getVisual()
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Returns the visual for which the colormap was created.
public Color queryColor(long pixel)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
Locates the RGB color corresponding to the given hardware pixel. The pixel must be a valid pixel in the colormap.
- Parameters:
pixel
-