在 JavaFX 2.0 中将 ScatterChart 的图像复制到系统剪贴板
我需要将 JavaFX 2.0 中的 ScatterChart 复制到系统剪贴板。我不太确定如何使用盆栽点复制散点图的整个图像。
I need to copy a ScatterChart in JavaFX 2.0 to the system clipboard. I'm not really sure how to copy the whole image of the ScatterChart with the potted points.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不再需要任何机器人来截取屏幕截图
Gets rid of the need for any bots to take screenshots
请参阅下一段代码。我为所有非 javafx 类添加了完整的包名称,以避免导入混乱。
注意:此方法涉及将 AWT 与 JavaFX 并行使用,这通常不是一个好主意,并且可能不适用于所有配置。最好使用
GlassRobot
而不是AWTRobot
。不幸的是它还不够稳定。See next piece of code. I've added full package names for all non-javafx classes to avoid imports mess.
N.B.: this approach involves using AWT side-by-side with JavaFX which is generally not a good idea and may not work on all configuration. It's better to use
GlassRobot
instead ofAWTRobot
. Unfortunately it's not stable enough yet.