org.gnu.gdk
Class Visual

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gdk.Visual

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.gdk.Visual.

public class Visual
extends org.gnu.glib.GObject

Describes a particular video hardware display format. It includes information about the number of bits used for each color, the way the bits are translated into an RGB value for display, and the way the bits are stored in memory.


Method Summary
static int getBestDepth()
          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.
static VisualType getBestVisualType()
          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.
 int getBitsPerRGB()
          Deprecated.  
 int getBlueMask()
          Deprecated.  
 int getBluePrec()
          Deprecated.  
 int getBlueShift()
          Deprecated.  
 ByteOrder getByteOrder()
          Deprecated.  
 int getColormapSize()
          Deprecated.  
 int getDepth()
          Deprecated.  
 int getGreenMask()
          Deprecated.  
 int getGreenPrec()
          Deprecated.  
 int getGreenShift()
          Deprecated.  
 int getRedMask()
          Deprecated.  
 int getRedPrec()
          Deprecated.  
 int getRedShift()
          Deprecated.  
 Screen getScreen()
          Deprecated.  
static Visual getSystemVisual()
          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.
static 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.
static Visual getVisual(int depth)
          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.
static Visual getVisual(int depth, VisualType vt)
          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.
static Visual getVisual(VisualType vt)
          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.
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBestDepth

public static int getBestDepth()
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.

Get the best available depth for the default GDK display. "Best" means "largest," i.e. 32 preferred over 24 preferred over 8 bits per pixel.


getBestVisualType

public static VisualType getBestVisualType()
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.

Return the best available visual type (the one with the most colors) for the default GDK display.


getSystemVisual

public static Visual getSystemVisual()
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.

Get the default or system visual for the default GDK display. This is the visual for the root window of the display.


getVisual

public static 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.

Get the visual with the most available colors for the default GDK display.


getVisual

public static Visual getVisual(int depth)
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.

Get the best visual with depth depth for the default GDK display. Color visuals and visuals with mutable colormaps are preferred over grayscale or fixed-colormap visuals. NULL may be returned if no visual supports depth.


getVisual

public static Visual getVisual(VisualType vt)
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.

Get the best visual of the given visual_type for the default GDK display. Visuals with higher color depths are considered better. NULL may be returned if no visual has type visual_type.


getVisual

public static Visual getVisual(int depth,
                               VisualType vt)
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.

Combines getVisual(int depth) and getVisual(VisualType vt).


getDepth

public int getDepth()
Deprecated. 

getByteOrder

public ByteOrder getByteOrder()
Deprecated. 

getColormapSize

public int getColormapSize()
Deprecated. 

getBitsPerRGB

public int getBitsPerRGB()
Deprecated. 

getRedMask

public int getRedMask()
Deprecated. 

getRedShift

public int getRedShift()
Deprecated. 

getRedPrec

public int getRedPrec()
Deprecated. 

getGreenMask

public int getGreenMask()
Deprecated. 

getGreenShift

public int getGreenShift()
Deprecated. 

getGreenPrec

public int getGreenPrec()
Deprecated. 

getBlueMask

public int getBlueMask()
Deprecated. 

getBlueShift

public int getBlueShift()
Deprecated. 

getBluePrec

public int getBluePrec()
Deprecated. 

getScreen

public Screen getScreen()
Deprecated.