I am working with a group that is looking to target a graphics renderer in Java. I am trying to figure out whether targeting java.awt.Graphics2D will be forward compatible. Namely, can other libraries like JavaFX display renders from a Graphics2D instance? Is there interoperability between java.awt.Graphics2D and javafx.scene.canvas.GraphicsContext?
Or, if not between Graphics2D and GraphicsContext directly, is there any means of displaying a Graphics2D render in a JavaFX application analogous to say Swing displaying Graphics2D renders in Panels?
Background
If not obvious from the question, I'm fairly new to the Java ecosystem. For more context, most things that I'm finding in internet searches are examples/tutorials explaining how things done in AWT can be done in JavaFX (see Example Article), which doesn't answer my question, but does lead me to conjecture that there is no interoperability. However, I'm hoping someone more familiar with the ecosystem can answer the question outright.