APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

public final Class XlibUtil

extends Object
Class Inheritance
Imports
java.awt.Dimension, .GraphicsEnvironment, .Point, .Rectangle, java.util.Collections, .HashSet, .Set, sun.awt.X11GraphicsConfig, .X11GraphicsDevice, .X11GraphicsEnvironment, sun.java2d.pipe.Region

Field Summary

Modifier and TypeField and Description
pack-priv static Boolean
isShapingSupported

XSHAPE extension support.

Constructor Summary

AccessConstructor and Description
private
XlibUtil()

The constructor is made private to eliminate any instances of this class

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
getButtonMask(int button)

pack-priv static Set<Long>
getChildWindows(long window)

Returns all the children for the given window

pack-priv static long
getParentWindow(long window)

Returns the parent for the given window

public static long
getRootWindow(int screenNumber)

Xinerama-aware version of XlibWrapper.RootWindow method.

pack-priv static Rectangle
getWindowGeometry(long window, int scale)

Returns the bounds of the given window, in absolute coordinates

pack-priv static int
getWindowMapState(long window)

pack-priv static boolean
isRoot(long rootCandidate, long screenNumber)

Checks if the given window is a root window for the given screen

pack-priv static synchronized boolean
isShapingSupported()

Returns whether the XSHAPE extension available

pack-priv static boolean
isToplevelWindow(long window)

Note

Right now returns only decorated top-levels (not Window)

pack-priv static boolean
isTrueToplevelWindow(long window)

The same as isToplevelWindow(window), but doesn't treat XEmbeddedFramePeer as toplevel.

pack-priv static boolean
isXAWTToplevelWindow(long window)

Checks if the given window is a Java window and is an instance of XWindowPeer

pack-priv static int
scaleDown(int x, int scale)

pack-priv static Point
translateCoordinates(long src, long dst, Point p, int scale)

Translates the given point from one window to another.

pack-priv static Rectangle
translateCoordinates(long src, long dst, Rectangle r, int scale)

Translates the given rectangle from one window to another.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isShapingSupportedback to summary
pack-priv static Boolean isShapingSupported

XSHAPE extension support.

Constructor Detail

XlibUtilback to summary
private XlibUtil()

The constructor is made private to eliminate any instances of this class

Method Detail

getButtonMaskback to summary
pack-priv static int getButtonMask(int button)
getChildWindowsback to summary
pack-priv static Set<Long> getChildWindows(long window)

Returns all the children for the given window

getParentWindowback to summary
pack-priv static long getParentWindow(long window)

Returns the parent for the given window

getRootWindowback to summary
public static long getRootWindow(int screenNumber)

Xinerama-aware version of XlibWrapper.RootWindow method.

getWindowGeometryback to summary
pack-priv static Rectangle getWindowGeometry(long window, int scale)

Returns the bounds of the given window, in absolute coordinates

getWindowMapStateback to summary
pack-priv static int getWindowMapState(long window)
isRootback to summary
pack-priv static boolean isRoot(long rootCandidate, long screenNumber)

Checks if the given window is a root window for the given screen

isShapingSupportedback to summary
pack-priv static synchronized boolean isShapingSupported()

Returns whether the XSHAPE extension available

Since
1.7
isToplevelWindowback to summary
pack-priv static boolean isToplevelWindow(long window)

Note

Right now returns only decorated top-levels (not Window)

isTrueToplevelWindowback to summary
pack-priv static boolean isTrueToplevelWindow(long window)

The same as isToplevelWindow(window), but doesn't treat XEmbeddedFramePeer as toplevel.

isXAWTToplevelWindowback to summary
pack-priv static boolean isXAWTToplevelWindow(long window)

Checks if the given window is a Java window and is an instance of XWindowPeer

scaleDownback to summary
pack-priv static int scaleDown(int x, int scale)
translateCoordinatesback to summary
pack-priv static Point translateCoordinates(long src, long dst, Point p, int scale)

Translates the given point from one window to another. Returns null if the translation is failed

translateCoordinatesback to summary
pack-priv static Rectangle translateCoordinates(long src, long dst, Rectangle r, int scale)

Translates the given rectangle from one window to another. Returns null if the translation is failed