用于GUI的Java 2D场景图库 [英] Java 2D scene graph library for GUI

查看:268
本文介绍了用于GUI的Java 2D场景图库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找用于构建GUI应用程序的2D场景图库。它应该很快,使用Java2D并与Swing兼容(可嵌入Swing应用程序并显示Swing组件)。支持动画是一个优势。

I'm looking for a 2D scene graph library for building GUI applications. It should be fast, using Java2D and be compatible with Swing (embeddable in a Swing app and also display Swing components). Support for animations is a plus.


  • 你对某些图书馆有经验吗?

  • 有没有我错过的图书馆?

  • 我必须补充一点,我并没有完全被Scala图书馆冒犯。


  • 似乎相当快

  • 只有GPL(没有LGPL)

  • 支持动画

  • 2年前放弃

  • 作为JavaFX的前部分它是Sun产品

  • seems reasonably fast
  • only GPL (no LGPL)
  • supports animations
  • abandoned 2 years ago
  • as former part of JavaFX it's a Sun product

  • dunno是否快速

  • LGPL

  • 无动画

  • 上个版本Dec 09

  • dunno whether it's fast
  • LGPL
  • no animations
  • last version Dec 09

  • zoomable user interfaces

  • 看起来像一个学术项目

  • 高活动的谷歌代码项目

  • BSD许可证

  • dunno如果快速

  • 如果它做动画则不知道

  • for "zoomable user interfaces"
  • looks like an academic project
  • google code project with high activity
  • BSD licence
  • dunno if it's fast
  • dunno if it does animations

  • 是一个游戏库

  • 的目标是applet部署(使用它作为应用程序是hacky)

  • 非常快

  • 支持动画

  • 2 - 3年没有开发

  • 可能根本没有Swing支持

  • is a game library
  • is targeted at applet deployment (using it as application is hacky)
  • very fast
  • supports animations
  • no development for 2-3 years
  • probably no Swing support at all

  • 更大项目的一部分(乍一看)

  • freeBSD license

  • 没有动画支持

  • 看起来很小

  • part of a bigger project (at first glance)
  • freeBSD license
  • no animation support
  • looks very minimal

推荐答案

Piccolo2D,学术工作与否,写得很好。它有点受限但是做了它所承诺的(一个可缩放的图形)并且做得很快。它可以用于至少基本动画,例如移动,调整大小,颜色过渡等,但也可以做更多,因为它也允许正常绘制。对自定义事件有相当广泛的支持(这里UI方面真的很闪亮)。

Piccolo2D, "academic work" or not, is well written. It's somewhat limited but does what it promises (a zoom-able graph) and does it fast. It can be used for at least basic animations such as moving, resizing, color transitions, etc but more can be done as it allows "normal drawing" as well. Has pretty extensive support for events for customization (here the "UI aspect" really shines).

尝试一些模拟场景可能会很好如果真的认为这是一个问题,请测试性能/功能。 Piccolo非常灵活,可以根据需要进行手动管理 - 例如在不同的缩放比例下显示较少和/或聚合的对象。

It might be good just to try a few with "mocked" up scene to test for performance/features if this is really believed to be an issue. Piccolo is flexible enough to allow manual management if needed -- e.g. at different zooms display less and/or aggregate objects.

快乐编码。

这篇关于用于GUI的Java 2D场景图库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆