Java: create graphics without awt?

2019-04-06 09:35发布

Is there any library out there to create graphics without using AWT?
What I need is simple drawing functions (like to draw a line) and text drawing functions to create graphics in memory for a Google app engine application. App engine does not support AWT.

Thanks!

9条回答
Evening l夕情丶
2楼-- · 2019-04-06 10:15

I hesitate to mention PJA, which appears to work if the AWT classes are present, but the security manager prevents you from using them.

查看更多
相关推荐>>
3楼-- · 2019-04-06 10:16

You might also try the appengine-awt project, though it's a bit experimental.

查看更多
孤傲高冷的网名
4楼-- · 2019-04-06 10:16

'The Java 2D API is a set of classes for advanced 2D graphics and imaging, encompassing line art, text, and images' http://java.sun.com/products/java-media/2D/index.jsp

Here's another possibility: org.eclipse.draw2d It probably relies on eclipse SWT.

查看更多
该账号已被封号
5楼-- · 2019-04-06 10:16

TinyLine provides vector graphics support on the Google App Engine server side, and also provides SVG rendering support. See the SVG Thumbnail images demo.

查看更多
老娘就宠你
6楼-- · 2019-04-06 10:17

If you can use Python on GAE instead of Java, then there's pybmp.

查看更多
对你真心纯属浪费
7楼-- · 2019-04-06 10:18

Google Web Toolkit contains a nice graphics library designed for interfacing with the Google app engine.

edit to clarify: Google App Engine is designed for hosting applications on the web. You need to design graphics that can run in the browser. To do this, you need to write code in a web language, Javascript, for example. Google Web Toolkit contains a Java graphics library which compiles down to Javascript, saving you the effort of writing the Javascript yourself.

查看更多
登录 后发表回答