本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}