Java Doc for MapMouseEvent.java in  » GIS » udig-1.1 » net » refractions » udig » project » ui » render » displayAdapter » 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 » GIS » udig 1.1 » net.refractions.udig.project.ui.render.displayAdapter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.refractions.udig.project.ui.render.displayAdapter.MapMouseEvent

All known Subclasses:   net.refractions.udig.project.ui.render.displayAdapter.MapMouseWheelEvent,
MapMouseEvent
public class MapMouseEvent (Code)
Encapsulates a mouse event. MapMouseListeners receive MapMouse events.
author:
   jeichar


Field Summary
final public static  intALT_DOWN_MASK
    
final public static  intBUTTON1
    
final public static  intBUTTON2
     Indicates that the 2nd mouse button.
final public static  intBUTTON3
     Indicates that the 3rd mouse button.
final public static  intCTRL_DOWN_MASK
    
final public static  intMOD1_DOWN_MASK
    
final public static  intMOD2_DOWN_MASK
    
final public static  intMOD3_DOWN_MASK
    
final public static  intMOD4_DOWN_MASK
    
final public static  intNONE
     Indicates no modifiers or no buttons.
final public static  intSHIFT_DOWN_MASK
    
final public  intbutton
    
final public  intbuttons
    
final public  intmodifiers
    
final public  IMapDisplaysource
     The Viewport pane that raised the event.
final public  intstate
    
final public  longtimestamp
    
final public  intx
    
final public  inty
    

Constructor Summary
public  MapMouseEvent(IMapDisplay source, int x, int y, int modifiers, int buttons, int button)
     Construct MapMouseEvent.
Parameters:
  source - The object that raised the event
Parameters:
  x - the x position of the event
Parameters:
  y - the y position of the event
Parameters:
  modifiers - indicates what modifiers are down.

Method Summary
public  booleanbuttonsDown()
    
public  PointgetPoint()
     Returns the location of the event.
public  booleanisAltDown()
     Returns true if alt key is down.
public  booleanisControlDown()
     Returns true if control key is down.
public  booleanisModifierDown(int mask)
     Returns true if the modifier is down
See Also:   MapMouseEvent.CTRL_DOWN_MASK
See Also:   MapMouseEvent.ALT_DOWN_MASK
See Also:   MapMouseEvent.SHIFT_DOWN_MASK
See Also:   MapMouseEvent.MOD1_DOWN_MASK
See Also:   MapMouseEvent.MOD2_DOWN_MASK
See Also:   MapMouseEvent.MOD3_DOWN_MASK
See Also:   MapMouseEvent.MOD4_DOWN_MASK
Parameters:
  mask - the modifier to test for.
public  booleanisShiftDown()
     Returns true if shift key is down.
public  booleanmodifiersDown()
    

Field Detail
ALT_DOWN_MASK
final public static int ALT_DOWN_MASK(Code)
Indicates that the alt key is down



BUTTON1
final public static int BUTTON1(Code)
Indicates that the 1st mouse button, the left button on right handed mouses



BUTTON2
final public static int BUTTON2(Code)
Indicates that the 2nd mouse button.



BUTTON3
final public static int BUTTON3(Code)
Indicates that the 3rd mouse button.



CTRL_DOWN_MASK
final public static int CTRL_DOWN_MASK(Code)
Indicates that the ctrl key is down



MOD1_DOWN_MASK
final public static int MOD1_DOWN_MASK(Code)
Indicates that the mod1 key is down



MOD2_DOWN_MASK
final public static int MOD2_DOWN_MASK(Code)
Indicates that the mod2 key is down



MOD3_DOWN_MASK
final public static int MOD3_DOWN_MASK(Code)
Indicates that the mod3 key is down



MOD4_DOWN_MASK
final public static int MOD4_DOWN_MASK(Code)
Indicates that the mod3 key is down



NONE
final public static int NONE(Code)
Indicates no modifiers or no buttons.



SHIFT_DOWN_MASK
final public static int SHIFT_DOWN_MASK(Code)
Indicates that the shift key is down



button
final public int button(Code)
indicates the button that last changed



buttons
final public int buttons(Code)
All the buttons that are currently down ORed together



modifiers
final public int modifiers(Code)
All the key modifiers ORed together



source
final public IMapDisplay source(Code)
The Viewport pane that raised the event.



state
final public int state(Code)
The state consists buttons|modifiers



timestamp
final public long timestamp(Code)
the time the event occurred



x
final public int x(Code)
indicates the x position of the event



y
final public int y(Code)
indicates the y position of the event




Constructor Detail
MapMouseEvent
public MapMouseEvent(IMapDisplay source, int x, int y, int modifiers, int buttons, int button)(Code)
Construct MapMouseEvent.
Parameters:
  source - The object that raised the event
Parameters:
  x - the x position of the event
Parameters:
  y - the y position of the event
Parameters:
  modifiers - indicates what modifiers are down. Modifiers are ORed together
Parameters:
  buttons - indicates the buttons that are down. button ids are ORed together.
Parameters:
  button - the button that last changed




Method Detail
buttonsDown
public boolean buttonsDown()(Code)
Returns true if a button is down.



getPoint
public Point getPoint()(Code)
Returns the location of the event. the location of the event.
See Also:   Point



isAltDown
public boolean isAltDown()(Code)
Returns true if alt key is down. true if alt key is down.



isControlDown
public boolean isControlDown()(Code)
Returns true if control key is down. true if control key is down.



isModifierDown
public boolean isModifierDown(int mask)(Code)
Returns true if the modifier is down
See Also:   MapMouseEvent.CTRL_DOWN_MASK
See Also:   MapMouseEvent.ALT_DOWN_MASK
See Also:   MapMouseEvent.SHIFT_DOWN_MASK
See Also:   MapMouseEvent.MOD1_DOWN_MASK
See Also:   MapMouseEvent.MOD2_DOWN_MASK
See Also:   MapMouseEvent.MOD3_DOWN_MASK
See Also:   MapMouseEvent.MOD4_DOWN_MASK
Parameters:
  mask - the modifier to test for. true if modifier is down.



isShiftDown
public boolean isShiftDown()(Code)
Returns true if shift key is down. true if shift key is down.



modifiersDown
public boolean modifiersDown()(Code)
Returns true if a keyboard modifier is down.



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)

w___w_w.j_a___v__a_2__s__.___c___o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.