带有矢量图形的GUI的Scala库(Scala libraries for a GUI with vector graphics)

编程入门 行业动态 更新时间:2024-10-26 03:27:38
带有矢量图形的GUI的Scala库(Scala libraries for a GUI with vector graphics)

如果我想用一些基本的可选矢量图形(箭头,彩色框,文本)创建一个“好旧的”桌面GUI程序,主要显示文本和一些图表(不需要3D或粒子等),然后可以编辑用户,我将使用哪个Scala库,为什么? 我想为类似绘图的东西构建一个工具。

大多数情况下,我不想使用D3.js或其他Web SVG之类的东西,因为它很慢,无法显示我想要的内容量。 但是,如果使用Scala.js有特殊的优势,为此目的,如果没有更好的手段,它仍然是有意义的。

或者,有人可以指出我在哪里讨论过这个问题? 在Google或此处未找到任何内容。

If I wanted to create a "good old" desktop GUI program with some basic selectable vector graphics (arrows, colored boxes, text) to show mostly text and some diagrams (no need for 3D or particles, etc.) that then can be edited by the user, which Scala library would I use, and why? I'd want to build a tool for something similar to drawing diagrams.

Mostly I don't want to use things like D3.js or other web SVG stuff because it is painfully slow and can't show the amounts of content I want it to. But if there are exceptional advantages by using, say, Scala.js, for this purpose, it could be still of interest if there are no better means.

Alternatively, someone can point me to where this had been discussed? Did not find anything on Google or here.

最满意答案

Scala-Swing是Java Swing的包装器,非常好用。 您可能知道,在Swing下面是Java2D,因此您很可能希望寻找基于Java2D的库。 我所知道的Scala并不是那么多,而是Java(你可以轻松使用)。

JFreeChart和scala-chart - 更多用于制图 JGraph JUNG 处理可能有一些库用于您的用例 JHotDraw - 不确定它是否仍然保留 NetBeans - 不确定它是否仍然保留 Prefuse

当然,如果它足够简单,直接使用Java2D没有任何问题。

Scala-Swing is a wrapper for Java Swing which is quite nice. As you may know, below Swing lies Java2D, so you will most likely want to look for Java2D based libraries. There aren't that many for Scala that I'm aware of, but more for Java (which you can easily use).

JFreeChart and scala-chart - more for charting JGraph JUNG Processing might have some libraries for your use case JHotDraw - not sure it's still maintained NetBeans - not sure it's still maintained Prefuse

And of course, if it's simple enough, there is nothing wrong with using Java2D directly.

更多推荐

Scala,js,电脑培训,计算机培训,IT培训"/> <meta name="description" co

本文发布于:2023-08-04 17:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1420918.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:矢量   图形   GUI   Scala   vector

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!