Source Code Cross Referenced for EventDispatcher.java in  » Graphic-Library » batik » org » apache » batik » gvt » event » 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.apache.batik.gvt.event 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:           Licensed to the Apache Software Foundation (ASF) under one or more
004:           contributor license agreements.  See the NOTICE file distributed with
005:           this work for additional information regarding copyright ownership.
006:           The ASF licenses this file to You under the Apache License, Version 2.0
007:           (the "License"); you may not use this file except in compliance with
008:           the License.  You may obtain a copy of the License at
009:
010:               http://www.apache.org/licenses/LICENSE-2.0
011:
012:           Unless required by applicable law or agreed to in writing, software
013:           distributed under the License is distributed on an "AS IS" BASIS,
014:           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015:           See the License for the specific language governing permissions and
016:           limitations under the License.
017:
018:         */
019:        package org.apache.batik.gvt.event;
020:
021:        import java.awt.event.InputEvent;
022:        import java.awt.geom.AffineTransform;
023:        import java.util.EventListener;
024:        import java.util.EventObject;
025:
026:        import org.apache.batik.gvt.GraphicsNode;
027:
028:        /**
029:         * Interface for receiving and dispatching events down to a GVT tree.
030:         *
031:         * <p>Mouse events are dispatched to their "containing" node (the
032:         * GraphicsNode corresponding to the mouse event coordinate). Searches
033:         * for containment are performed from the EventDispatcher's "root"
034:         * node.</p>
035:         *
036:         * @author <a href="mailto:bill.haneman@ireland.sun.com">Bill Haneman</a>
037:         * @author <a href="mailto:tkormann@ilog.fr">Thierry Kormann</a>
038:         * @version $Id: EventDispatcher.java 475477 2006-11-15 22:44:28Z cam $ */
039:        public interface EventDispatcher {
040:
041:            /**
042:             * Sets the root node for MouseEvent dispatch containment searches
043:             * and field selections.
044:             * @param root the root node
045:             */
046:            void setRootNode(GraphicsNode root);
047:
048:            /**
049:             * Returns the root node for MouseEvent dispatch containment
050:             * searches and field selections.
051:             */
052:            GraphicsNode getRootNode();
053:
054:            /**
055:             * Sets the base transform applied to MouseEvent coordinates prior
056:             * to dispatch.
057:             * @param t the affine transform
058:             */
059:            void setBaseTransform(AffineTransform t);
060:
061:            /**
062:             * Returns the base transform applied to MouseEvent coordinates prior
063:             * to dispatch.
064:             */
065:            AffineTransform getBaseTransform();
066:
067:            /**
068:             * Dispatched the specified event object.
069:             *
070:             * <p>Converts the EventObject to a corresponding GraphicsNodeEvent
071:             * and dispatch it to the appropriate GraphicsNode(s). If the
072:             * event is a MouseEvent the dispatch is performed to each
073:             * GraphicsNode which contains the MouseEvent coordinate, until
074:             * the event is consumed. If the event is a KeyEvent, it is
075:             * dispatched to the currently selected GraphicsNode.</p>
076:             *
077:             * @param e the event to dispatch
078:             */
079:            void dispatchEvent(EventObject e);
080:
081:            //
082:            // Global GVT listeners support
083:            //
084:
085:            /**
086:             * Adds the specified 'global' GraphicsNodeMouseListener which is
087:             * notified of all MouseEvents dispatched.
088:             * @param l the listener to add
089:             */
090:            void addGraphicsNodeMouseListener(GraphicsNodeMouseListener l);
091:
092:            /**
093:             * Removes the specified 'global' GraphicsNodeMouseListener which is
094:             * notified of all MouseEvents dispatched.
095:             * @param l the listener to remove
096:             */
097:            void removeGraphicsNodeMouseListener(GraphicsNodeMouseListener l);
098:
099:            /**
100:             * Adds the specified 'global' GraphicsNodeMouseWheelListener which is
101:             * notified of all MouseWheelEvents dispatched.
102:             * @param l the listener to add
103:             */
104:            void addGraphicsNodeMouseWheelListener(
105:                    GraphicsNodeMouseWheelListener l);
106:
107:            /**
108:             * Removes the specified 'global' GraphicsNodeMouseWheelListener which is
109:             * notified of all MouseWheelEvents dispatched.
110:             * @param l the listener to remove
111:             */
112:            void removeGraphicsNodeMouseWheelListener(
113:                    GraphicsNodeMouseWheelListener l);
114:
115:            /**
116:             * Adds the specified 'global' GraphicsNodeKeyListener which is
117:             * notified of all KeyEvents dispatched.
118:             * @param l the listener to add
119:             */
120:            void addGraphicsNodeKeyListener(GraphicsNodeKeyListener l);
121:
122:            /**
123:             * Removes the specified 'global' GraphicsNodeKeyListener which is
124:             * notified of all KeyEvents dispatched.
125:             * @param l the listener to remove
126:             */
127:            void removeGraphicsNodeKeyListener(GraphicsNodeKeyListener l);
128:
129:            /**
130:             * Returns an array of listeners that were added to this event
131:             * dispatcher and of the specified type.
132:             * @param listenerType the type of the listeners to return
133:             */
134:            EventListener[] getListeners(Class listenerType);
135:
136:            /**
137:             * Associates all InputEvents of type <tt>e.getID()</tt>
138:             * with "incrementing" of the currently selected GraphicsNode.
139:             */
140:            void setNodeIncrementEvent(InputEvent e);
141:
142:            /**
143:             * Associates all InputEvents of type <tt>e.getID()</tt>
144:             * with "decrementing" of the currently selected GraphicsNode.
145:             * The notion of "currently selected" GraphicsNode is used
146:             * for dispatching KeyEvents.
147:             */
148:            void setNodeDecrementEvent(InputEvent e);
149:
150:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.