当前位置: 首页>>代码示例>>Java>>正文


Java LineChart.Series方法代码示例

本文整理汇总了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);
}
 
开发者ID:Flash3388,项目名称:FlashLib,代码行数:19,代码来源:DashboardPIDTuner.java

示例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();

}
 
开发者ID:JoshMcguigan,项目名称:PPC_Sim,代码行数:24,代码来源:Controller.java

示例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));

}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:18,代码来源:AltitudeProfileView.java

示例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);
}
 
开发者ID:Flash3388,项目名称:FlashLib,代码行数:28,代码来源:LineChartControl.java

示例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);
	
	
}
 
开发者ID:gnoubi,项目名称:MarrakAir,代码行数:10,代码来源:LineChartBox.java

示例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>();
	
}
 
开发者ID:gnoubi,项目名称:MarrakAir,代码行数:8,代码来源:LineChartBox.java

示例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);
}
 
开发者ID:viskell,项目名称:viskell,代码行数:37,代码来源:GraphBlock.java

示例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));

   }
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:14,代码来源:AltitudeProfileView.java

示例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));

}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:15,代码来源:VelocityProfileView.java

示例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));

}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:14,代码来源:EstimatedAltitudeProfileView.java

示例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));

}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:15,代码来源:ErrorProfileView.java

示例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));

}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:15,代码来源:AccelerationProfileView.java

示例13: getSeries

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public LineChart.Series<Number, Number> getSeries(){
	return series;
}
 
开发者ID:Flash3388,项目名称:FlashLib,代码行数:4,代码来源:DashboardPIDTuner.java

示例14: getSeries

import javafx.scene.chart.LineChart; //导入方法依赖的package包/类
public synchronized LineChart.Series<X, Y> getSeries()
{
	return this.datas;
}
 
开发者ID:gnoubi,项目名称:MarrakAir,代码行数:5,代码来源:LineChartBox.java


注:本文中的javafx.scene.chart.LineChart.Series方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。