Search in sources :

Example 1 with FlowGridPane

use of eu.hansolo.tilesfx.tools.FlowGridPane in project tilesfx by HanSolo.

the class Demo method start.

@Override
public void start(Stage stage) {
    FlowGridPane pane = new FlowGridPane(8, 5, percentageTile, clockTile, gaugeTile, sparkLineTile, areaChartTile, lineChartTile, timerControlTile, numberTile, textTile, highLowTile, plusMinusTile, sliderTile, switchTile, timeTile, barChartTile, customTile, leaderBoardTile, worldTile, mapTile, radialChartTile, donutChartTile, circularProgressTile, stockTile, gaugeSparkLineTile, radarChartTile1, radarChartTile2, smoothAreaChartTile, countryTile, ephemerisTile, characterTile, flipTile, switchSliderTile, dateTile, calendarTile, sunburstTile, matrixTile, // , weatherTile);
    radialPercentageTile);
    pane.setHgap(5);
    pane.setVgap(5);
    pane.setAlignment(Pos.CENTER);
    pane.setCenterShape(true);
    pane.setPadding(new Insets(5));
    // pane.setPrefSize(800, 600);
    pane.setBackground(new Background(new BackgroundFill(Color.web("#101214"), CornerRadii.EMPTY, Insets.EMPTY)));
    PerspectiveCamera camera = new PerspectiveCamera();
    camera.setFieldOfView(10);
    Scene scene = new Scene(pane);
    scene.setCamera(camera);
    stage.setTitle("TilesFX");
    stage.setScene(scene);
    stage.show();
    // Calculate number of nodes
    calcNoOfNodes(pane);
    System.out.println(noOfNodes + " Nodes in SceneGraph");
    timer.start();
    mapTile.addPoiLocation(new Location(51.85, 7.75, "Test"));
    mapTile.removePoiLocation(new Location(51.85, 7.75, "Test"));
    radialPercentageTile.showNotifier(true);
}
Also used : Insets(javafx.geometry.Insets) Background(javafx.scene.layout.Background) BackgroundFill(javafx.scene.layout.BackgroundFill) PerspectiveCamera(javafx.scene.PerspectiveCamera) Scene(javafx.scene.Scene) FlowGridPane(eu.hansolo.tilesfx.tools.FlowGridPane) Location(eu.hansolo.tilesfx.tools.Location)

Aggregations

FlowGridPane (eu.hansolo.tilesfx.tools.FlowGridPane)1 Location (eu.hansolo.tilesfx.tools.Location)1 Insets (javafx.geometry.Insets)1 PerspectiveCamera (javafx.scene.PerspectiveCamera)1 Scene (javafx.scene.Scene)1 Background (javafx.scene.layout.Background)1 BackgroundFill (javafx.scene.layout.BackgroundFill)1