Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 javafx.scene.chart.LineChart 中显示 Rectangle 对象?将这样的数据添加到图表系列似乎没有帮助
new XYChart.Data<Number, Number>(point.getX(), point.getY(), new Rectangle(point.getX(), point.getY(), 10, 10) {{ setFill(Color.BLACK); }}
XYChart.Data 构造函数的 3d 参数是一个额外的值而不是节点值:)