To use keyboard navigation the chart needs to have the focus.
Class | Description |
---|---|
demo.view.orgchart.OrgChartDemo | View and manipulate an organization chart. |
demo.view.orgchart.OrgChartTreeModel | TreeModel that uses Employee as TreeNodes |
demo.view.orgchart.JOrgChart | Organization 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.JTreeChart | Tree chart component that allows to display local views of the tree. |
demo.view.orgchart.KeyboardNavigation | Factory class that provides
java.awt.event.KeyListener
implementations suitable for
navigating within Graph2DView.
|
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.