ViewVC logotype

Annotation of /libjgraph-java/trunk/WHATSNEW

Parent Directory Parent Directory | Revision Log Revision Log

Revision 443 - (hide annotations)
Sat Nov 25 17:52:34 2006 UTC (14 years, 5 months ago) by gregoa
File size: 31287 byte(s)
[svn-inject] Forking libjgraph-java source to Trunk
1 gregoa 441 Changes from JGraph to JGraph
2     =============================================
4     In addition to supporting an image on the background, a Component may now be
5     drawn as the JGraph background for applications such as mapping. Some
6     performance improvements have been made in the GraphLayoutCache relating to
7     making cells invisible. In the model there have also been performance
8     improvements around the functionality that removes cells.
10     Changes from JGraph to JGraph
11     =============================================
13     This release adds support for a background image that is refreshed during
14     all necessary drag, resize, and model change events.
16     Changes from JGraph to JGraph
17     =============================================
19     Double buffering in JGraph previously consisted of off-screen buffers created
20     in the root handles and size handles to buffer drag-and-resize previews on a
21     per-case basis. However, the review buffered the entire graph image, so
22     recreating the buffer on each operation was expensive in CPU terms. The
23     off-screen buffer and off-screen graphics that are the graphics object of
24     the buffer have been moved to the JGraph class. Also, the cachedLabelBounds
25     and cachedExtraLabelBounds variables in EdgeView were never set (since
26     getLabelBounds() and getExtraLabelBounds() were never called) and have been
27     removed.
29     Changes from JGraph to JGraph
30     =============================================
32     A bug has been fixed where removing the user object did not action correctly.
33     This has been fixed with an additional check in handleAttributes() in
34     DefaultGraphModel. Also added is the getInsertionOffset() hook in
35     GraphTransferHandler to enable positioning of cloned cells without copying
36     the entire importData() method. Finally, a possible NPE
37     in EdgeRenderer.getLabelPosition() has been enclosed in all the necessary
38     null checks.
40     Changes from JGraph to JGraph
41     =============================================
43     Serialization of the WeakHashMap in the GraphLayoutCache has been resolved
44     by adding custom write and read methods. Scaling the graph now is centered
45     correctly and a new setScale method is available to zoom to a custom point.
46     The edgeLabelMovable switch was added to the JGraph class to allow dragging
47     of edge labels to be optionally disabled. There were a number of other minor
48     bug fixes.
50     Changes from JGraph to JGraph
51     =============================================
53     The graph variable in EdgeRenderer has been replaced with a weak reference
54     to ensure that static edge renderers release their reference to the current
55     graph when all other objects do. Also, an example showing the use of a custom
56     cell view factory and an example showing a selection model being synchronized
57     between a graph and a tree were added to the examples package.
59     Changes from JGraph to JGraph
60     =============================================
62     This release adds the PREVIEW_EDGE_GROUP global switch to the GraphContext
63     class, which makes the preview of edge with children optional. A
64     CompoundVertexView example has been added to GraphEd to allow groups to be
65     resized independently of their children (thanks Jerry). The graphics object
66     in JGraph.getImage is manually disposed of to clean up resources quicker.
68     Changes from JGraph to JGraph
69     =============================================
71     A bug fix to a performance improvement made to the default graph model in
72 was required. Fixed ports that connected to floating ports were
73     connecting to the wrong perimeter position on the floating port, this is
74     now resolved. The "port magic" functionality that moves ports to attempt
75     to straighten edges was incorrectly using the mouse position, it now no
76     longer does so.
78     Changes from JGraph to JGraph
79     =============================================
81     A number of performance improvements were made in specific areas, mostly
82     related to lazy instantiation and correct sizing of collections. addPort()
83     was added to DefaultGraphCell to make creating ports easier. hiddenMapping
84     in the GraphLayoutCache is now a WeakHashMap to avoid any possible memory
85     leaks when cells are deleted. Also, in the GraphLayoutCache a helper method,
86     removeViewLocalAttribute(), assists in the process of removing view local
87     attributes and copying them into the model if required. A version of
88     getPortViewAt with a custom tolerance was added to the JGraph class.
90     Changes from JGraph to JGraph
91     =============================================
93     Fixes occasional wrong index when adding new control points to edges, fixes
94     selection check uses cell view in mouse handle, adds marquee handler as an
95     optional serializable field to JGraph and the listener list in the layout cache
96     is no longer transient. GraphEd adds new hooks for subclassers and new examples
97     for serialization and XML encoding have been added to the commercial version.
99     Changes from JGraph to JGraph
100     =============================================
102     A number of changes were made to resolve various serialization issues. The use
103     of transient modifiers was reviewed throughout the code. A problem were undos
104     of cuts of groups could behave incorrectly was corrected. Various hooks for
105     the example code were added.
107     Changes from JGraph to JGraph
108     =============================================
110     Fixes an issue with artifacts being left on the display when cells are dragged.
112     Changes from JGraph 5.7.4 to JGraph
113     ===========================================
115     An automatic resizing feature has been added so the graph expands as you drag
116     out of the bottom or right-hand edges of a scroll pane. An appropriate flag,
117     autoResizeGraph, to toggle the functionality have been added to the JGraph.
118     A bug in the new collapse/expand example, GraphEdX, was fixed. The JGraph
119     User Manual has received a number of corrections and the sections on XML
120     encoding, image and SVG export and use in a headless environment have been
121     improved.
123     Changes from JGraph to JGraph 5.7.4
124     ===========================================
126     The DefaultCellViewFactory is now Serializable, so serializing the main part
127     of the core should work correctly. Some example code from JGraph Layout Pro
128     has been moved into the new GraphEdX example, this includes an XML encoding/
129     decoding example and how to create collapsible groups of cells. The image
130     creation utility method in JGraph has been changed to use print instead of
131     paint to draw graphics, this make certain server-side operations easier and
132     more efficient. Also, a number of minor bugs have been fixed.
134     Changes from JGraph 5.7.3 to JGraph
135     ===========================================
137     The release fixes a critical bug whereby the initialisation ordering of
138     certain static variables was not deterministic and could caused editing
139     to always fail.
141     Changes from JGraph 5.7.2 to JGraph 5.7.3
142     =========================================
144     Adds helper methods, fixes problems in headless environments, allows combined
145     insert/removes/edits in DefaultGraphModel, adds switch to disable port magic.
147     Changes from JGraph 5.7.1 to JGraph 5.7.2
148     =========================================
150     Fixes handling of connectable attribute for edges, sizeable- & moveable axis
151     for groups. Fixes bugs for group translation and sizing, makes cloneCells
152     more stable and fixes the label position for non-loops with multiple points.
154     Changes from JGraph 5.7 to JGraph 5.7.1
155     =======================================
157     Fixes a bug in the attribute map cloning for extra label positions, adds a new
158     helper method to collapse/expand cells, adds automatic resizing and moving of
159     parent cells on collapse and switches to (not) show hidden cells on changes.
161     Changes from JGraph 5.6.3 to JGraph 5.7
162     =======================================
164     The routing interface has changed so that the routing methods now return a list
165     of points instead of accepting a list of points as a parameter. The routing of
166     loops has been separated from the non-loop implementation for the default case
167     so that it is easier to create a new routing implementation and inherit the
168     default loop routing algorithm. Children cells moved as part of a collapsed
169     group now are moved when the parent cell is, if required, using the
170     movesChildrenOnExpand flag.
172     Changes from JGraph to JGraph 5.6.3
173     ===========================================
175     The default vertex and port renderers kept references to the last graph used
176     and this meant that removed JGraph instances could have a static memory
177     footprint. The edge renderer still needs to be removed, however. Edges may
178     now be painted with zero width, so you only see the label. The tolerance in
179     JGraph.getNextViewAt is now scaled according to the current zoom value.
181     Changes from JGraph 5.6.2 to JGraph
182     ===========================================
184     Fixed critical bug in attribute map undo.
186     Changes from JGraph 5.6.1 to JGraph 5.6.2
187     ==========================================
189     Added User Manual to commercial distribution.
191     Changes from JGraph 5.6 to JGraph 5.6.1
192     ==========================================
194     getSelectionCellAt was added as a utility method to JGraph and returns the first
195     selected cell whose bounds the parameter point lies within. The moves-into-group
196     functionality has been corrected so it is based on whether the cells bounds
197     is fully within the bounds of the group cell. Extra labels can now be cloned
198     using ctrl-drag and deleted using shift and mouse press. A bounds cloning bug
199     in JGraph.getCellBounds that caused cells to have a large height occasionally
200     was fixed. getPerimeterPoint for an EdgeView now returns the center of the
201     edge to make edge to edge connection easier. A number of other bugs were also
202     fixed.
204     Changes from JGraph 5.5.3 to JGraph 5.6
205     ==========================================
207     A number of improvements have been made to the expand and collapse
208     functionality. When a group is collapsed edges connecting to now-hidden
209     vertices _visually_ attach to the perimeter point of the first visible
210     parent group. Expanding the group shows the true state of connections again.
211     It is now possible to connect edges directly to other edges.
212     A large number of other bug fixes and functionality improvements were also
213     made, see the ChangeLog for more details.
215     Changes from JGraph 5.5.2 to JGraph 5.5.3:
216     ==========================================
218     The main JGraph class now has switches named moveIntoGroups and moveOutOfGroups
219     that enable drag and drop of cells in and out of group cells. The getImage
220     method was added to make the creation of images of JGraphs easier. A selection
221     of helper methods were added and a number of minor bugs fixed.
222     GraphModel.getValue was added and DefaultGraphModel.getUserObject deprecated.
224     Changes from JGraph 5.5.1 to JGraph 5.5.2:
225     ==========================================
227     Adds a series of constructors and hooks to ease customization, fixes port
228     floating for loops, adds encoding hooks to the default graph model, fixes
229     auto-selection in the examples, adds hooks for vertex rendering and fixes
230     a bug related to finding default ports with overlapping cells.
232     Changes from JGraph 5.5 to JGraph 5.5.1:
233     ==========================================
235     This release makes a number of performance and memory footprint improvements,
236     in particular, in relation to edges. A number of hooks have been added to make
237     it possible to disable various functionality to obtain performance
238     improvements. Various examples and documents were added to the purchased
239     version. Also, a number of minor bugs were fixed and code tidy-ups performed.
241     Changes from JGraph 5.4.7 to JGraph 5.5:
242     ==========================================
244     valueForCellChanged() has been added to the GraphModel interface to enable
245     changing the value of the cell without performing typecasts. Edge labels that
246     cross into negative co-ordinate space are moved into back into the visible area
247     and in-place editing cannot now occur off the screen. Labels on self-references
248     can now be moved. Various casts and type checks were added and various minor
249     bugs fixed.
251     Changes from JGraph 5.4.6 to JGraph 5.4.7:
252     ==========================================
254     Another review of the javadocs was made on the frozen 5.4.x API. Various
255     changes were made to resolve issues with edges whose source and target are
256     ports on the same vertex. Labels on such edges can now be moved and the
257     routing functionality has been corrected. PortView.getLocation now has an
258     additional parameter to support these changes, but no methods have been
259     removed from the API.
261     Changes from JGraph 5.4.5 to JGraph 5.4.6:
262     ==========================================
264     Since the JGraph API has been frozen in the 5.4.x series for stability,
265     the first review of many of the javadocs was undertaken. All warnings were
266     removed and various corrections and updates made. A divide by zero bug
267     was fixed where the label position of an edge is calculated. If the source
268     and target ports were the same port the zero length between the ports
269     went into a calculation as the divisor. This was changed to simply return
270     the label position as being on the port. The helper method
271     GraphLayoutCache.createNestedMap was added and AbstractCellView changed so
272     that it clones cell attributes in the refresh method.
274     Changes from JGraph 5.4.4 to JGraph 5.4.5:
275     ==========================================
277     Fixes major bugs in edge handle for correct handling of model callbacks and
278     placement of labels on scaled graphs, initial label bounds for extra labels,
279     adds a helper method to JGraph and fixes the DefaultEdge.clone method.
281     Changes from JGraph 5.4.3 to JGraph 5.4.4:
282     ==========================================
284     Adds new helper methods in GraphLayoutCache and GraphConstants, improves edge
285     renderer performance, fixes bugs in BasicGraphUI.MouseHandler, GraphEd.connect,
286     adds graph-parameter in BasicMarqueeHandler.paint and overlay.
288     Changes from JGraph 5.4.2 to JGraph 5.4.3:
289     ==========================================
291     Uses new edge labels, reduces memory footprint, fixes bug in layout cache to
292     reload roots, fixes some minor bugs, new cell labels in GraphEd.
294     Changes from JGraph 5.4.1 to JGraph 5.4.2:
295     ==========================================
297     Minor performance ehancements and bug fixes, makes the GraphEd example an
298     applet and adds more hooks.
300     Changes from JGraph 5.4 to JGraph 5.4.1:
301     ========================================
303     Adds performance improvements, new helper methods and hooks in GraphEd, changes
304     variable namings, uses insets in getPreferredSize, adds default inset in
305     GraphConstants and fixes possible orphan ports and other minor bugs.
307     Changes from JGraph 5.3.2 to JGraph 5.4:
308     ========================================
310     Adds event notification to GraphLayoutCache, removes user object from attribute
311     maps, adds various helper methods, adds selection and size-control attributes,
312     adds Abbott-bases tests and fixes numerous bugs.
314     Changes from JGraph 5.3 to JGraph 5.3.2:
315     ========================================
317     Fixes major bugs, improved automatic cell showing/hiding in layout cache,
318     adds more helper methods to model and cache, refactors updateAutoSize and
319     ignores possible NPE in BasicGraphUI.createHandle.
321     Changes from JGraph 5.2.1 to JGraph 5.3:
322     ========================================
324     Adds helper methods to layout cache and graph model, fixes bugs in splines,
325     edge- & portviews, moves transferhandler to its own class, makes rectangles
326     and points xml encodable, general performance improvements.
328     Changes from JGraph 5.2 to JGraph 5.2.1:
329     ========================================
331     Adds new switches, re-enables auto selection, objects ready for XML encoding,
332     major bug fixes for partial layout caches, adds new utility methods to
333     layout cache and graph model, minor API changes.
335     Changes from JGraph 5.1 to JGraph 5.2:
336     ======================================
338     Uses a triple license model (MPL added), has major API changes such as removed
339     dependencies for cell views and layout caches, enhanced setup for extra edge
340     labels, extended observable pattern, new cell view factory, and many bug fixes.
343     Changes from JGraph 5.0.4 to JGraph 5.1:
344     ========================================
346     Adds multiple edge labels, jump to default port, fixes constrained edge
347     editing, new cell selection, allows edges as groups, unifies parameter scaling,
348     cell & cellview order, adds group border attribute, and various helper methods.
351     Changes from JGraph 5.0.3 to JGraph 5.0.4:
352     ==========================================
354     Keeps user objects and attributes in sync, fixes flickering edge connection,
355     class cast exception in example code, changes default group border to 20px.
358     Changes from JGraph 5.0.2 to JGraph 5.0.3:
359     ==========================================
361     Added opaque groups with group borders, fixed handling of in-place
362     edit and cloning for custom user objects, fixed minor bugs.
365     Changes from JGraph 5.0.1 to JGraph 5.0.2:
366     ==========================================
368     Added edge renderer gradient painting mode, fixed some minor bugs.
371     Changes from JGraph 5.0 to JGraph 5.0.1:
372     ========================================
374     Added switches for autosize on value change, disable cell selection, dash
375     offset for edges, gradient background for vertices, per-axis relative or
376     absolute port positions, fixed acceptsSource/Target and preview, fixed
377     attribute map storage and transport separation, and cleaned up code and
378     added more hooks for subclassers.
381     Changes from JGraph 4.0 to JGraph 5.0:
382     ======================================
384     Switched to dual licensing model. Fixed some bugs.
387     Changes from JGraph 3.4.1 to JGraph 4.0:
388     ========================================
390     - Replaced ValueChangeHandler with GraphLayoutCache.valueForCellChanged
391     - Moved createPoint, createRect to AttributeMap
392     - Added AttributeMap, factory method in GraphModel
393     - Fixed GraphEd add/remove point with shift
394     - Replaced Map with AttributeMap (major API change)
397     Changes from JGraph 3.4 to JGraph 3.4.1:
398     ========================================
400     Disables some default behaviour, allows spline and bezier edges
401     with an arbitrary number of control points, fixes minor bugs.
404     Changes from JGraph 3.3 to JGraph 3.4:
405     ======================================
407     Can handle overlapping edges, makes inner handles static,
408     moves some control methods to handles. Minor API changes.
411     Changes from JGraph 3.2 to JGraph 3.3:
412     ======================================
414     Supports view-local attributes, sizeable in-place editors, sizing
415     and moving along one axis, and offers a series of minor
416     API changes and bug fixes. Includes latest examples.
419     Changes from JGraph 3.1 to JGraph 3.2:
420     ======================================
422     Can draw labels along edges, uses double precision coordinates, fixes handling
423     of negative coordinates and in-place editing, adds map to default graph model.
426     Changes from JGraph 3.0 to JGraph 3.1:
427     ======================================
429     Ant-based build environment. BSD-style license. A series of bug fixes and minor
430     API changes.
433     Changes from JGraph 2.2.2 to JGraph 3.0:
434     ========================================
436     This is a package renaming change and directory cleanup. More changes for 3.x
437     are planned.
440     Changes from JGraph 2.2.1 to JGraph 2.2.2:
441     ==========================================
443     This release fixes major bugs in the clipboard, as well as the ordering
444     of cells in the clipboard, and adds a hook in the EdgeRenderer class.
448     Changes from JGraph 2.2 to JGraph 2.2.1:
449     ========================================
451     This is a bug fix release that fixes a bug in the clipboard. Some minor
452     API changes go with this release..
456     Changes from JGraph 2.1.1 to JGraph 2.2:
457     ========================================
459     Painting performance improvements, cleaned up API, removed dependency
460     between ParentMap and GraphModel, added clone method, added methods to
461     access the previous state of the model after a change, new vertex
462     renderer constructor, and numerous bug fixes.
466     Changes from JGraph 2.1 to 2.1.1
467     ================================
469     Minor changes such as bean property methods and empty constructor added to
470     ConnectionSet for XMLEncoding, added Null-Check to isCellEditable, fixed
471     shared points bug in DefaultEdge, disable autosize during in-place edit.
474     Changes from JGraph 2.0 to 2.1
475     ==============================
477     Moved all GraphCell dependencies to the GraphModel, added multiple grid styles,
478     new font attribute, and the API is now ready for combined port/vertex cells.
479     Bug fixes include improved live-preview, better zoom/grid integration, handling
480     of negative coordinates, and minor bug fixes. Java 1.4 is the default version.
484     Changes from JGraph 1.0.7 to 2.0
485     ================================
487     This release has a new API with new features. The get an overview of the
488     most important changes and how they affect your code you should read the
489     "New Features" and "Upgrading from 1.0.x" chapters.
491     New Features:
492     -------------
494     * Cell Visiblity:
495     The GraphView, which is now called GraphLayoutCache offers a set of methods
496     to show/hide cells, namely the setVisible method. This method fully supports
497     undo/redo and in contrast to the earlier implementation using the visible
498     attribute, this implementation does not allocate memory for invisible cells
499     in a cache. The GraphLayoutCache contains built-in functions to automatically
500     show edges between visible cells. When inserting and editing cells in a
501     partial view, that is, one that does not show all cells of the model, then
502     you should use the GraphLayoutCache's insert and edit method to allow the
503     view to make the cells automatically visible (this way, the cell becomes
504     visible in the view where is was inserted. The view (aka. cache) can be set
505     up to insert new edges automatically in all views where the source and target
506     ports are visible.
507     Use the following GraphLayoutCache members to control automatic display:
508     - showAllEdgesForVisibleVertices: Show edges on insert or change if their
509     source and target vertex is visible
510     - showEdgesOnShow: Show edges if their source and target vertex is displayed
511     - hideEdgesOnHide: Hide edges if their source and target vertex is hidden
512     - hideEdgesOnBecomeInvisible: Hide edges if their source and target becomes
513     invisible (for example after removal)
514     These members are set to true by default.
515     Note: This feature allows to implement collapse/expand of groups.
517     * View-Local Attributes:
518     In the 1.0.x version, the GraphModel decided if it was an attribute store by
519     use of the isAttributeStore method. In 2.0.x, it is the view who decides
520     which attributes are view-local and which are global. Also, the edit method
521     can now be called with a single attribute map that uses cells as the keys.
522     The GraphLayoutCache provides a hook for subclassers, namely the
523     createLocalEdit method to implement attribute splitting. The CellView's
524     implementation was changed to override the global attributes with the
525     view-local ones for. To enable this feature the code must use the
526     GraphLayoutCache's edit, insert and remove methods instead of the model's.
527     The view analyzes these method arguments, and extracts the view-local
528     attributes before updating the model for the change.
529     Note: This new feature allows more fine-grained control of view-local and
530     global attributes. By removing the isAttributeStore and isOrdered methods
531     it is not any more required that the model is aware of this feature. The
532     ROUTING and POINTS attributes should be kept at the same location.
533     Tip: Use GraphLayoutCache.rememberCellViews to control if view-local
534     attributes should be remembered for hidden cells.
536     * Edge Routing & Self References:
537     A new attribute ROUTING was added that is interpreted by the EdgeView. The
538     values for this key must implement the Edge.Routing interface, which extends
539     the Serializable interface. The GraphConstants class provides a static instance
540     ROUTING_SIMPLE of the DefaultEdge.DefaultRouting class. As the name implies this
541     is the default implementation of the Routing interface. It allows simple routing
542     and handles self-references.
544     * Smaller Command History:
545     The command history does only store the actual change, resulting in a smaller
546     command history. In earlier versions, the complete state of all changed cells
547     and views was stored.
550     API Changes:
551     ------------
552     (Only the most important changes are listed below.)
554     Removed Members:
555     * GraphConstants.createPropertyMap
556     * GraphModel.isOrdered
557     * GraphModel.isAttributeStore
558     * GraphConstants.is/setVisible
559     * CellRenderer.supportsAttribute
560     * AbstractCellView.isControlAttribute
562     New members:
563     * BasicGraphUI.is/setSnapSelectedView
564     A view under mousepointer may be snapped to the grid lines or moved by a
565     constant increment during a drag operation based on this value.
566     * Edge.Routing
567     * GraphConstants.ROUTING_SIMPLE
568     * DefaultEdge.DefaultRouting class
569     * GraphConstants.get/setRouting
570     * GraphConstants.createAttributes
571     This is a helper method that may be used to create an attribute map
572     * GraphLayoutCache.reset, is/setVisible, partial, ordered
573     * DefaultGraphModel.getSource/TargetVertex
574     Static helper method that calls getParent(getSource/Target) on the model
575     * GraphLayoutCache.hiddenSet
576     Used to remember local attributes of visible cells
577     * JGraph.VERSION (use JGraph -version)
578     * VertexRenderer.paintSelectionBorder
579     Provided for subclassers to control drawing the selection border
580     * VertexRenderer.is/setHideGroups
581     Controls whether groups are fully painted by the renderer
582     * Provide a handleEditTrigger Hook in BasicGraphUI.MouseHandler
584     Changes:
585     * GraphView renamed to GraphLayoutCache
586     In accordance with JTree.TreeLayoutCache
587     * JGraph.get/setView renamed to JGraph.get/setGraphLayoutCache
588     To reflect this change
589     * JGraph.SnapSize renamed to Tolerance (including getter, setter etc.)
590     * JGraph.convertValueToString support view-local values
591     The CellView decides what label to display
592     * DefaultGraphCell.setAttributes renamed to changeAttributes
593     Setter and getter methods should be used for bean properties.
594     * Port.add/remove renamed to Port.addEdge/removeEdge
595     (see http://sourceforge.net/forum/forum.php?thread_id=773281&forum_id=140880)
596     * GraphConstants.ARROW prefix added to arrow styles
597     * GraphConstants.STYLE prefix added to line styles
598     * getPerimterPoint method was moved to the renderer
599     * GraphViewChange.getAttributeMap renamed to getAttributes
600     * GraphModelChange.getStoredAttributeMap renamed to getPreviousAttributes
601     * DefaultGraphModel.handlePropertyMap renamed to handleAttributes
602     * importData may return false to signal sender to not remove cells
603     (Override importDataImpl instead of importData in GraphTransferHandler)
604     * DefaultGraphSelectionModel.isChildrenSelectable now supports a cell argument
605     * GraphLayoutCache.toBack/toFront take cells as arguments
606     * GraphModel.insert and edit Argument order unified
609     Fixed bugs:
610     -----------
612     * Rounding erros on large zoom levels removed:
613     The BasicGraphUI.RootHandles implementation did not work property for
614     large zoom levels. Thanks to Jenya for the patch!
615     * The maximum number of edges to paint in live-preview is now MAXCELLS
616     * EdgeHandle does now support the SHIFT-key for constrained moving
617     * Added some accessor methods to BasicMarqueeHandler for subclassers
618     * BasicGraphUI.PropertyChangeListener calls repaint after GraphLayoutCache change
619     * JGraph.setGraphLayoutCache checks and updates the cache's model if necessary
620     * Vertices are not removed when their last port is removed dynamically
621     Groups are still automatically removed when their last child cell is removed
622     * EdgeRenderer now cached the created Shape in the corresponding EdgeView
623     * BasicGraphUI.isDescendant uses GraphModel interface to return its data
624     * Live preview during real DND (only for JDK < 1.4.0, see BasicGraphUI line 28)
625     * DefaultEdge.constructor offers user object und boolean (allows children)
626     * JGraph.disconnectOnMove must check the CONNECTABLE/DISCONNECTABLE attributes
627     * Vertex, Port and Edge may carry the CONNECTABLE/DISCONNECTABLE attributes
628     * NPE on edge change when new the port was not visible in other view removed
629     * Groups may contain ports (Concurrency side-effects in EdgeRenderer.createShape)
630     * Cache the bounds property of groups and recompute on change of children only
631     * GetBounds-Infinite-Loop solved by exluding childedges between childs to group
632     * Propagate CellView.update to parent instead of child (bubble up)
633     * TransferHandler now supports move and DnD across multiple views, models and JVMS
634     * Clone edges when reconnected and the Control key is pressed
635     * ExecutableGraphChange interface added to execute all changes in model (Delegation)
636     Also the GraphLayoutCache's changes are executed and dispatched by the model
637     * In-place editing from empty to non-empty content is incorrectly undone
638     * Removed in-place manipulation of BOUNDS-attribute in SizeHandle and RootHandle
639     * Changed execution order of compound edits: first model then args in-order
640     * Use GraphModel interface in DefaultGraphModel.getRoots only (no typecast)
641     * GraphLayoutCache.getMapping may return null (if cell is not visible)
642     * GraphUndoManager.redo throws CannotRedoException instead of CannotUndoException
643     * Handles.initOffscreen is protected instead of package private
646     Other changes:
647     --------------
649     * To-do list added:
650     A new to-do list for JGraph was added. The list is intended for developers
651     as a roadmap for additional features, examples and research activities.
652     * Version Naming Changed:
653     The new version naming uses Swiss cities, where each City denotes a major
654     release of the API. This means, all JGraph 2.0.x are said to be based on
655     the Geneva API.
656     * New JGraphpad Administrator:
657     Please welcome Van Woods as the new JGraphpad administrator!
658     See http://sourceforge.net/forum/message.php?msg_id=1833812
659     * JGraphpad updated:
660     JGraphpad ported to JGraph 2.0. Release date is later this week.
661     * Examples updated:
662     All example have been updated to use JGraph 2.0. Currently, the examples are
663     only available for download. The CVS repository still contains the old code.
664     * Website updated:
665     Many minor changes and updates on the website. Main changes include an
666     optional license fee and donate button, a new banner and some additional
667     links in the showcase etc.
670     Upgrading from 1.0.x:
671     ---------------------
673     Here is an example. Please note the following in the example below:
675     => We use Cells as keys to create the nested map instead of CellViews
676     => We use the GraphLayoutCache's edit method instead of the model's
677     => The order of the edit/insert method's arguments has changed
678     => We use graph.getLayoutCache instead of graph.getView
680     * JGraph 1.0.x:
682     if (!graph.getModel().isAttributeStore())
683     cells = getView().getMapping(cells);
684     Map viewMap = new Hashtable();
685     for (int i = 0; i < cells.length; i++)
686     viewMap.put(cells[i], GraphConstants.cloneMap(map));
687     if (graph.getModel().isAttributeStore())
688     graph.getModel().edit(null, viewMap, null, null);
689     else
690     graph.getView().edit(viewMap);
692     * JGraph 2.0.x (Geneva Code):
694     Map nested = new Hashtable();
695     for (int i = 0; i < cells.length; i++)
696     nested.put(cells[i], GraphConstants.cloneMap(map));
697     graph.getGraphLayoutCache().edit(nested, null, null, null);

  ViewVC Help
Powered by ViewVC 1.1.26