Key features of SVG Salamander
masterSVG Salamander is a lightweight SVG engine for Java designed for speed and ease of integration, particularly for games and 2D graphics. Key capabilities include:
- Lightweight: Smaller footprint than Batik and distributed as a single JAR.
- Direct Scene Graph Access: Manipulate the SVG tree directly using Java commands.
- Shape Indexing: Easily access an index of all named shapes in the SVG graph.
- Coordinate Picking: Pick shapes based on (x, y) coordinates, useful for implementing mouse-driven graphical buttons.
- Efficient Rendering: Supports clip region sensitivity for fast partial updates (e.g., efficient camera panning) and renders to any
Graphics2DorBufferedImagecontext. - Flexible Input: Read SVG from an
InputStream(allowing for dynamic XSLT transformations) or via URIs (supporting remote server imports). - Simplified Loading: The
SVGIconclass simplifies the process of loading and drawing images to the screen. - Ant Integration: Includes an Ant task for converting SVG to images within Ant scripts.