Java Doc for NativeEvent.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » wtk » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.awt.wtk 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.awt.wtk.NativeEvent

All known Subclasses:   org.apache.harmony.awt.wtk.linux.LinuxEvent,  org.apache.harmony.awt.wtk.windows.WinEvent,
NativeEvent
abstract public class NativeEvent (Code)
The interface describing cross-platform translation of system messages.

Some messages can appear only on specific platform, but they still can have cross-platform interpretation if the application should be aware of them and can react using cross-platform API.



Field Summary
final public static  intID_BOUNDS_CHANGED
     Window bounds have changed.
final public static  intID_CREATED
    
final public static  intID_INSETS_CHANGED
     Window decoration size has changed.
final public static  intID_MOUSE_GRAB_CANCELED
    
final public static  intID_PLATFORM
     Message has no common cross-platform interpretation and should be skipped.
final public static  intID_THEME_CHANGED
    
protected  inteventId
    
protected  KeyInfokeyInfo
    
protected  PointlocalPos
    
protected  intmodifiers
    
protected  intmouseButton
    
protected  longotherWindowId
    
protected  PointscreenPos
    
protected  longtime
    
protected  intwheelRotation
    
protected  longwindowId
    
protected  RectanglewindowRect
    
protected  intwindowState
    


Method Summary
abstract public  RectanglegetClipBounds()
     Returns the "dirty" area of the window as one rectangle.
abstract public  MultiRectAreagetClipRects()
     Returns the "dirty" area of the window as set of non-intersecting rectangles.
public  intgetEventId()
    
public  intgetInputModifiers()
     Returns the state of keyboard and mouse buttons when the event occured if event from mouse or keyboard, for other events can return junk values.
abstract public  InsetsgetInsets()
     Returns the window insets.
public  StringBuffergetKeyChars()
     Return the string of characters associated with the event Has meaning only for KEY_PRESSED as should be translated to serie of KEY_TYPED events.
public  intgetKeyLocation()
    
public  chargetLastChar()
    
public  PointgetLocalPos()
    
public  intgetMouseButton()
     Returns the number of mouse button which changed it's state, otherwise 0.
public  longgetOtherWindowId()
     For the focus event contains the oposite window.
public  PointgetScreenPos()
     Returns the position of cursor when event occured in screen coordinates.
public  longgetTime()
    
abstract public  booleangetTrigger()
     Returns true if event is popup menu trigger.
public  intgetVKey()
    
public  intgetWheelRotation()
     Returns the number of "clicks" the mouse wheel was rotated.
public  longgetWindowId()
     Returns the system window id of the event recipient.
public  RectanglegetWindowRect()
    
public  intgetWindowState()
     Returns the iconified/maximized state of recipient window if event is state related, for other events can junk values.

Field Detail
ID_BOUNDS_CHANGED
final public static int ID_BOUNDS_CHANGED(Code)
Window bounds have changed.



ID_CREATED
final public static int ID_CREATED(Code)
Window was just created (WM_CREATE on Windows)



ID_INSETS_CHANGED
final public static int ID_INSETS_CHANGED(Code)
Window decoration size has changed.



ID_MOUSE_GRAB_CANCELED
final public static int ID_MOUSE_GRAB_CANCELED(Code)
Mouse grab was canceled by the native system



ID_PLATFORM
final public static int ID_PLATFORM(Code)
Message has no common cross-platform interpretation and should be skipped.



ID_THEME_CHANGED
final public static int ID_THEME_CHANGED(Code)
System color scheme or visual theme was changed



eventId
protected int eventId(Code)



keyInfo
protected KeyInfo keyInfo(Code)



localPos
protected Point localPos(Code)



modifiers
protected int modifiers(Code)



mouseButton
protected int mouseButton(Code)



otherWindowId
protected long otherWindowId(Code)



screenPos
protected Point screenPos(Code)



time
protected long time(Code)



wheelRotation
protected int wheelRotation(Code)



windowId
protected long windowId(Code)



windowRect
protected Rectangle windowRect(Code)



windowState
protected int windowState(Code)





Method Detail
getClipBounds
abstract public Rectangle getClipBounds()(Code)
Returns the "dirty" area of the window as one rectangle. This area is to be painted. non-null Rectangle



getClipRects
abstract public MultiRectArea getClipRects()(Code)
Returns the "dirty" area of the window as set of non-intersecting rectangles. This area is to be painted. non-empty array of null if empty



getEventId
public int getEventId()(Code)
Returns cross-platform event id should be one of ID_* constants or id constants from java.awt.AWTEvent subclasess cross-platform event id



getInputModifiers
public int getInputModifiers()(Code)
Returns the state of keyboard and mouse buttons when the event occured if event from mouse or keyboard, for other events can return junk values. The value is bitwise OR of java.awt.event.InputEvent *_DOWN constants. Method is aware of system mouse button swap for left-hand mouse and return swapped values. bitwise OR of java.awt.event.InputEvent *_DOWN constants



getInsets
abstract public Insets getInsets()(Code)
Returns the window insets. Insets is area which belongs to window somehow but is outside of it's client area, it usually contains system provided border and titlebar. non-null java.awt.Insets



getKeyChars
public StringBuffer getKeyChars()(Code)
Return the string of characters associated with the event Has meaning only for KEY_PRESSED as should be translated to serie of KEY_TYPED events. For dead keys and input methods one key press can generate multiple key chars. string of characters



getKeyLocation
public int getKeyLocation()(Code)
The same meaning as java.awt.event.getKeyLocation java.awt.event KEY_LOCATION_* constant



getLastChar
public char getLastChar()(Code)



getLocalPos
public Point getLocalPos()(Code)
Returns the position of cursor when event occured relative to top-left corner of recipient window position of cursor in local coordinates



getMouseButton
public int getMouseButton()(Code)
Returns the number of mouse button which changed it's state, otherwise 0. Left button is 1, middle button is 2, right button is 3. Method is aware of system mouse button swap for left-hand mouse and return swapped values. mouse button number



getOtherWindowId
public long getOtherWindowId()(Code)
For the focus event contains the oposite window. This means it lost focus if recipient gains it, or will gain focus if recipient looses it. HWND on Windows, xwindnow on X



getScreenPos
public Point getScreenPos()(Code)
Returns the position of cursor when event occured in screen coordinates. position of cursor in screen coordinates



getTime
public long getTime()(Code)
Returns time when the message was received time in milliseconds



getTrigger
abstract public boolean getTrigger()(Code)
Returns true if event is popup menu trigger. boolean flag



getVKey
public int getVKey()(Code)
The same meaning as java.awt.event.getKeyCode java.awt.event VK_* constant



getWheelRotation
public int getWheelRotation()(Code)
Returns the number of "clicks" the mouse wheel was rotated. negative values if the mouse wheel was rotated up/away from the user,and positive values if the mouse wheel was rotated down/ towards the user



getWindowId
public long getWindowId()(Code)
Returns the system window id of the event recipient. HWND on Windows, xwindnow on X



getWindowRect
public Rectangle getWindowRect()(Code)
The recipient window bounds when the event occured window bounds



getWindowState
public int getWindowState()(Code)
Returns the iconified/maximized state of recipient window if event is state related, for other events can junk values. The value has the same meaning as Frame.getExtendedState It's bitwise OR of ICONIFIED, MAXIMIZED_HORIZ, MAXIMIZED_VERT bitwise OR of ICONIFIED, MAXIMIZED_HORIZ, MAXIMIZED_VERT



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.