org.gnu.gdk
public class Screen extends GObject
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.Screen
.
Note that a Screen may consist of multiple monitors which are merged to form a large screen area.
Constructor Summary | |
---|---|
Screen()
Creates and object representing the default Screen for the default
Display. | |
Screen(Handle handle) |
Method Summary | |
---|---|
void | broadcastClientMessage(Event evt)
On X11, sends an X ClientMessage event to all toplevel windows on screen.
|
Colormap | getDefaultColormap()
Returns the default Colormap for this screen. |
Display | getDisplay()
Returns the display that belongs to this Screen. |
int | getHeight()
Gets the height of the Screen in pixels. |
int | getHeightMM()
Gets the height of the Screen in milimeters. |
int | getMonitorAtPoint(int x, int y)
Returns the monitor number in which the point (x,y) is located.
|
int | getMonitorAtWindow(Window win)
Returns the number of the monitor in which the largest area of the
bounding rectangle of the Window resides.
|
Rectangle | getMonitorGeometry(int monitorNum)
Returns a Rectangle representing the size and position of the individual
monitor within the entire Screen area.
|
int | getNumber()
Gets the index of this Screen among the Screens in the Display to which
it belongs. |
int | getNumMonitors()
Returns the number of monitors which Screen consists of. |
Colormap | getRGBAColormap() |
Visual | getRGBAVisual() |
Colormap | getRGBColormap()
Gets the preferred colormap for rendering image data on screen. |
Visual | getRGBVisual()
Gets a "preferred visual" chosen by RGB for rendering image data on
screen. |
Window | getRootWindow()
Returns the root window of the Screen. |
static Screen | getScreenFromHandle(Handle hndl)
Internal static factory method to be used only internally by Java-Gnome. |
Colormap | getSystemColormap()
Returns the system's default Colormap for Screens |
Visual | getSystemVisual()
Returns the system's default Visual for Screens. |
Window[] | getToplevelWindows()
Returns a list of all known toplevel Windows on the Screen. |
Type | getType() |
int | getWidth()
Gets the width of the Screen in pixels. |
int | getWidthMM()
Gets the width of the Screen in milimeters. |
Visual[] | listVisuals()
List the Visuals for this Screen. |
String | makeDisplayName()
Returns the name to pass to the Display constructor to create a Display
with this Screen as the default Screen. |
void | setDefaultColormap(Colormap colormap)
Sets the default Colormap for this screen.
|
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 and object representing the default Screen for the default Display.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.
On X11, sends an X ClientMessage event to all toplevel windows on screen. Toplevel windows are determined by checking for the WM_STATE property, as described in the Inter-Client Communication Conventions Manual (ICCCM). If no windows are found with the WM_STATE property set, the message is sent to all children of the root window. On Windows, broadcasts a message registered with the name GDK_WIN32_CLIENT_MESSAGE to all top-level windows. The amount of data is limited to one long, i.e. four bytes.Parameters: evt
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 default Colormap for this screen.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 display that belongs to this Screen.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.
Gets the height of the Screen in pixels.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.
Gets the height of the Screen in milimeters.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 monitor number in which the point (x,y) is located.Parameters: x y
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 number of the monitor in which the largest area of the bounding rectangle of the Window resides.Parameters: win
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 a Rectangle representing the size and position of the individual monitor within the entire Screen area.Parameters: monitorNum
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.
Gets the index of this Screen among the Screens in the Display to which it belongs.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 number of monitors which Screen consists of.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.
Gets the preferred colormap for rendering image data on screen.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.
Gets a "preferred visual" chosen by RGB for rendering image data on screen.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 root window of the Screen.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 internally by Java-Gnome.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 for ScreensDeprecated: 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 Visual for Screens. This is the Visual for the root window of the Display.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 a list of all known toplevel Windows on the Screen. A toplevel Window is a child of the root window.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.
Gets the width of the Screen in pixels.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.
Gets the width of the Screen in milimeters.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.
List the Visuals for this Screen. A Visual describes a hardware image data format. For example, a visual might support 24-bit color, or 8-bit color, and might expect pixels to be in a certain format.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 name to pass to the Display constructor to create a Display with this Screen as the default Screen.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.
Sets the default Colormap for this screen.Parameters: colormap