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


001:        /*
002:         * @(#)GraphModelEvent.java	1.0 03-JUL-04
003:         *
004:         * Copyright (c) 2001-2005 Gaudenz Alder
005:         *
006:         * See LICENSE file in distribution for licensing details of this source file
007:         */
008:        package org.jgraph.event;
009:
010:        import java.util.EventObject;
011:        import java.util.Map;
012:
013:        /**
014:         * Encapsulates information describing changes to a graph layout cache, and is
015:         * used to notify graph layout cache listeners of the change. Note that graph
016:         * layout cache events do not repeat information in graph model events if there
017:         * is no view specific information. The idea of this event is to provide
018:         * information on what has changed in the graph layout cache only.
019:         */
020:        public class GraphLayoutCacheEvent extends EventObject {
021:
022:            /**
023:             * The object that constitutes the change.
024:             */
025:            protected GraphLayoutCacheChange change;
026:
027:            /**
028:             * Used to create an event when cells have been changed, inserted, or
029:             * removed, identifying the change as a GraphLayoutCacheChange object.
030:             * 
031:             * @param source
032:             *            the Object responsible for generating the event (typically the
033:             *            creator of the event object passes <code>this</code> for its
034:             *            value)
035:             * 
036:             * @param change
037:             *            the object that describes the change
038:             */
039:            public GraphLayoutCacheEvent(Object source,
040:                    GraphLayoutCacheChange change) {
041:                super (source);
042:                this .change = change;
043:            }
044:
045:            /**
046:             * Returns the object that constitutes the change.
047:             * 
048:             * @return the object that constitutes the change
049:             */
050:            public GraphLayoutCacheChange getChange() {
051:                return change;
052:            }
053:
054:            /**
055:             * Defines the interface for objects that may be used to represent a change
056:             * to the graph layout cache.
057:             */
058:            public static interface GraphLayoutCacheChange {
059:
060:                /**
061:                 * Returns the source of this change. This can either be a view or a
062:                 * model, if this change is a GraphModelChange. Note: This is not
063:                 * necessarily the same as the source of the event and is used
064:                 * separately in the graphundomanager.
065:                 * 
066:                 * @return the source fo this change
067:                 */
068:                public Object getSource();
069:
070:                /**
071:                 * Returns the cells that have changed.
072:                 * 
073:                 * @return the cell changed
074:                 */
075:                public Object[] getChanged();
076:
077:                /**
078:                 * Returns the cells that have been inserted.
079:                 * 
080:                 * @return the cells that were inserted by the change
081:                 */
082:                public Object[] getInserted();
083:
084:                /**
085:                 * Returns the cells that have been removed.
086:                 * 
087:                 * @return the cells that were removed by the change
088:                 */
089:                public Object[] getRemoved();
090:
091:                /**
092:                 * Returns a map that contains (object, map) pairs which holds the new
093:                 * attributes for each changed cell. Note: This returns a map of (cell,
094:                 * map) pairs for an insert on a model that is not an attribute store.
095:                 * Use getPreviousAttributes to access the attributes that have been
096:                 * stored in the model.
097:                 */
098:                public Map getAttributes();
099:
100:                /**
101:                 * Returns a map that contains (object, map) pairs which holds the
102:                 * previous attributes for the changed cells.
103:                 * 
104:                 * @return map of attributes before the change
105:                 */
106:                public Map getPreviousAttributes();
107:
108:                /**
109:                 * Returns the objects that have not changed explicitly, but implicitly
110:                 * because one of their dependent cells has changed. This is typically
111:                 * used to return the edges that are attached to vertices, which in turn
112:                 * have been resized or moved.
113:                 * 
114:                 * @return array of contextual cells
115:                 */
116:                public Object[] getContext();
117:
118:            }
119:
120:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.