JDK-8089543 : Region ignores any transforms set in Shape
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2013-10-22
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Description
Region ignores any transforms set in Shape set Region#setShape()

Testcase:
@Override
public void start(Stage stage) throws Exception {
    Region region = new Region();
    region.setBackground(new Background(new BackgroundFill(Color.RED, null, null)));
    final Shape shape = new Circle(30);
    shape.setScaleX(2);   // IS THIS GETTING IGNORED ?
    region.setShape(shape);
    region.setScaleShape(false); //lets make this obvious
    Group group = new Group(region);
    region.setLayoutX(100);
    region.setLayoutY(100);
    region.setPrefSize(100, 100);
    Scene scene = new Scene(group, 300, 300);
    stage.setScene(scene);
    stage.show();
}
Comments
Note: setClip(shape) works, the transformed is respected.
22-10-2013