Open EwoutH opened 1 year ago
Well, the JHotDraw 8 code is currently not stable. The feature set is still very incomplete with respect to JHotDraw 7.
I checked out NetLogo sources from github. It looks like NetLogo only uses a very few features from JHotDraw 6. Is this correct, that all the code that depends on JHotDraw 6 is in the package org.nlogo.sdm.gui?
If so, I might be ablec to create a demo module in JHotDraw 8 that tries to replicate the functionality provided in that package. So that we can assess the feasibility of a migration to JHotDraw 8.
Important question: Are you aware that JHotDraw 8 depends on JavaFX? It will not work with Swing/AWT.
Thanks for getting back! That's correct, we use a tiny portion for creating system dynamics diagrams, and it's all indeed in org.nlogo.sdm.gui
/ netlogo-gui/src/main/sdm/gui.
Important question: Are you aware that JHotDraw 8 depends on JavaFX? It will not work with Swing/AWT.
@ocaml-n00b, what do you think? Is this a breaking issue? If so, would we be better of by migrating to JHotDraw 7 for now?
Yeah, for now we should use jhotdraw7. In the mean time I'll look into how to integrate sdm with version 8.
On Thu, Nov 17, 2022, 8:43 AM Ewout ter Hoeven @.***> wrote:
Thanks for getting back! That's correct, we use a tiny portion for creating system dynamics diagrams, and it's all indeed in org.nlogo.sdm.gui / netlogo-gui/src/main/sdm/gui https://github.com/NetLogo/NetLogo/tree/hexy/netlogo-gui/src/main/sdm/gui .
Important question: Are you aware that JHotDraw 8 depends on JavaFX? It will not work with Swing/AWT.
@ocaml-n00b https://github.com/ocaml-n00b, what do you think? Is this a breaking issue? If so, would we be better of by migrating to JHotDraw 7 for now?
— Reply to this email directly, view it on GitHub https://github.com/wrandelshofer/jhotdraw8/issues/2#issuecomment-1318658611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBNSPTNJEPUMYSYPZHB5BTWIYY7TANCNFSM6AAAAAASCIVKAU . You are receiving this because you were mentioned.Message ID: @.***>
Well if you are not planning to migrate NetLogo to JavaFX, then I suggest that you stick to JHotDraw 6.
JHotDraw versions 6, 7, 8 have a very different API and different design philosophies. So, if you were to rewrite the editor for JHotDraw 7, you would have to rewrite it again for JHotDraw 8.
JHotDraw 7 provides a lot of functionality over JHotDraw 6. However it requires quite a lot of code for simple things.
JHotDraw 8 provides even more functionality than JHotDraw 7, and substantially reduces the amount of code that one needs to write.
I'm getting my environment setup again, i'll try the latest and see how far I get; I'll proceed based on that.
Over at NetLogo we might be interested in updating our (ancient) JHotDraw 6.0b1 implementation. Since JHotDraw 7 is also getting quite old and you're actively working on JHotDraw 8, I was curious if a stable release and/or documentation for JHotDraw 8 is already available.