Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Java2D base to JavaFX #1312

Closed
AlexisDrogoul opened this issue Nov 27, 2015 · 2 comments
Closed

Move Java2D base to JavaFX #1312

AlexisDrogoul opened this issue Nov 27, 2015 · 2 comments
Labels
About UI This is an UI-related issue or request 📺 Display Java2D This issue or request concerns only Java2D displays 🤗 Enhancement This is a request for enhancement Priority High

Comments

@AlexisDrogoul
Copy link
Member

The current Java2D base for the "simple" (i.e. 2D) displays is becoming more and more obsolete and complicated to maintain at each new JDK version.

A nice (and somehow easy, now that we will probably require at least JDK 1.7 for GAMA) way to keep most of the code while using a newer technology would be to port it to JAVA FX.

Two links:

https://wiki.eclipse.org/GEF/GEF4/FX (integration of FX and SWT components)
https://github.com/jfree/fxgraphics2d (for reusing exactly the same Java2D codebase on a FX Canvas).

Once this transition is done, we will also be able to clean many things (esp. the zoom) and to change some things (because Java FX provides a complete scene graph) and maybe merge the two display technologies ? OpenGL + Java FX (they are interoperable).

@AlexisDrogoul AlexisDrogoul added 🤗 Enhancement This is a request for enhancement OS All About UI This is an UI-related issue or request Priority High 📺 Display Java2D This issue or request concerns only Java2D displays labels Nov 27, 2015
@AlexisDrogoul AlexisDrogoul added this to the None milestone Nov 27, 2015
@anvd
Copy link
Contributor

anvd commented Nov 27, 2015

In the following weeks, I will explore the possibility to develop an editor
to edit Genstar configuration file in a GAMA project using JavaFX. This
editor is similar to the CSV editor of GAMA.

For the moment, I have zero knowledge of JavaFX. I'm still wonder whether
we will have the compatibility issues (e.g., Thread) between JavaFX and
SWT/RCP environment or nor. I think this link may be useful:
http://www.eclipse.org/efxclipse/index.html

On Fri, Nov 27, 2015 at 12:29 PM, Alexis Drogoul [email protected]
wrote:

The current Java2D base for the "simple" (i.e. 2D) displays is becoming
more and more obsolete and complicated to maintain at each new JDK version.

A nice (and somehow easy, now that we will probably require at least JDK
1.7 for GAMA) way to keep most of the code while using a newer technology
would be to port it to JAVA FX.

Two links:

https://wiki.eclipse.org/GEF/GEF4/FX (integration of FX and SWT
components)
https://github.com/jfree/fxgraphics2d (for reusing exactly the same
Java2D codebase on a FX Canvas).

Once this transition is done, we will also be able to clean many things
(esp. the zoom) and to change some things (because Java FX provides a
complete scene graph) and maybe merge the two display technologies ? OpenGL

  • Java FX (they are interoperable).


Reply to this email directly or view it on GitHub
https://github.com/gama-platform/gama/issues/1312.

@AlexisDrogoul
Copy link
Member Author

Moving this issue to gama-platform/gama.experimental#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
About UI This is an UI-related issue or request 📺 Display Java2D This issue or request concerns only Java2D displays 🤗 Enhancement This is a request for enhancement Priority High
Projects
None yet
Development

No branches or pull requests

2 participants