|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.x11.Display
public class Display
X server connection.
Nested Class Summary | |
---|---|
static class |
Display.ExtensionInfo
Information about an X extension. |
static class |
Display.Host
Information about a host. |
static class |
Display.HostsInfo
Hosts currently on the access control list and whether use of the list at connection setup is currently enabled or disabled. |
static class |
Display.Name
X display name. |
static class |
Display.ScreenSaverInfo
Informations about the screensaver. |
Constructor Summary | |
---|---|
Display()
#Display(String, int, int) |
|
Display(Display.Name name)
#Display(String, int, int) |
|
Display(java.net.Socket socket,
java.lang.String hostname,
int display_no,
int screen_no)
Sets up a display using a connection over the specified socket . |
|
Display(java.lang.String hostname,
int display_no)
#Display(String, int, int) |
|
Display(java.lang.String hostname,
int display_no,
int screen_no)
|
Method Summary | |
---|---|
int |
allocate_id(java.lang.Object object)
|
void |
bell(int percent)
Rings the bell on the keyboard at a volume relative to the base volume of the keyboard, if possible. |
void |
change_hosts(int mode,
int family,
byte[] host)
|
void |
check_error()
|
void |
close()
|
java.lang.String[] |
extensions()
Returns a list of all extensions supported by the server. |
void |
flush()
|
java.lang.String[] |
font_path()
Returns the current search path for fonts. |
Data |
fonts_with_info(java.lang.String pattern,
int max_name_count)
|
Font[] |
fonts(java.lang.String pattern,
int max_name_count)
|
void |
force_screen_saver(int mode)
|
void |
grab_server()
|
void |
init_big_request_extension()
|
void |
init_defaults()
|
void |
kill_client(Resource resource)
|
Display.HostsInfo |
list_hosts()
Returns the hosts currently on the access control list and whether use of the list at connection setup is currently enabled or disabled. |
Event |
next_event()
|
Display.ExtensionInfo |
query_extension(java.lang.String name)
Determines if the named extension is present. |
Display.ScreenSaverInfo |
screen_saver()
Returns the screensaver control values. |
Window |
selection_owner(Atom selection)
|
void |
set_access_control(int mode)
|
void |
set_close_down_mode(int mode)
|
void |
set_font_path(int count,
java.lang.String[] path)
|
void |
set_screen_saver(int timeout,
int interval,
int prefer_blanking,
int allow_exposures)
|
java.lang.String |
toString()
|
void |
ungrab_server()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CURRENT_TIME
public RequestOutputStream out
public ResponseInputStream in
public java.lang.String hostname
public int display_no
public Input input
public boolean connected
public int release_no
public java.lang.String vendor
public int maximum_request_length
public Screen[] screens
public Pixmap.Format[] pixmap_formats
public int image_byte_order
public int bitmap_format_bit_order
public int bitmap_format_scanline_unit
public int bitmap_format_scanline_pad
public int resource_base
public int resource_mask
public Color default_black
public Color default_white
public Colormap default_colormap
public int default_depth
public Pixmap.Format default_pixmap_format
public Window default_root
public Screen default_screen
public int default_screen_no
public GC default_gc
Screen.default_gc()
public java.util.Hashtable resources
public int resource_index
public java.util.Hashtable atom_ids
public java.util.Hashtable atom_names
public XCMisc xcmisc
public boolean use_xcmisc
public int xcmisc_resource_base
public int xcmisc_resource_count
public boolean big_requests_present
public int extended_maximum_request_length
public java.lang.String[] extension_opcode_strings
public java.lang.String[][] extension_minor_opcode_strings
public EventFactory[] extension_event_factories
public ErrorFactory[] extension_error_factories
public static final int NO
public static final int YES
public static final int DEFAULT
public static final java.lang.String[] SCREEN_SAVER_STRINGS
public static final int INSERT
public static final int DELETE
public static final int ENABLE
public static final int DISABLE
public static final int DESTROY
public static final int RETAIN_PERMANENT
public static final int RETAIN_TEMPORARY
public static final int ACTIVATE
public static final int RESET
Constructor Detail |
---|
public Display()
public Display(Display.Name name)
public Display(java.lang.String hostname, int display_no)
public Display(java.net.Socket socket, java.lang.String hostname, int display_no, int screen_no)
socket
. This should be used when there is a need to use
non-TCP sockets, like connecting to an X server via Unix domain sockets.
You need to provide an implementation for this kind of socket though.
socket
- the socket to use for that connectionhostname
- the hostname to connect todisplay_no
- the display numberscreen_no
- the screen numberpublic Display(java.lang.String hostname, int display_no, int screen_no)
Method Detail |
---|
public Window selection_owner(Atom selection)
public void grab_server()
public void ungrab_server()
public Font[] fonts(java.lang.String pattern, int max_name_count)
Enum#next()
of type Font
,
Enum#next_string()
public Data fonts_with_info(java.lang.String pattern, int max_name_count)
public void set_font_path(int count, java.lang.String[] path)
public java.lang.String[] font_path()
set_font_path(int, String[])
,
XGetFontPathpublic Display.ExtensionInfo query_extension(java.lang.String name)
name
- the name of the extension to query
public java.lang.String[] extensions()
public void bell(int percent)
volume,
- see abovepublic void set_screen_saver(int timeout, int interval, int prefer_blanking, int allow_exposures)
prefer_blanking
- valid:
NO
,
YES
,
DEFAULT
allow_exposures
- valid:
NO
,
YES
,
DEFAULT
public Display.ScreenSaverInfo screen_saver()
public void change_hosts(int mode, int family, byte[] host)
mode
- valid:
INSERT
,
DELETE
public Display.HostsInfo list_hosts()
public void set_access_control(int mode)
mode
- valid:
ENABLE
,
DISABLE
public void kill_client(Resource resource)
public void set_close_down_mode(int mode)
mode
- valid:
DESTROY
,
RETAIN_PERMANENT
,
RETAIN_TEMPORARY
public void force_screen_saver(int mode)
mode
- valid:
ACTIVATE
,
RESET
public int allocate_id(java.lang.Object object)
public void close()
public void init_big_request_extension()
public void init_defaults()
public Event next_event()
public java.lang.String toString()
toString
in class java.lang.Object
public void check_error()
public void flush()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |