Entity-Relationship Demo

This demo allows you to visualize and edit entity-relationship diagrams (ERD). It shows how to There are sample diagrams in Chen and Crow's Foot notation.
Class Description
demo.view.entityrelationship.EntityRelationshipDemoEditor to visualize and edit entity-relationship diagrams (ERD)
demo.view.entityrelationship.EntityRelationshipPaletteThis component provides templates for entity-relationship diagram (ERD) nodes and edges that can be dragged into a y.view.Graph2DView.
demo.view.entityrelationship.ErdNotationConverterA converter to transform entity-relationship diagrams from Chen to Crow's Foot notation and vice versa.
demo.view.entityrelationship.EntityRelationshipPopupModeA popup mode that creates a menu for arrow selection for an edge's source and target in entity relationship diagrams (ERD). There are two lists of Arrows, one to select the source arrow the other to select the target arrow.
demo.view.entityrelationship.painters.ErdNodePainterA painter that draws a node in ERD style that is used in Crow's Foot Notation.
demo.view.entityrelationship.painters.ErdAttributesNodeLabelModelA label model that computes the size and placement information for the attributes label of an ERD entity node. The area of the attributes label starts at the separator line and fills the whole lower compartment.

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.