本文整理汇总了Java中javafx.scene.chart.LineChart.Series方法的典型用法代码示例。如果您正苦于以下问题:Java LineChart.Series方法的具体用法?Java LineChart.Series怎么用?Java LineChart.Series使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.chart.LineChart
的用法示例。
在下文中一共展示了LineChart.Series方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DashboardPIDTuner
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public DashboardPIDTuner(String name) {
super(name, FlashboardSendableType.PIDTUNER);
series = new LineChart.Series<Number, Number>();
kp = new SimpleDoubleProperty();
ki = new SimpleDoubleProperty();
kd = new SimpleDoubleProperty();
kf = new SimpleDoubleProperty();
setpoint = new SimpleDoubleProperty();
valueBinder = new SimpleDoubleProperty();
timeBinder = new SimpleDoubleProperty();
funcPeriodBinder = new SimpleDoubleProperty();
setpointBinder = new SimpleStringProperty("0.0");
tuners.put(name, this);
}
示例2: initializeChart
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void initializeChart(){
controllerNames = simulator.getControllerNames();
lineChartData = FXCollections.observableArrayList();
// Create set point data set
setPointSeries = new LineChart.Series<Double, Double>();
setPointSeries.setName("Set Point");
lineChartData.add(setPointSeries);
// Create plant output data sets
plantOutputSeries = new ArrayList<LineChart.Series<Double, Double>>();
for (int controller = 0; controller < controllerNames.length; controller++) {
plantOutputSeries.add(new LineChart.Series<Double,Double>());
plantOutputSeries.get(controller).setName(controllerNames[controller]);
lineChartData.add(plantOutputSeries.get(controller));
}
chart.setCreateSymbols(false);
chart.setData(lineChartData);
chart.createSymbolsProperty();
}
示例3: init
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void init(final Stage stage) {
this.xAxis = this.initXAxis();
this.yAxis = this.initYAxis();
final LineChart<Number, Number> chart = this.initChart();
// Chart Series
this.barometricAltitudeSeries = new LineChart.Series<Number, Number>();
this.barometricAltitudeSeries.setName("Barometric Altitude");
chart.getData().add(this.barometricAltitudeSeries);
this.estimatedAltitudeSeries = new LineChart.Series<Number, Number>();
this.estimatedAltitudeSeries.setName("Estimated Altitude");
chart.getData().add(this.estimatedAltitudeSeries);
stage.setScene(new Scene(chart));
}
示例4: LineChartControl
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public LineChartControl(String name) {
super(name, FlashboardSendableType.LINECHART);
axisX = new NumberAxis();
axisX.setForceZeroInRange(false);
axisX.setAutoRanging(false);
axisX.setUpperBound(maxX);
axisX.setLowerBound(minX);
axisY = new NumberAxis();
axisY.setForceZeroInRange(false);
axisY.setAutoRanging(false);
axisY.setUpperBound(maxY);
axisY.setLowerBound(minY);
chart = new LineChart<Number, Number>(axisX, axisY);
chart.setLegendVisible(false);
chart.setAnimated(false);
chartSeries = new LineChart.Series<Number, Number>();
chart.setTitle(name);
chart.getData().add(chartSeries);
root = new VBox();
root.setAlignment(Pos.CENTER);
root.setMaxSize(WIDTH, HEIGHT);
root.getChildren().add(chart);
}
示例5: InternalPlot
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public InternalPlot(X a, Y b, String leg)
{
this.absciss = a;
this.ordinate = b;
datas=new LineChart.Series<X, Y>();
datas.setName(leg);
}
示例6: InternalPlot
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public InternalPlot(X a, Y b)
{
this.absciss = a;
this.ordinate = b;
datas=new LineChart.Series<X, Y>();
}
示例7: invalidateVisualState
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
@Override
public void invalidateVisualState() {
this.input.invalidateVisualState();
if (! (this.inValidContext && this.input.hasValidConnection())) {
return;
}
ObservableList<XYChart.Series<Double, Double>> lineChartData = FXCollections.observableArrayList();
double step = 0.01;
double min = x.getLowerBound();
double max = x.getUpperBound();
try {
GhciSession ghciSession = getToplevel().getGhciSession();
String funName = "graph_fun_" + Integer.toHexString(this.hashCode());
ghciSession.push(funName, this.getAllInputs().get(0).getFullExpr());
String range = String.format(Locale.US, " [%f,%f..%f]", min, min+step, max);
String results = ghciSession.pullRaw("putStrLn $ unwords $ map show $ map " + funName + range).get();
LineChart.Series<Double, Double> series = new LineChart.Series<>();
ObservableList<XYChart.Data<Double, Double>> data = series.getData();
Iterator<String> v = Splitter.on(' ').split(results).iterator();
for (double i = min; i < max; i += step) {
data.add(new XYChart.Data<>(i, Double.valueOf(v.next())));
}
lineChartData.add(series);
} catch (NoSuchElementException | NumberFormatException | InterruptedException | ExecutionException ignored) {
// Pretend we didn't hear anything.
}
chart.setData(lineChartData);
}
示例8: init
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void init(final Stage stage) {
this.xAxis = this.initXAxis();
this.yAxis = this.initYAxis();
final LineChart<Number, Number> chart = this.initChart();
// Chart Series
this.barometricAltitudeSeries = new LineChart.Series<Number, Number>();
this.barometricAltitudeSeries.setName("Barometric Altitude");
chart.getData().add(this.barometricAltitudeSeries);
stage.setScene(new Scene(chart));
}
示例9: init
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void init(final Stage stage) {
this.xAxis = this.initXAxis();
this.yAxis = this.initYAxis();
final LineChart<Number, Number> chart = this.initChart();
// Chart Series
this.estimatedVelocitySeries = new LineChart.Series<Number, Number>();
this.estimatedVelocitySeries.setName("Estimated velocity");
chart.getData().add(this.estimatedVelocitySeries);
stage.setScene(new Scene(chart));
}
示例10: init
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void init(final Stage stage) {
this.xAxis = this.initXAxis();
this.yAxis = this.initYAxis();
final LineChart<Number, Number> chart = this.initChart();
// Chart Series
this.estimatedAltitudeSeries = new LineChart.Series<Number, Number>();
this.estimatedAltitudeSeries.setName("Estimated Altitude");
chart.getData().add(this.estimatedAltitudeSeries);
stage.setScene(new Scene(chart));
}
示例11: init
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void init(final Stage stage) {
this.xAxis = this.initXAxis();
this.yAxis = this.initYAxis();
final LineChart<Number, Number> chart = this.initChart();
// Chart Series
this.errorSeries = new LineChart.Series<Number, Number>();
this.errorSeries.setName("Error data");
chart.getData().add(this.errorSeries);
stage.setScene(new Scene(chart));
}
示例12: init
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
private void init(final Stage stage) {
this.xAxis = this.initXAxis();
this.yAxis = this.initYAxis();
final LineChart<Number, Number> chart = this.initChart();
// Chart Series
this.accelerationSeries = new LineChart.Series<Number, Number>();
this.accelerationSeries.setName("Acceleration");
chart.getData().add(this.accelerationSeries);
stage.setScene(new Scene(chart));
}
示例13: getSeries
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public LineChart.Series<Number, Number> getSeries(){
return series;
}
示例14: getSeries
import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public synchronized LineChart.Series<X, Y> getSeries()
{
return this.datas;
}