Details
-
Bug
-
Status: Open
-
P4
-
Resolution: Unresolved
-
8
Description
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());
}
});
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());
}
});
Attachments
Issue Links
- blocks
-
JDK-8125260 ScrollPane RTL orientation, Text in the ScrollPane got mirrored.
-
- Resolved
-
-
JDK-8099289 Support component orientation in common UI controls
-
- Closed
-
- relates to
-
JDK-8117367 change in node orientation does not traverse the entire tree
-
- Resolved
-
-
JDK-8102169 Node Orientation - API issue: Should effective orientation be a property?
-
- Closed
-
-
JDK-8125160 Text orientation not always inherit
-
- Resolved
-