當前位置: 首頁>>代碼示例>>Java>>正文


Java NumberAxis.setTickLabelFont方法代碼示例

本文整理匯總了Java中javafx.scene.chart.NumberAxis.setTickLabelFont方法的典型用法代碼示例。如果您正苦於以下問題:Java NumberAxis.setTickLabelFont方法的具體用法?Java NumberAxis.setTickLabelFont怎麽用?Java NumberAxis.setTickLabelFont使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javafx.scene.chart.NumberAxis的用法示例。


在下文中一共展示了NumberAxis.setTickLabelFont方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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

示例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("m/s^2");
	yAxis.setForceZeroInRange(false);
	yAxis.setAnimated(false);
	return yAxis;
}
 
開發者ID:knr1,項目名稱:ch.bfh.mobicomp,代碼行數:17,代碼來源:AccelerationProfileView.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("factor");
	yAxis.setForceZeroInRange(false);
	yAxis.setAnimated(false);
	return yAxis;
}
 
開發者ID:knr1,項目名稱:ch.bfh.mobicomp,代碼行數:17,代碼來源:ErrorProfileView.java

示例7: 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

示例8: initXAxis

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

}
 
開發者ID:knr1,項目名稱:ch.bfh.mobicomp,代碼行數:11,代碼來源:EstimatedAltitudeProfileView.java

示例9: initXAxis

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

}
 
開發者ID:knr1,項目名稱:ch.bfh.mobicomp,代碼行數:11,代碼來源:AltitudeProfileView.java

示例10: initXAxis

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

   }
 
開發者ID:knr1,項目名稱:ch.bfh.mobicomp,代碼行數:11,代碼來源:AltitudeProfileView.java

示例11: 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

示例12: 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


注:本文中的javafx.scene.chart.NumberAxis.setTickLabelFont方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。