weisJ / svgSalamander

SVG Salamander - SVG engine for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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 both under the BSD and LGPL licenses.

About

SVG Salamander - SVG engine for Java


Languages

Language:Java 94.0%Language:HTML 5.2%Language:GLSL 0.5%Language:XSLT 0.1%Language:JavaScript 0.1%Language:CSS 0.1%