List of usage examples for javafx.scene.shape ArcType ROUND
ArcType ROUND
To view the source code for javafx.scene.shape ArcType ROUND.
Click Source Link
From source file:Main.java
@Override public void start(Stage stage) { Arc arc = new Arc(0, 0, 50, 100, 0, 90); arc.setFill(Color.GRAY);/*from www . ja v a2s.co m*/ arc.setStroke(Color.BLACK); arc.setType(ArcType.ROUND); HBox box = new HBox(arc); Scene scene = new Scene(box); stage.setScene(scene); stage.setTitle("Test"); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Arc arc = new Arc(0, 0, 50, 100, 0, 90); arc.setFill(Color.TRANSPARENT); arc.setStroke(Color.BLACK);/* w w w. j a v a2 s. c o m*/ arc.setType(ArcType.ROUND); HBox box = new HBox(arc); Scene scene = new Scene(box); stage.setScene(scene); stage.setTitle("Test"); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Arc arc = new Arc(0, 0, 50, 100, 0, 90); arc.setFill(Color.GRAY);/*ww w. jav a 2 s . c o m*/ arc.setStroke(Color.BLACK); arc.setType(ArcType.ROUND); HBox box = new HBox(arc); box.setSpacing(10); box.setStyle("-fx-padding: 10;" + "-fx-border-style: solid inside;" + "-fx-border-width: 2;" + "-fx-border-insets: 5;" + "-fx-border-radius: 5;" + "-fx-border-color: blue;"); Scene scene = new Scene(box); stage.setScene(scene); stage.setTitle("Test"); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Arc arc = new Arc(0, 0, 50, 100, 0, 90); arc.setFill(Color.GRAY);/* w w w.j av a2 s. co m*/ arc.setStroke(Color.BLACK); arc.setType(ArcType.ROUND); Arc arc1 = new Arc(0, 0, 50, 100, 0, 90); arc1.setFill(Color.GRAY); arc1.setStroke(Color.BLACK); arc1.setType(ArcType.ROUND); HBox box = new HBox(arc, arc1); box.setSpacing(10); Scene scene = new Scene(box); stage.setScene(scene); stage.setTitle("Test"); stage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { Group root = new Group(); Scene scene = new Scene(root, 551, 400, Color.BLACK); Group buttonGroup = new Group(); Arc rightButton = ArcBuilder.create().type(ArcType.ROUND).centerX(12).centerY(16).radiusX(15).radiusY(15) .startAngle(180 - 30).length(60).fill(new Color(1, 1, 1, .90)).translateX(40).build(); buttonGroup.getChildren().add(rightButton); root.getChildren().add(buttonGroup); primaryStage.setScene(scene);//from w w w.ja v a 2 s. c o m primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { Group root = new Group(); Scene scene = new Scene(root, 551, 400, Color.BLACK); Group buttonGroup = new Group(); Arc rightButton = ArcBuilder.create().type(ArcType.ROUND).radiusX(15).radiusY(15).startAngle(180 - 30) .length(60).translateX(40).build(); buttonGroup.getChildren().add(rightButton); buttonGroup.translateYProperty().bind(scene.heightProperty().subtract(10)); root.getChildren().add(buttonGroup); primaryStage.setScene(scene);/* w w w . j a v a 2 s .co m*/ primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Text Fonts"); Group g = new Group(); Scene scene = new Scene(g, 550, 250); Arc arc = new Arc(); arc.setCenterX(50.0f);//from www .j a va2 s.c o m arc.setCenterY(50.0f); arc.setRadiusX(25.0f); arc.setRadiusY(25.0f); arc.setStartAngle(45.0f); arc.setLength(270.0f); arc.setType(ArcType.ROUND); g.getChildren().add(arc); arc.centerXProperty().bind(scene.heightProperty().subtract(10)); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Text Fonts"); Group g = new Group(); Scene scene = new Scene(g, 550, 250, Color.web("0x0000FF", 1.0)); Arc arc = new Arc(); arc.setCenterX(50.0f);/*from w w w. j a va 2s. c om*/ arc.setCenterY(50.0f); arc.setRadiusX(25.0f); arc.setRadiusY(25.0f); arc.setStartAngle(45.0f); arc.setLength(270.0f); arc.setType(ArcType.ROUND); g.getChildren().add(arc); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Text Fonts"); Group g = new Group(); Scene scene = new Scene(g, 550, 250, Color.web("0x0000FF", 1.0)); Arc arc = new Arc(); arc.setCenterX(50.0f);/*w w w . j av a 2 s .c om*/ arc.setCenterY(50.0f); arc.setRadiusX(25.0f); arc.setRadiusY(25.0f); arc.setStartAngle(45.0f); arc.setLength(270.0f); arc.setType(ArcType.ROUND); System.out.println(arc.getCenterY()); g.getChildren().add(arc); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Text Fonts"); Group g = new Group(); Scene scene = new Scene(g, 550, 250, Color.web("0x0000FF", 1.0)); Arc arc = new Arc(); arc.setCenterX(50.0f);//from ww w . j a v a 2 s . c o m arc.setCenterY(50.0f); arc.setRadiusX(25.0f); arc.setRadiusY(25.0f); arc.setStartAngle(45.0f); arc.setLength(270.0f); arc.setType(ArcType.ROUND); System.out.println(arc.getType()); g.getChildren().add(arc); primaryStage.setScene(scene); primaryStage.show(); }