package sample;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Arc;
import javafx.scene.shape.ArcType;
import javafx.scene.shape.StrokeType;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage stage) {
Arc arc = new Arc(700, 700, 500, 500, 90, 18);
arc.setFill(Color.TRANSPARENT);
arc.setStroke(Color.BLACK);
arc.setType(ArcType.OPEN);
arc.setStrokeWidth(1);
arc.setStrokeType(StrokeType.INSIDE);
Arc arc2 = new Arc(700, 700, 500, 500, 108, 18);
arc2.setFill(Color.TRANSPARENT);
arc2.setStroke(Color.GREEN);
arc2.setType(ArcType.OPEN);
arc2.setStrokeWidth(1);
arc2.setStrokeType(StrokeType.INSIDE);
Arc arc3 = new Arc(700, 700, 500, 500, 126, 18);
arc3.setFill(Color.TRANSPARENT);
arc3.setStroke(Color.RED);
arc3.setType(ArcType.OPEN);
arc3.setStrokeWidth(1);
arc3.setStrokeType(StrokeType.INSIDE);
// atd...
stage.setScene(new Scene(new Group(arc, arc2, arc3), 700, 700));
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
Nebo jsem neco nepochopil?