| java.lang.Object java.awt.ComponentXWindow
All known Subclasses: java.awt.HeavyweightComponentXWindow,
ComponentXWindow | class ComponentXWindow (Code) | | The X window used by a component to get mouse events from the X server. This winow represents an InputOnly
window in X (an invisible window that can be used to select and receive events).
version: 1.15, 08/19/02 author: Nicholas Allen |
Field Summary | |
Component | component The component this X window is for. | int | windowID The native X Window id. | boolean | zeroSize true if size is set to zero in either width or height. |
Method Summary | |
void | create() Creates the component's X window. | native void | dispose() Destroys the X window. | native Point | getLocationOnScreen() Gets the location of the X window on the screen. | void | map() Maps the X window. | native void | mapNative() Maps the X window using XMapWindow xlib function. | void | postMouseButtonEvent(int id, long when, int modifiers, int x, int y) Called when a mouse button event is received from the X server for this X window.
Posts required AWTEvents into the Java event queue for processing. | void | postMouseEvent(int id, long when, int modifiers, int x, int y) Called when a mouse motion event is received from the X server for this X window.
Posts required AWTEvents into the Java event queue for processing. | void | setBackground(Color c) Sets the background for this x window. | void | setBounds(int x, int y, int width, int height) | native void | setBoundsNative(int x, int y, int width, int height) Sets the bounds for this X window using XMoveResizeWindow xlib function. | void | setCursor(Cursor cursor) | native void | setCursorNative(int type) | native void | setMouseEventMask(long mask) Sets the event mask for the X window using the supplied event mask (see AWTEvent).
This lets the X server know what kinds of events we are interested in. | native void | unmap() Unmaps the X window using the XUnmapWindow xlib function. |
windowID | int windowID(Code) | | The native X Window id.
|
zeroSize | boolean zeroSize(Code) | | true if size is set to zero in either width or height. This is necessary
as X doesn't allow 0 size windows.
|
create | void create()(Code) | | Creates the component's X window.
|
dispose | native void dispose()(Code) | | Destroys the X window.
|
getLocationOnScreen | native Point getLocationOnScreen()(Code) | | Gets the location of the X window on the screen.
|
map | void map()(Code) | | Maps the X window. This will only map the window if the size is non zero for
both the width and height.
|
mapNative | native void mapNative()(Code) | | Maps the X window using XMapWindow xlib function.
|
postMouseButtonEvent | void postMouseButtonEvent(int id, long when, int modifiers, int x, int y)(Code) | | Called when a mouse button event is received from the X server for this X window.
Posts required AWTEvents into the Java event queue for processing. This method will
determine the click count.
|
postMouseEvent | void postMouseEvent(int id, long when, int modifiers, int x, int y)(Code) | | Called when a mouse motion event is received from the X server for this X window.
Posts required AWTEvents into the Java event queue for processing.
|
setBackground | void setBackground(Color c)(Code) | | Sets the background for this x window. As this is an InputOnly X window we don't do anything
but sub classes need to override this if the X window is an InputOutput X window.
|
setBounds | void setBounds(int x, int y, int width, int height)(Code) | | |
setBoundsNative | native void setBoundsNative(int x, int y, int width, int height)(Code) | | Sets the bounds for this X window using XMoveResizeWindow xlib function. Note that
this function should not be called with a width or height of zero as X will generate errors.
|
setCursorNative | native void setCursorNative(int type)(Code) | | |
setMouseEventMask | native void setMouseEventMask(long mask)(Code) | | Sets the event mask for the X window using the supplied event mask (see AWTEvent).
This lets the X server know what kinds of events we are interested in.
|
unmap | native void unmap()(Code) | | Unmaps the X window using the XUnmapWindow xlib function.
|
|
|