io.fair_acc.sample.chart.ChartSample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of samples Show documentation
Show all versions of samples Show documentation
Small sample applications to showcase the features of the chart-fx library.
The newest version!
package io.fair_acc.sample.chart;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.stage.Stage;
import fxsampler.SampleBase;
public abstract class ChartSample extends SampleBase {
@Override
public String getSampleName() {
return this.getClass().getSimpleName();
}
@Override
public String getProjectVersion() {
return "11.3.0";
}
@Override
public Node getPanel(final Stage stage) {
System.out.println("loading sample");
return getChartPanel(stage);
}
public Node getChartPanel(final Stage stage) {
System.out.println("loading sample");
return new Label("Sample hast to override getPanel() or getChartPanel()");
}
@Override
public String getJavaDocURL() {
return "";
}
@Override
public String getControlStylesheetURL() {
return null;
}
@Override
public String getSampleSourceURL() {
return "";
}
}