Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Lars H on April 25, 2008, 09:22:35 pm

Title: Auto layout diagrams in Java
Post by: Lars H on April 25, 2008, 09:22:35 pm
Hi,

I want to auto layout diagrams via the Java API, but the documented ConstLayoutStyles enum is not available in Java. Does anyone know the corresponding integer values I can use?

/Lars
Title: Re: Auto layout diagrams in Java
Post by: albinofrenchy on April 30, 2008, 06:51:38 am
(http://www1.picturepush.com/photo/a/627979/img/Anonymous/constLayoutStyles.png)

This is what i get from querying it in .Net. I'm not quite sure how valid these are, in particular for the java API

Title: Re: Auto layout diagrams in Java
Post by: arose on April 30, 2008, 08:07:03 am
What API call are you going to use for laying out a diagram?  I haven't see any indication of such an API call in the documentation.
Title: Re: Auto layout diagrams in Java
Post by: «Midnight» on April 30, 2008, 08:58:33 am
Project.LayoutDiagramEx
Title: Re: Auto layout diagrams in Java
Post by: arose on April 30, 2008, 10:19:27 am
Thanks, David.  I hadn't looked deep enough.

Allan
Title: Re: Auto layout diagrams in Java
Post by: «Midnight» on April 30, 2008, 09:12:07 pm
No problem Allan,

There's a lot there, and you kind of have to get used to what's (likely to be) in Repository versus Project. At least they are alphabetical, but that won't help you the first time you look for something you don't already have a name for.

David
Title: Re: Auto layout diagrams in Java
Post by: Lars H on May 05, 2008, 06:19:11 pm
It works. Thanks a lot!

/Lars