문제

I want to build an graphical editor that draws and modifies graphs. The GEF-given "Auto-Arrange"-function is kind of too simple and not customizable. Is it possible to get JUNG/Graphviz auto-layouting and/or -arranging functions into my GEF editor?

도움이 되었습니까?

해결책

Regarding JUNG, there is no problem, but you would have to implement the following code:

  1. A GEF action that calls the layout algorithm.
  2. Transformation of your model to the model used by JUNG.
  3. Reading the results of the layout algorithm from JUNG and changing your model (using commands, of course).
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top