Heh, that is one the most complicated use cases I've seen yet. :)
> When I zoom in piccolo2d the JavaFX components inside the JFXPanel
> becone all jagged. Apparently (and understandably?) they do not
> know their scale has changed and that they should adjust their UI to avoid
> the jaggies. Does anybody know how I can solve this problem?
As far as I know JavaFX has its own scenegraph implementation, so you
may need to pass the current scale from the piccolo2d scene graph into
the JavaFX component somehow, perhaps by overriding paint in your
PSwing node
@Override
public void paint(PPaintContext paintContext) {
javaFxChild.setCurrentScale(renderContext.getScale());
super.paint(paintContext);
}
Stephen Chin (
http://steveonjava.com/) was a Piccolo2D dev and is now
involved with JavaFX, you might want to send him a message for further
help.
michael