Source Code Cross Referenced for GraphModelEvent.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:
012:        import org.jgraph.graph.CellView;
013:        import org.jgraph.graph.ConnectionSet;
014:        import org.jgraph.graph.GraphLayoutCache;
015:        import org.jgraph.graph.ParentMap;
016:
017:        /**
018:         * Encapsulates information describing changes to a graph model, and is used to
019:         * notify graph model listeners of the change.
020:         * 
021:         * @author Gaudenz Alder
022:         * @version 1.0 1/1/2
023:         *  
024:         */
025:
026:        public class GraphModelEvent extends EventObject {
027:
028:            /**
029:             * The object that constitutes the change.
030:             */
031:            protected GraphModelChange change;
032:
033:            /**
034:             * Used to create an event when cells have been changed, inserted, or
035:             * removed, identifying the change as a ModelChange object.
036:             * 
037:             * @param source
038:             *            the Object responsible for generating the event (typically the
039:             *            creator of the event object passes <code>this</code> for its
040:             *            value)
041:             * @param change
042:             *            the object that describes the change
043:             * @see org.jgraph.graph.GraphCell
044:             *  
045:             */
046:            public GraphModelEvent(Object source, GraphModelChange change) {
047:                super (source);
048:                this .change = change;
049:            }
050:
051:            /**
052:             * Returns the object that constitutes the change.
053:             * 
054:             * @return the object that constitutes the change.
055:             */
056:            public GraphModelChange getChange() {
057:                return change;
058:            }
059:
060:            /**
061:             * Defines the interface for objects that may be included into a
062:             * GraphModelEvent to describe a model change.
063:             */
064:            public static interface GraphModelChange extends
065:                    GraphLayoutCacheEvent.GraphLayoutCacheChange {
066:
067:                /**
068:                 * Returns a connection set representing the graph structure after the
069:                 * change was applied
070:                 * 
071:                 * @return the connection set of the graph after the change
072:                 */
073:                public ConnectionSet getConnectionSet();
074:
075:                /**
076:                 * Returns a connection set representing the graph structure before the
077:                 * change was applied ( an "undo" of the change).
078:                 * 
079:                 * @return the connection set of the graph before the change
080:                 */
081:                public ConnectionSet getPreviousConnectionSet();
082:
083:                /**
084:                 * Returns a parent map representing the group structure after the
085:                 * change was applied
086:                 * 
087:                 * @return the changed parent map
088:                 */
089:                public ParentMap getParentMap();
090:
091:                /**
092:                 * Returns a parent map representing the group structure before the
093:                 * change was applied ( an "undo" of the change )
094:                 * 
095:                 * @return the previous parent map
096:                 */
097:                public ParentMap getPreviousParentMap();
098:
099:                /**
100:                 * Allows a <code>GraphLayoutCache</code> to store cell views for
101:                 * cells that have been removed. Such cell views are used for
102:                 * re-insertion and restoring the visual attributes.
103:                 * 
104:                 * @param view
105:                 *            the <code>GraphLayoutCache</code> to store the removed
106:                 *            cells
107:                 * @param cellViews
108:                 *            the cell views to be stored
109:                 */
110:                public void putViews(GraphLayoutCache view, CellView[] cellViews);
111:
112:                /**
113:                 * Allows a <code>GraphLayoutCache</code> to retrieve an array of
114:                 * <code>CellViews</code> that was previously stored with
115:                 * <code>putViews(GraphLayoutCache, CellView[])</code>.
116:                 * 
117:                 * @param view
118:                 *            the <code>GraphLayoutCache</code> whose stored cells are
119:                 *            to be retrieved
120:                 */
121:                public CellView[] getViews(GraphLayoutCache view);
122:
123:            }
124:
125:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.