Main Menu
Login
SSL SecureMode
Username:
Password:  
Lost Password?
Register now!
ChangeVision Members Map
Search
Forum Index   -   Topic Index
   How to use of Astah (Pro/SysML/GSN/Com)
     To start Jude from other program

Flat Previous Topic | Next Topic
Poster Thread
Joba
Posted on: 2009/10/15 7:29
Developer
Joined: 2006/6/6
From:
Posts: 969
Re: To start Jude from other program
Thank you for explaining, Heitor.

Quote:
I would like to use JUDE API to automatically autolayout my Class Diagram. Is it possible? Something as: project.getClassDiagram().selectAllClasses().autoPartialLayout() or project.getClassDiagram().selectAllClasses().autoLayout() or project.getClassDiagram().autoLayout()

Unfortunately we do not have an API for auto-layout. However, you can get presentation information of rectangle objects(INodePresentation) such as Classes by using JUDE API.

So here is an idea, get the presentation information of Classes (Coordinate of top-left corner, height and width), and then you should be able to create autoLayout() on your own with those information.

- To get the coordinate of IPresentaion, use IPresentation.getLocation()
- To get the width of IPresentation, use IPresentation.getWidth()
- To get the height of IPresentation, use IPresentation.getHeight()

Hope it helps

Satomi
Flat Previous Topic | Next Topic

Subject Poster Date
   To start Jude from other program Heitor 2009/10/7 23:06
     Re: To start Jude from other program Joba 2009/10/9 5:36
       Re: To start Jude from other program Heitor 2009/10/14 4:53
       » Re: To start Jude from other program Joba 2009/10/15 7:29