Run next code snippet with different rendering options.
EXPECTED: Fully red circle (because stroke is wider then radius)
OBSERVED for j2d and swing: Red circle with gray fill
screenshot attached
-------------------------
import javafx.lang.FX;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
public class DoCircle {
public static void main(String[] args) {
FX.start(new Runnable() {
public void run() {
Stage stage = new Stage();
stage.setTitle(System.getProperty("javafx.toolkit","") + System.getProperty("prism.order",""));
stage.setWidth(300);
stage.setHeight(300);
Circle circle = new Circle(150, 150, 30);
circle.setStrokeWidth(80);
circle.setFill(Color.GRAY);
circle.setStroke(Color.RED);
Scene scene = new Scene(new Group(circle));
stage.setScene(scene);
stage.setVisible(true);
}
});
}
}
EXPECTED: Fully red circle (because stroke is wider then radius)
OBSERVED for j2d and swing: Red circle with gray fill
screenshot attached
-------------------------
import javafx.lang.FX;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
public class DoCircle {
public static void main(String[] args) {
FX.start(new Runnable() {
public void run() {
Stage stage = new Stage();
stage.setTitle(System.getProperty("javafx.toolkit","") + System.getProperty("prism.order",""));
stage.setWidth(300);
stage.setHeight(300);
Circle circle = new Circle(150, 150, 30);
circle.setStrokeWidth(80);
circle.setFill(Color.GRAY);
circle.setStroke(Color.RED);
Scene scene = new Scene(new Group(circle));
stage.setScene(scene);
stage.setVisible(true);
}
});
}
}
- blocks
-
JDK-8127201 DFB: Rendering CircumferenceTest_dot and FilledCircleTest_dot fail because dot doesn't exist on the screen
-
- Closed
-