How to use

Navigation

Manipulating

Key Bindings

To use keyboard navigation the chart needs to have the focus.

Overview

Class Description
demo.view.orgchart.OrgChartDemoView and manipulate an organization chart.
demo.view.orgchart.OrgChartTreeModelTreeModel that uses Employee as TreeNodes
demo.view.orgchart.JOrgChartOrganization chart component that builds upon the more generic tree chart component demo.view.orgchart.JTreeChart. It visualizes ademo.view.orgchart.OrgChartTreeModel. Also it customizes the look and feel of the component to make it suitable for organization charts. TreeModel that uses Employee as TreeNodes
demo.view.orgchart.JTreeChartTree chart component that allows to display local views of the tree.
demo.view.orgchart.KeyboardNavigationFactory class that provides java.awt.event.KeyListener implementations suitable for navigating within Graph2DView.

Running the Demos

From Within an IDE

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.

With Ant

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.