label.setRotate(270)
.这是代码示例.
LineChart chart = new LineChart(new CategoryAxis(), new NumberAxis());
chart.setLegendVisible(false);
/**
* Grid pane which contain the charts and vertical label to indicate for the row title
*/
GridPane root = new GridPane();
root.add(chart, 0, 0);
/**
* Want to add vertical label to refer to the row title.
*/
Label label = new Label("Row Title");
label.setRotate(270);
// label.setMinWidth(200);
root.add(label, 1, 0);
Run Code Online (Sandbox Code Playgroud)更新
setMinWidth(200)
出现另一个问题时.
归档时间: |
|
查看次数: |
1603 次 |
最近记录: |