| java.lang.Object sun.awt.X11.XBaseWindow
All known Subclasses: sun.awt.X11.XRootWindow, sun.awt.X11.XWindow, sun.awt.X11.XIconWindow, sun.awt.X11.XFocusProxyWindow,
Inner Class :static enum InitialiseState | |
Inner Class :static class StateLock extends Object | |
Method Summary | |
void | awtLock() | void | awtLockNotifyAll() | void | awtLockWait() | void | awtUnlock() | public boolean | checkInitialised() | protected void | checkParams(XCreateWindowParams params) Verifies that all required parameters are set. | static void | checkSecurity() | public boolean | contains(int x, int y) Returns whether the given point is inside of the window. | public boolean | containsGlobal(int x, int y) Returns whether the given point is inside of the window. | void | destroy() | public void | dispatchEvent(XEvent xev) | static void | dispatchToWindow(XEvent ev) | void | flush() | public int | getAbsoluteX() | public int | getAbsoluteY() | public Rectangle | getBounds() | public Set<Long> | getChildren() | public long | getContentWindow() | public XBaseWindow | getContentXWindow() | public XCreateWindowParams | getDelayedParams() | int | getHeight() | public XSizeHints | getHints() | public XBaseWindow | getParentWindow() | long | getScreen() | long | getScreenNumber() | static long | getScreenOfWindow(long window) | public Dimension | getSize() | Object | getStateLock() This lock object can be used to protect instance data from concurrent access
by two threads. | public XWindowPeer | getToplevelXWindow() | public XWMHints | getWMHints() | protected String | getWMName() | int | getWidth() | public long | getWindow() | int | getX() | static XRootWindow | getXAWTRootWindow() | int | getY() | public boolean | grabInput() We should always grab both keyboard and pointer to control event flow
on popups. | public void | handleButtonPressRelease(XEvent xev) | public void | handleClientMessage(XEvent xev) | public void | handleConfigureNotifyEvent(XEvent xev) | public void | handleCreateNotify(XEvent xev) | public void | handleDestroyNotify(XEvent xev) | public void | handleExposeEvent(XEvent xev) | public void | handleKeyPress(XEvent xev) | public void | handleKeyRelease(XEvent xev) | public void | handleMapNotifyEvent(XEvent xev) | public void | handleMotionNotify(XEvent xev) | public void | handlePropertyNotify(XEvent xev) | public void | handleReparentNotifyEvent(XEvent xev) | public void | handleUnmapNotifyEvent(XEvent xev) | public void | handleVisibilityEvent(XEvent xev) | public void | handleXCrossingEvent(XEvent xev) | final protected void | init(long parentWindow, Rectangle bounds) | final protected void | init(XCreateWindowParams params) Creates window using parameters params
If params contain flag DELAYED doesn't do anything. | protected void | initClientLeader() | void | instantPreInit(XCreateWindowParams params) | boolean | isDisposed() | protected boolean | isEventDisabled(XEvent e) | static boolean | isFullRelease(int buttonState, int button) | static boolean | isGrabbedEvent(XEvent ev, XBaseWindow target) | boolean | isMapped() | public boolean | isMinSizeSet() | boolean | isVisible() | final protected void | postInit() | void | postInit(XCreateWindowParams params) Called after window creation, descendants should override to initialize Window
with class-specific values and perform post-initialization actions. | final protected void | preInit() | void | preInit(XCreateWindowParams params) Called before window creation, descendants should override to initialize the data,
initialize params. | void | setDisposed(boolean d) | public void | setSizeHints(long flags, int x, int y, int width, int height) | void | setWMClass(String[] cl) | final public void | setWMHints(XWMHints hints) | public void | toFront() | Rectangle | toGlobal(Rectangle rec) | Point | toGlobal(Point pt) | Point | toGlobal(int x, int y) | Point | toLocal(Point pt) | Point | toLocal(int x, int y) | static Point | toOtherWindow(long src, long dst, int x, int y) Translate coordinates from one window into another. | public String | toString() | static void | ungrabInput() | void | ungrabInputImpl() | void | updateWMName() | public static long | xGetInputFocus() | public void | xRequestFocus(long time) | public void | xRequestFocus() | public void | xSetBounds(Rectangle bounds) | public void | xSetBounds(int x, int y, int width, int height) | public void | xSetVisible(boolean visible) |
DEF_LOCATION | final static int DEF_LOCATION(Code) | | |
MIN_SIZE | final static int MIN_SIZE(Code) | | |
PARENT_WINDOWBOUNDSOVERRIDE_REDIRECTEVENT_MASKVALUE_MASKBORDER_PIXELCOLORMAPDEPTHVISUAL_CLASSVISUALEMBEDDEDDELAYEDPARENTBACKGROUND_PIXMAPVISIBLESAVE_UNDERBACKING_STOREBIT_GRAVITY | final public static String PARENT_WINDOWBOUNDSOVERRIDE_REDIRECTEVENT_MASKVALUE_MASKBORDER_PIXELCOLORMAPDEPTHVISUAL_CLASSVISUALEMBEDDEDDELAYEDPARENTBACKGROUND_PIXMAPVISIBLESAVE_UNDERBACKING_STOREBIT_GRAVITY(Code) | | |
embedded | boolean embedded(Code) | | |
state_lock | protected StateLock state_lock(Code) | | |
XBaseWindow | XBaseWindow()(Code) | | |
XBaseWindow | XBaseWindow(long parentWindow, Rectangle bounds)(Code) | | Creates normal child window
|
XBaseWindow | XBaseWindow(long parentWindow)(Code) | | |
awtLockNotifyAll | void awtLockNotifyAll()(Code) | | |
awtUnlock | void awtUnlock()(Code) | | |
checkInitialised | public boolean checkInitialised()(Code) | | |
checkParams | protected void checkParams(XCreateWindowParams params)(Code) | | Verifies that all required parameters are set. If not, sets them to default values.
Verifies values of critical parameters, adjust their values when needed.
throws: IllegalArgumentException - if params is null |
checkSecurity | static void checkSecurity()(Code) | | |
contains | public boolean contains(int x, int y)(Code) | | Returns whether the given point is inside of the window. Coordinates are local.
|
containsGlobal | public boolean containsGlobal(int x, int y)(Code) | | Returns whether the given point is inside of the window. Coordinates are global.
|
dispatchEvent | public void dispatchEvent(XEvent xev)(Code) | | |
dispatchToWindow | static void dispatchToWindow(XEvent ev)(Code) | | Dispatches event to the grab Window or event source window depending
on whether the grab is active and on the event type
|
getAbsoluteX | public int getAbsoluteX()(Code) | | |
getAbsoluteY | public int getAbsoluteY()(Code) | | |
getContentWindow | public long getContentWindow()(Code) | | |
getHeight | int getHeight()(Code) | | |
getHints | public XSizeHints getHints()(Code) | | |
getScreen | long getScreen()(Code) | | |
getScreenNumber | long getScreenNumber()(Code) | | |
getScreenOfWindow | static long getScreenOfWindow(long window)(Code) | | |
getStateLock | Object getStateLock()(Code) | | This lock object can be used to protect instance data from concurrent access
by two threads. If both state lock and AWT lock are taken, AWT Lock should be taken first.
|
getWMHints | public XWMHints getWMHints()(Code) | | |
getWindow | public long getWindow()(Code) | | |
grabInput | public boolean grabInput()(Code) | | We should always grab both keyboard and pointer to control event flow
on popups. This also simplifies synthetic grab implementation.
The active grab overrides activated automatic grab.
|
handleButtonPressRelease | public void handleButtonPressRelease(XEvent xev)(Code) | | Activate automatic grab on first ButtonPress,
deactivate on full mouse release
|
handleClientMessage | public void handleClientMessage(XEvent xev)(Code) | | |
handleConfigureNotifyEvent | public void handleConfigureNotifyEvent(XEvent xev)(Code) | | |
handleCreateNotify | public void handleCreateNotify(XEvent xev)(Code) | | |
handleDestroyNotify | public void handleDestroyNotify(XEvent xev)(Code) | | |
handleExposeEvent | public void handleExposeEvent(XEvent xev)(Code) | | |
handleKeyPress | public void handleKeyPress(XEvent xev)(Code) | | |
handleKeyRelease | public void handleKeyRelease(XEvent xev)(Code) | | |
handleMapNotifyEvent | public void handleMapNotifyEvent(XEvent xev)(Code) | | |
handleMotionNotify | public void handleMotionNotify(XEvent xev)(Code) | | |
handlePropertyNotify | public void handlePropertyNotify(XEvent xev)(Code) | | |
handleReparentNotifyEvent | public void handleReparentNotifyEvent(XEvent xev)(Code) | | |
handleUnmapNotifyEvent | public void handleUnmapNotifyEvent(XEvent xev)(Code) | | |
handleVisibilityEvent | public void handleVisibilityEvent(XEvent xev)(Code) | | |
handleXCrossingEvent | public void handleXCrossingEvent(XEvent xev)(Code) | | |
init | final protected void init(XCreateWindowParams params)(Code) | | Creates window using parameters params
If params contain flag DELAYED doesn't do anything.
Note: Descendants can call this method to create the window
at the time different to instance construction.
|
initClientLeader | protected void initClientLeader()(Code) | | |
isDisposed | boolean isDisposed()(Code) | | |
isEventDisabled | protected boolean isEventDisabled(XEvent e)(Code) | | |
isFullRelease | static boolean isFullRelease(int buttonState, int button)(Code) | | Checks ButtonRelease released all Mouse buttons
|
isMapped | boolean isMapped()(Code) | | |
isMinSizeSet | public boolean isMinSizeSet()(Code) | | |
isVisible | boolean isVisible()(Code) | | |
postInit | final protected void postInit()(Code) | | |
postInit | void postInit(XCreateWindowParams params)(Code) | | Called after window creation, descendants should override to initialize Window
with class-specific values and perform post-initialization actions.
|
preInit | final protected void preInit()(Code) | | |
preInit | void preInit(XCreateWindowParams params)(Code) | | Called before window creation, descendants should override to initialize the data,
initialize params.
|
setDisposed | void setDisposed(boolean d)(Code) | | |
setSizeHints | public void setSizeHints(long flags, int x, int y, int width, int height)(Code) | | |
setWMHints | final public void setWMHints(XWMHints hints)(Code) | | Helper function to set W
|
toFront | public void toFront()(Code) | | |
toOtherWindow | static Point toOtherWindow(long src, long dst, int x, int y)(Code) | | Translate coordinates from one window into another. Optimized
for XAWT - uses cached data when possible. Preferable over
pure XTranslateCoordinates.
coordinates relative to dst, or null if error happened |
ungrabInput | static void ungrabInput()(Code) | | |
ungrabInputImpl | void ungrabInputImpl()(Code) | | |
updateWMName | void updateWMName()(Code) | | |
xGetInputFocus | public static long xGetInputFocus()(Code) | | |
xRequestFocus | public void xRequestFocus(long time)(Code) | | |
xRequestFocus | public void xRequestFocus()(Code) | | |
xSetBounds | public void xSetBounds(int x, int y, int width, int height)(Code) | | |
xSetVisible | public void xSetVisible(boolean visible)(Code) | | |
|
|