Tag Archives: JGraph

JGraph Styles

I build a reference program to test some of the styles that JGraphX provides. This is the result of the program: The full source code for this program follows:

Posted in Programming | Tagged , , | Leave a comment

Another day with JGraph – Styles and Constrained Children

Today I spent some more time playing with JGraph. The application I am creating requires three basic shapes: a rectangle, an ellipse and a roundtangle (rounded rectangle). All of these shapes are supported in JGraph using the styles mechanism, descibed here in the user manual. A very useful class that must be read and re-read for creating styles is mxConstants which contains many definitions for the style customizations and their possible values. For example, creating a style for an ellipse looks like this (using a bluish color): and the style for a rountangle looks like this (using a brownish color): … Continue reading

Posted in Thoughts | Tagged , , | 10 Comments

JGraph – Another Java Graph Framework

After some playing with JUNG (see examples 1, 2 and 3), I feel that it will be hard to use it for the application that I am writing… I need more edge versatility that the one provided by the simple API of Jung. So some more searching brought me to the JGraph framework. JGraph seems to provide great visual flexibility and also includes graph editing properties, which are needed in my application. As usual, the documentations of these open-source frameworks is not very user-friendly (there is a user manual, better than the one provided by most projects), but no step-by-step … Continue reading

Posted in Programming | Tagged , , | 1 Comment