在Java中可视化矢量图形,哪个库? [英] Visualize vector graphics in Java, which library?

查看:221
本文介绍了在Java中可视化矢量图形,哪个库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要想象一个大的矢量图形。这是一条道路地图,道路只是线条。那有一个图书馆吗?如果该库支持放大/缩小并且易于扩展,那将是很好的。例如。实施道路选择或一些不错的鼠标悬停效果。许可证应允许在商业项目中使用。

I need to visualize a large vector graphic. It's a map of roads, the roads are just lines. Is there a library for that? It would be nice if that library had support for zoom-in/zoom-out and would be easy to extend. E.g. to implement selection of roads or some nice mouse-over effects. The licence should permit usage in a commercial project.

谢谢,菲利普

编辑:有没有理由没有使用Graphics2D或SWT Graphics? (该项目在SWT上,不涉及任何SVG。)

Is there a reason not to go with Graphics2D or SWT Graphics? (The project is on SWT and doesn't involve any SVGs.)

推荐答案

看看 Apache Batik


Batik是一个Java基于
的应用程序或applet的基于工具包的
使用可缩放矢量
图形(SVG)格式的图像用于各种
目的,例如显示,生成
或操纵。另一种可能性
是使用Batik的模块将
SVG转换为各种格式,例如光栅
图像(JPEG,PNG或TIFF)或其他
矢量格式(EPS或PDF,由于
Apache FOP提供的转码器,后者
2。最新版本的
Batik,1.7版,是一个符合
的静态SVG实现,支持
交互性,链接和编写SVG规范的
功能。

Batik is a Java-based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as display, generation or manipulation. Another possibility is to use Batik’s modules to convert SVG to various formats, such as raster images (JPEG, PNG or TIFF) or other vector formats (EPS or PDF, the latter two due to the transcoders provided by Apache FOP). The latest revision of Batik, release 1.7, is a conformant static SVG implementation and supports interactivity, linking and scripting features of the SVG specification.

另一个不错的选择是 FreeHEP VectorGraphics2D

Another good alternatives are FreeHEP and VectorGraphics2D

这篇关于在Java中可视化矢量图形,哪个库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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