|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gdk.Screen
public class Screen
Representation of a physical monitor screen. You can get the Screen object
for one of your application's Windows by calling Window's
getScreen()
method; it you want
the width and height of the screen your Window is on, you're in the right
place.
A Screen is typically one monitor, but could actually be more; it depends on how your X server is configured. A Display, in turn, is made up of one or more Screens; again it depends.
With the advent of the XINERAMA
extension in the
XFree and later X.org X Windows servers, you tend to find that
what would have been multiple Screens have been (transparently) merged and
stretched to run over an entire multi-headed Display. This works out better
(single mouse and keyboard works over the entire desktop, as does cut and
paste, dragging, etc) and since the window manager is aware of the
situation, it can maximize Windows properly to be only on one physical
screen as you'd expect and desire.
As a result, the distinction between Screen and Display is nowadays somewhat blurred. In practise you can treat them synonymously especially since their methods don't overlap. Frankly, this is all another classic case of "don't second guess the window manager"; just let it do it's job and leave the Window placement alone.
Display
,
The X
(7) man page on your systemMethod Summary | |
---|---|
Colormap |
getColormapDefault()
Get the default Colormap associated with this Screen. |
Colormap |
getColormapRGBA()
Get the RGBA Colormap associated with this Screen. |
int |
getHeight()
Get the vertical height of this Screen, in pixels. |
int |
getWidth()
Get the horizontal width of this Screen, in pixels. |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Colormap getColormapDefault()
public Colormap getColormapRGBA()
public int getHeight()
public int getWidth()
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |