Java Doc for MouseEvent.java in  » Graphic-Library » batik » org » w3c » dom » events » 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 » Graphic Library » batik » org.w3c.dom.events 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.events.MouseEvent

All known Subclasses:   org.apache.batik.dom.events.DOMMouseEvent,
MouseEvent
public interface MouseEvent extends UIEvent(Code)
The MouseEvent interface provides specific contextual information associated with Mouse events.

In the case of nested elements mouse events are always targeted at the most deeply nested element. Ancestors of the targeted element may use bubbling to obtain notification of mouse events which occur within theirs descendent elements.

To create an instance of the MouseEvent interface, use the DocumentEvent.createEvent("MouseEvent") method call.

Note: When initializing MouseEvent objects using initMouseEvent or initMouseEventNS, implementations should use the client coordinates clientX and clientY for calculation of other coordinates (such as target coordinates exposed by DOM Level 0 implementations).

See also the Document Object Model (DOM) Level 3 Events Specification .
since:
   DOM Level 2





Method Summary
public  booleangetAltKey()
     true if the alt (alternative) key modifier is activated.
public  shortgetButton()
     During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state.
public  intgetClientX()
     The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.
public  intgetClientY()
     The vertical coordinate at which the event occurred relative to the DOM implementation's client area.
public  booleangetCtrlKey()
     true if the control (Ctrl) key modifier is activated.
public  booleangetMetaKey()
     true if the meta (Meta) key modifier is activated.
public  booleangetModifierState(String keyIdentifierArg)
     This methods queries the state of a modifier using a key identifier.
public  EventTargetgetRelatedTarget()
     Used to identify a secondary EventTarget related to a UI event, depending on the type of event.
public  intgetScreenX()
     The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.
public  intgetScreenY()
     The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.
public  booleangetShiftKey()
     true if the shift (Shift) key modifier is activated.
public  voidinitMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg)
     The initMouseEvent method is used to initialize the value of a MouseEvent object and has the same behavior as UIEvent.initUIEvent().
public  voidinitMouseEventNS(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, short buttonArg, EventTarget relatedTargetArg, String modifiersList)
     The initMouseEventNS method is used to initialize the value of a MouseEvent object and has the same behavior as UIEvent.initUIEventNS().



Method Detail
getAltKey
public boolean getAltKey()(Code)
true if the alt (alternative) key modifier is activated.

Note: The Option key modifier on Macintosh systems must be represented using this key modifier.




getButton
public short getButton()(Code)
During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state. 0 indicates the normal button of the mouse (in general on the left or the one button on Macintosh mice, used to activate a button or select text). 2 indicates the contextual property (in general on the right, used to display a context menu) button of the mouse if present. 1 indicates the extra (in general in the middle and often combined with the mouse wheel) button. Some mice may provide or simulate more buttons, and values higher than 2 can be used to represent such buttons.



getClientX
public int getClientX()(Code)
The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.



getClientY
public int getClientY()(Code)
The vertical coordinate at which the event occurred relative to the DOM implementation's client area.



getCtrlKey
public boolean getCtrlKey()(Code)
true if the control (Ctrl) key modifier is activated.



getMetaKey
public boolean getMetaKey()(Code)
true if the meta (Meta) key modifier is activated.

Note: The Command key modifier on Macintosh system must be represented using this meta key.




getModifierState
public boolean getModifierState(String keyIdentifierArg)(Code)
This methods queries the state of a modifier using a key identifier. See also .
Parameters:
  keyIdentifierArg - A modifier key identifier, as defined by the KeyboardEvent.keyIdentifier attribute. Common modifier keys are "Alt", "AltGraph", "CapsLock", "Control", "Meta", "NumLock", "Scroll", or "Shift".

Note: If an application wishes to distinguish between right and left modifiers, this information could be deduced using keyboard events and KeyboardEvent.keyLocation. true if it is modifier key and the modifier is activated, false otherwise.
since:
   DOM Level 3




getRelatedTarget
public EventTarget getRelatedTarget()(Code)
Used to identify a secondary EventTarget related to a UI event, depending on the type of event.



getScreenX
public int getScreenX()(Code)
The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.



getScreenY
public int getScreenY()(Code)
The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.



getShiftKey
public boolean getShiftKey()(Code)
true if the shift (Shift) key modifier is activated.



initMouseEvent
public void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg)(Code)
The initMouseEvent method is used to initialize the value of a MouseEvent object and has the same behavior as UIEvent.initUIEvent().
Parameters:
  typeArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  canBubbleArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  cancelableArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  viewArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  detailArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  screenXArg - Specifies MouseEvent.screenX.
Parameters:
  screenYArg - Specifies MouseEvent.screenY.
Parameters:
  clientXArg - Specifies MouseEvent.clientX.
Parameters:
  clientYArg - Specifies MouseEvent.clientY.
Parameters:
  ctrlKeyArg - Specifies MouseEvent.ctrlKey.
Parameters:
  altKeyArg - Specifies MouseEvent.altKey.
Parameters:
  shiftKeyArg - Specifies MouseEvent.shiftKey.
Parameters:
  metaKeyArg - Specifies MouseEvent.metaKey.
Parameters:
  buttonArg - Specifies MouseEvent.button.
Parameters:
  relatedTargetArg - Specifies MouseEvent.relatedTarget. This value may be null.



initMouseEventNS
public void initMouseEventNS(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, short buttonArg, EventTarget relatedTargetArg, String modifiersList)(Code)
The initMouseEventNS method is used to initialize the value of a MouseEvent object and has the same behavior as UIEvent.initUIEventNS().
Parameters:
  namespaceURI - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  typeArg - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  canBubbleArg - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  cancelableArg - Refer to the UIEvent.initUIEventNS()method for a description of this parameter.
Parameters:
  viewArg - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  detailArg - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  screenXArg - Refer to the MouseEvent.initMouseEvent() method for a description of this parameter.
Parameters:
  screenYArg - Refer to the MouseEvent.initMouseEvent() method for a description of this parameter.
Parameters:
  clientXArg - Refer to the MouseEvent.initMouseEvent() method for a description of this parameter.
Parameters:
  clientYArg - Refer to the MouseEvent.initMouseEvent() method for a description of this parameter.
Parameters:
  buttonArg - Refer to the MouseEvent.initMouseEvent()method for a description of this parameter.
Parameters:
  relatedTargetArg - Refer to the MouseEvent.initMouseEvent() method for a description of this parameter.
Parameters:
  modifiersList - A white space separated list of modifier key identifiers to be activated on this object. As an example, "Control Alt" will activated the control and alt modifiers.
since:
   DOM Level 3



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