Book a Demo

Author Topic: Auto layout diagrams in Java  (Read 4966 times)

Lars H

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Auto layout diagrams in Java
« 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

albinofrenchy

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Auto layout diagrams in Java
« Reply #1 on: April 30, 2008, 06:51:38 am »


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


arose

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Auto layout diagrams in Java
« Reply #2 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.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Auto layout diagrams in Java
« Reply #3 on: April 30, 2008, 08:58:33 am »
Project.LayoutDiagramEx
No, you can't have it!

arose

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Auto layout diagrams in Java
« Reply #4 on: April 30, 2008, 10:19:27 am »
Thanks, David.  I hadn't looked deep enough.

Allan

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Auto layout diagrams in Java
« Reply #5 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
No, you can't have it!

Lars H

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Auto layout diagrams in Java
« Reply #6 on: May 05, 2008, 06:19:11 pm »
It works. Thanks a lot!

/Lars