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


Java NumberAxis.setAnimated方法代码示例

本文整理汇总了Java中javafx.scene.chart.NumberAxis.setAnimated方法的典型用法代码示例。如果您正苦于以下问题:Java NumberAxis.setAnimated方法的具体用法?Java NumberAxis.setAnimated怎么用?Java NumberAxis.setAnimated使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.chart.NumberAxis的用法示例。


在下文中一共展示了NumberAxis.setAnimated方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createChart

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
protected ScatterChart<Number, Number> createChart() {
    final NumberAxis xAxis = new NumberAxis();
    xAxis.setForceZeroInRange(false);
    final NumberAxis yAxis = new NumberAxis(-100,100,10);
    final ScatterChart<Number,Number> sc = new ScatterChart<Number,Number>(xAxis,yAxis);
    // setup chart
    sc.setId("liveScatterChart");
    sc.setTitle("Animated Sine Wave ScatterChart");
    xAxis.setLabel("X Axis");
    xAxis.setAnimated(false);
    yAxis.setLabel("Y Axis");
    yAxis.setAutoRanging(false);
    // add starting data
    series = new ScatterChart.Series<Number,Number>();
    series.setName("Sine Wave");
    series.getData().add(new ScatterChart.Data<Number, Number>(5d, 5d));
    sc.getData().add(series);
    return sc;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:20,代码来源:ChartAdvancedScatterLive.java

示例2: initYAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initYAxis() {
final NumberAxis yAxis = new NumberAxis();
yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
    @Override
    public String toString(final Number object) {
	return String.format("%6.2f", object);
    }
});
yAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
yAxis.setPrefWidth(120);
yAxis.setAutoRanging(true);
yAxis.setLabel("Meters⁻²");
yAxis.setForceZeroInRange(false);
yAxis.setAnimated(true);
return yAxis;
   }
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:17,代码来源:AltitudeProfileView.java

示例3: initYAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initYAxis() {
	final NumberAxis yAxis = new NumberAxis();
	yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
		@Override
		public String toString(final Number object) {
			return String.format("%6.2f", object);
		}
	});
	yAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	yAxis.setPrefWidth(120);
	yAxis.setAutoRanging(true);
	yAxis.setLabel("m/s");
	yAxis.setForceZeroInRange(false);
	yAxis.setAnimated(false);
	return yAxis;
}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:17,代码来源:VelocityProfileView.java

示例4: initYAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initYAxis() {
	final NumberAxis yAxis = new NumberAxis();
	yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
		@Override
		public String toString(final Number object) {
			return String.format("%6.2f", object);
		}
	});
	yAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	yAxis.setPrefWidth(120);
	yAxis.setAutoRanging(true);
	yAxis.setLabel("Meters");
	yAxis.setForceZeroInRange(false);
	yAxis.setAnimated(true);
	return yAxis;
}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:17,代码来源:EstimatedAltitudeProfileView.java

示例5: initYAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initYAxis() {
	final NumberAxis yAxis = new NumberAxis();
	yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
		@Override
		public String toString(final Number object) {
			return String.format("%6.2f", object);
		}
	});
	yAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	yAxis.setPrefWidth(120);
	yAxis.setAutoRanging(true);
	yAxis.setLabel("factor");
	yAxis.setForceZeroInRange(false);
	yAxis.setAnimated(false);
	return yAxis;
}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:17,代码来源:ErrorProfileView.java

示例6: initYAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initYAxis() {
	final NumberAxis yAxis = new NumberAxis();
	yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
		@Override
		public String toString(final Number object) {
			return String.format("%6.2f", object);
		}
	});
	yAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	yAxis.setPrefWidth(120);
	yAxis.setAutoRanging(true);
	yAxis.setLabel("m/s^2");
	yAxis.setForceZeroInRange(false);
	yAxis.setAnimated(false);
	return yAxis;
}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:17,代码来源:AccelerationProfileView.java

示例7: initYAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initYAxis() {
	final NumberAxis yAxis = new NumberAxis(800, 802, 0.1);
	yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
		@Override
		public String toString(final Number object) {
			return String.format("%6.2f", object);
		}
	});
	yAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	yAxis.setPrefWidth(120);
	yAxis.setAutoRanging(false);
	yAxis.setLabel("Meters");
	yAxis.setForceZeroInRange(false);
	yAxis.setAnimated(true);
	return yAxis;
}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:17,代码来源:AltitudeProfileView.java

示例8: createNode

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
@Override
public Node createNode() {
	xAxis = new CategoryAxis();
	xAxis.setAutoRanging(false);
	xAxis.setAnimated(false);

	yAxis = new NumberAxis();
	yAxis.setAnimated(false);
	yAxis.setPrefWidth(60d);
	yAxis.setAutoRanging(true);
	yAxis.setMaxWidth(60d);
	yAxis.setLabel("Violation Count");

	Series<String, Number> dataList = new Series<>(FXCollections.observableArrayList());
	dataList.setName("Priority");

	BarChart<String, Number> c = new BarChart<>(xAxis, yAxis);

	barChart.set(c);

	series = c.getData();

	series.add(0, dataList);
	this.dataList = dataList.getData();

	return c;
}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:28,代码来源:PMDViolationbyBarChartComposite.java

示例9: buildPopulationChart

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
/**
 * Creazione del populationChart
 * 
 * @param list
 *            lista degli stati della simulazione
 * @return grafico della popolazione
 */
public final PopulationChart<T> buildPopulationChart(StateList<T> list) {
	final NumberAxis xAxis = new NumberAxis();
	final NumberAxis yAxis = new NumberAxis();
	xAxis.setAutoRanging(true);
	xAxis.setLabel("Generation");
	yAxis.setLabel("Population");
	xAxis.setAnimated(false);
	yAxis.setAnimated(false);

	// creating the chart
	final PopulationChart<T> chart = new PopulationChart<T>(xAxis, yAxis, list);

	return chart;
}
 
开发者ID:Stefn93,项目名称:CellularAutomata,代码行数:22,代码来源:CellularAutomataBuilder.java

示例10: createElevationViewNode

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
/**
 * creates the Node that contans the elevation data.
 *
 * @return
 */
private Node createElevationViewNode() {
    // in front of the label is the chart
    NumberAxis xAxis = new NumberAxis();
    xAxis.setForceZeroInRange(false);
    xAxis.setAnimated(false);
    NumberAxis yAxis = new NumberAxis();
    yAxis.setForceZeroInRange(false);
    yAxis.setAnimated(false);
    elevationChart = new AreaChart<>(xAxis, yAxis);
    elevationChart.setCreateSymbols(false);
    // if the chart is set to animated, we get error message son the console when adding data
    elevationChart.setAnimated(false);
    return elevationChart;
}
 
开发者ID:sothawo,项目名称:trakxmap,代码行数:20,代码来源:TrakxmapApp.java

示例11: createChartExample

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
/**
 * Creates a JavaFx node example that contains a Chart
 * @return
 */
@SuppressWarnings("checkstyle:magicnumber")
private Parent createChartExample() {
	
	Parent rootNode;
	
	//define axes
	final NumberAxis xAxis = new NumberAxis();
	xAxis.setLabel("Number of Month");
	xAxis.setAnimated(false);
	
	final NumberAxis yAxis = new NumberAxis();
	yAxis.setLabel("Stock");
	yAxis.setAnimated(false);

	//creating line chart
	LineChart<Number, Number> lineChart = new LineChart<Number, Number>(xAxis, yAxis);
	lineChart.setTitle("Stock Monitoring, 2010");
	lineChart.setAnimated(false);
	
	//define a series
	XYChart.Series<Number, Number> series = new XYChart.Series<>();
	series.setName("My portfolio");		
	
	//populate the series with data
	series.getData().add(new XYChart.Data<Number, Number>(1.0, 23.0));
	series.getData().add(new XYChart.Data<Number, Number>(12.0, 44.0));
	
	//add series to line chart
	lineChart.getData().add(series);

	rootNode = lineChart;
	return rootNode;
}
 
开发者ID:stefaneidelloth,项目名称:JavaFxNodeToSvg,代码行数:38,代码来源:JavaFxNodeToSvgConverterDemo.java

示例12: initXAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initXAxis() {
	final NumberAxis xAxis = new NumberAxis(0,
			VelocityProfileView.MAX_DATA_POINTS,
			VelocityProfileView.MAX_DATA_POINTS / 10);
	xAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	xAxis.setForceZeroInRange(false);
	xAxis.setAutoRanging(false);
	xAxis.setAnimated(false);
	return xAxis;
}
 
开发者ID:knr1,项目名称:ch.bfh.mobicomp,代码行数:11,代码来源:VelocityProfileView.java

示例13: initXAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initXAxis() {
	final NumberAxis xAxis = new NumberAxis(0,
			ErrorProfileView.MAX_DATA_POINTS,
			ErrorProfileView.MAX_DATA_POINTS / 10);
	xAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	xAxis.setForceZeroInRange(false);
	xAxis.setAutoRanging(false);
	xAxis.setAnimated(false);
	return xAxis;

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

示例14: initXAxis

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
private NumberAxis initXAxis() {
	final NumberAxis xAxis = new NumberAxis(0,
			AccelerationProfileView.MAX_DATA_POINTS,
			AccelerationProfileView.MAX_DATA_POINTS / 10);
	xAxis.setTickLabelFont(Font.font("Arial", FontWeight.MEDIUM, 18));
	xAxis.setForceZeroInRange(false);
	xAxis.setAutoRanging(false);
	xAxis.setAnimated(false);
	return xAxis;

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

示例15: start

import javafx.scene.chart.NumberAxis; //导入方法依赖的package包/类
@Override
public void start(Stage stage)
{
	stage.setTitle("GEP Buffer Monitor");

	//defining the axes
	xAxis = new NumberAxis();
	xAxis.setAnimated(true);
	xAxis.setForceZeroInRange(false);

	yAxis = new NumberAxis();
	yAxis.setLabel("Messages in backlog");

	//creating the chart
	lineChart = new LineChart<Number,Number>(xAxis,yAxis);

	lineChart.setTitle("Message backlog for each Input/Output over time.");

	try
	{
		monitor = new Monitor( new String[0] );

		updateDisplay();

		Scene scene  = new Scene(lineChart,800,600);

		stage.setScene(scene);
		stage.show();

		updater.setDaemon(true);
		updater.start();
	}catch(Exception ex)
	{
		ex.printStackTrace();
	}
}
 
开发者ID:Esri,项目名称:backlog-monitor-for-geoevent,代码行数:37,代码来源:ChartDisplay.java


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