Skip to content

SVG Salamander - SVG engine for Java

Notifications You must be signed in to change notification settings

JFormDesigner/svgSalamander

 
 

Repository files navigation

SVG Salamander

SVG Salamander is an SVG engine for Java that's designed to be small, fast, and allow programmers to use it with a minimum of fuss. It's in particular targeted for making it easy to integrate SVG into Java games and making it much easier for artists to design 2D game content - from rich interactive menus to charts and graphics to complex animations.

Features

  • Ant task to allow easy conversion from SVG to images from within Ant scripts
  • SVGIcon class greatly simplifies loading and drawing images to screen
  • A much smaller code foot print than Batik, and only one JAR file to include
  • Direct access to the scene graph tree. You can use Java commands to manipulate it directly.
  • An index of all named shapes in the SVG graph is easily accessible.
  • Picking shapes given (x, y) coordinates is possible, and can be used to implement graphical buttons selected by the mouse
  • Clip region sensitivity makes for fast rendering when only updating part of the image. This makes panning the camera quite efficient.
  • Easy rendering to any Graphics2D or BufferedImage. Unlike Batik, the SVG Salamander engine does not own the graphics context, so you can pass it whatever graphics context you like.
  • Internal and external links are implemented as URIs, which allows the engine to automatically import linked documents - even if they're stored on a remote server.
  • SVG can be read from an InputStream, so you can create documents dynamically from an in-program XSLT transformation.

Documentation

An overview of how to use SVG Salamader in your project.

Current status

SVG Salamander is part of the Salamander project hosted on http://www.kitfox.com

Download

SVG Salamander binaries are available on Maven Central.

If you use Maven or Gradle, add a dependency with following coordinates to your build script:

groupId:     com.formdev
artifactId:  svgSalamander
version:     (see button below)

Otherwise download svgSalamander-<version>.jar here:

Maven Central

Snapshots

SVG Salamander snapshot binaries are available on Sonatype OSSRH. To access the latest snapshot, change the SVG Salamander version in your dependencies to <version>-SNAPSHOT and add the repository https://oss.sonatype.org/content/repositories/snapshots/ to your build (see Maven and Gradle docs).

License

SVG Salamander is available under two licenses. You may choose to use either the LGPL license or the BSD license - whichever is more appropriate for your project.

About

SVG Salamander - SVG engine for Java

Topics

Resources

Stars

Watchers

Forks

Languages

  • Java 94.1%
  • HTML 5.1%
  • Other 0.8%