Other |
---|
tbdUnresolved |
Blocks :
|
|
Blocks :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
setting orientation in scene does not propagate not sure if this is bug or not, but setting node orientation in scene does not change what is inside of it. Basically: scene.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent> () { @Override public void handle(KeyEvent event) { if (event.getCode() == KeyCode.LEFT) { scene.setNodeOrientation(NodeOrientation.LEFT_TO_RIGHT); } if (event.getCode() == KeyCode.RIGHT) { scene.setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT); } System.err.println("orientation " + scene.getNodeOrientation()); } }); does not change the content of the scene I have to do this scene.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent> () { @Override public void handle(KeyEvent event) { if (event.getCode() == KeyCode.LEFT) { scene.getRoot().setNodeOrientation(NodeOrientation.LEFT_TO_RIGHT); } if (event.getCode() == KeyCode.RIGHT) { scene.getRoot().setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT); } System.err.println("orientation " + scene.getNodeOrientation()); } });
|