Demonstrates how to implement a basic, yet powerful mind map application using yFiles for Java. Import from and export to FreeMind's native XML format is supported. The design follows the suggestions of Tony Buzan, the inventor of mind maps.
INSERT
to add a child item and ENTER
to add
a sibling item.
DELETE
or BACKSPACE
to remove the selected item
and all of its children.
NUMPAD -
to collapse the
item or NUMPAD +
to expand the previously collapsed item.
SHIFT
and click on another item or move the mouse over an existing item, press
and hold SHIFT
, then drag the mouse to another item.
F2
.
Text for cross-references may be added/edited the same way.
Class | Description |
---|---|
demo.view.mindmap.MindMapDemo | Manipulate or create completely new, nice looking mind maps. |
demo.view.mindmap.CollapseButton | Hides or unhides children of an item. |
demo.view.mindmap.FreeMindIOHandler | Provides methods to import and export FreeMind documents. It is tested with FreeMind 0.9.0 and Freeplane 1.2.0. It should work for other versions, too, though. |
demo.view.mindmap.HoverButton | This class provides button functionality to manipulate the mind map. |
demo.view.mindmap.KeyboardHandling | This class provides several actions for keyboard interaction and a method to register the actions |
demo.view.mindmap.LayoutUtil | Provides utility methods for automatically arranging a mind map. |
demo.view.mindmap.MindMapUtil | This class provides static methods to manipulate the mind map |
demo.view.mindmap.MindMapRenderer |
Renders the elements of a mind map in a specific order.
This specific rendering order is
|
demo.view.mindmap.MoveNodeMode | Handles mouse dragged events to rearrange the mind map. |
Set <yFilesDir>/src as your source directory. Then add <yFilesDir>/lib/y.jar and the source folder <yFilesDir>/src to your classpath. Now you should be ready to compile and run all executable demo classes.
First make sure you have the build tool Ant installed on your system. Now you can use the demo build script build.xml located in <yFilesDir>/src/demo to launch each demo by specifying its simple class name as a target. Alternatively, launch the interactive demo driver by specifying run as target to conveniently access all demos.