本文整理汇总了Java中javafx.scene.chart.Axis.setAnimated方法的典型用法代码示例。如果您正苦于以下问题:Java Axis.setAnimated方法的具体用法?Java Axis.setAnimated怎么用?Java Axis.setAnimated使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.chart.Axis
的用法示例。
在下文中一共展示了Axis.setAnimated方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CandleStickChart
import javafx.scene.chart.Axis; //导入方法依赖的package包/类
/**
* Construct a new CandleStickChart with the given axis.
*
* @param xAxis The x axis to use
* @param yAxis The y axis to use
*/
public CandleStickChart(Axis<Number> xAxis, Axis<Number> yAxis) {
super(xAxis, yAxis);
setAnimated(false);
xAxis.setAnimated(false);
yAxis.setAnimated(false);
}
示例2: CandleStickChart
import javafx.scene.chart.Axis; //导入方法依赖的package包/类
private CandleStickChart(CategoryDateAxis xAxis, Axis<Number> yAxis) {
super(xAxis, yAxis);
_xAxis = xAxis;
_yAxis = (NumberAxis) yAxis;
setAnimated(false);
xAxis.setAnimated(false);
yAxis.setAnimated(false);
_yAxis.setForceZeroInRange(false);
_xAxis.setLabel("Day");
_yAxis.setLabel("Price");
getPlotChildren().addAll(_highMarker, _lowMarker);
setTitle("Advance Trader Chart(2014)");
// create crossline
this.crossLine = new CrossLine(this, getChildren());
final Node chartBackground = this.lookup(".chart-plot-background");
for (Node n : chartBackground.getParent().getChildrenUnmodifiable()) {
if (n != chartBackground && n != _xAxis && n != _yAxis) {
n.setMouseTransparent(true);
}
}
this.setOnMouseMoved(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
crossLine.setLayoutXY(event.getX(), event.getY());
}
});
}
示例3: SimulationChart
import javafx.scene.chart.Axis; //导入方法依赖的package包/类
/**
* Costruttore del grafico
*
* @param xAxis
* Asse delle ascisse
* @param yAxis
* Asse delle ordinate
* @param states
* Lista degli stati
*/
public SimulationChart(Axis xAxis, Axis yAxis, StateList<T> states) {
super(xAxis, yAxis);
this.states = states;
xAxis.setAnimated(false);
yAxis.setAnimated(false);
this.setAnimated(false);
}