| How to make two choices for graph layout? [message #903092] |
Tue, 21 August 2012 20:14  |
Dong Wang Messages: 1 Registered: August 2012 |
Junior Member |
|
|
Hello everyone,
I want to make more than one layout algorithm, such as LeftRightProvider and TopDownProvider, actived during my chient running. Thereby users can choose one of the algorithms which is more suitable for their graph. There is only one button, Arrange all or Arrange sellection. How can I add another one?
The layoutEditParts(GraphicalEditPart containerEditPart, IAdaptable layoutHint) method in DefaultProvider class will receive a default layoutType stored in layoutHit. How can I setup another value to the layoutHint and let the DefaultProvider know.
Thank you for your answer.
|
|
|
|
Powered by
FUDForum. Page generated in 0.08858 seconds