-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathChartFxMathSamplerProject.java
More file actions
45 lines (38 loc) · 1.54 KB
/
Copy pathChartFxMathSamplerProject.java
File metadata and controls
45 lines (38 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package io.fair_acc.sample;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import fxsampler.FXSamplerProject;
import fxsampler.model.WelcomePage;
public class ChartFxMathSamplerProject implements FXSamplerProject {
@Override
public String getProjectName() {
return "ChartFx - Math";
}
@Override
public String getSampleBasePackage() {
return "io.fair_acc.sample.math";
}
//@Override
// public String getModuleName() {
// return "io.fair-acc";
//}
@Override
public WelcomePage getWelcomePage() {
VBox vBox = new VBox();
ImageView imgView = new ImageView();
// imgView.setStyle("-fx-image: url('org/controlsfx/samples/ControlsFX.png');");
StackPane pane = new StackPane();
pane.setPrefHeight(207);
// pane.setStyle("-fx-background-image: url('org/controlsfx/samples/bar.png');"
// + "-fx-background-repeat: repeat-x;");
pane.getChildren().add(imgView);
Label label = new Label();
label.setWrapText(true);
label.setText("Welcome to the ChartFx math samples!\nThese samples showcase the use of ChartFx and the accompanying data processing facilities.\n\n Explore the available samples by clicking on the options to the left.");
label.setStyle("-fx-font-size: 1.5em; -fx-padding: 20 0 0 5;");
vBox.getChildren().addAll(pane, label);
return new WelcomePage("Welcome to ChartFx!", vBox);
}
}