Skip to main content

Integrating vector graphics into Swing

2 replies [Last post]
Joined: 2005-01-03
Points: 0

It would be a great idea to add vector graphic capabilities into Swing. Swing has to keep up with Quartz (MacOS X) and Avalon (Windows Longhorn) if Java wants to play a role on desktops in the feature. Maybe this could be done with Batik.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-09-22
Points: 0

I was thinking the same while i was trying to make a synth theme, it would be really nice to have an svgpainter (like imagepainter)

Joined: 2003-08-12
Points: 0

I don't know if there is already a way to paint SVG to an java.awt.Graphics using Batik. But there is a Transcoding-API in Batik, that does this and writes it to disk/stream (as JPG, PNG, ...) maybe one can create an Transcoder that would render to Graphics (or better Graphics2D) then you would have an svgpainter.

But taking Batik as part of the Mustang kernel would be overkill. That would explode the size of the java kernel.