org.gnu.gdk
public class Screen extends GObject
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.
|
Parameters: evt
Parameters: x y
Parameters: win
Parameters: monitorNum
Parameters: colormap