You are previewing Java™ Drawing with Apache Batik: A Tutorial.
O'Reilly logo
Java™ Drawing with Apache Batik: A Tutorial

Book Description

This guide to Apache Batik—the Java library that can be used to read SVG files and translate the instructions in the files into graphics—shows how Batik can also be used to save the graphics as JPEG, TIFF, PNG, GIF, and other formats, so that the graphics can be transferred. Using Batik to create animation similar to Flash movies and its use for creating a drawing program such as Corel DRAW are also covered.

Table of Contents

  1. Copyright
  2. Introduction
    1. SVG, the Universal Language for Graphics
    2. SVG in the Real World
    3. Meet Apache Batik
    4. Overview of the Chapters
    5. Downloading and Installing Batik
    6. Code Download
  3. Getting Started with Batik
    1. Batik Overview
    2. Batik in Real World Projects
    3. Your First SVG Document
    4. Using SVG Rasterizer
    5. Using Pretty-Printer
    6. What Else Comes with Batik?
    7. Summary
  4. Creating SVG
    1. Drawing in Java
    2. Using SVG Creator
    3. Other Features of SVG Generator
    4. Summary
  5. Viewing SVG
    1. Displaying Generated SVG Documents
    2. JSVGCanvas Interactivity
    3. Saving the Generated Document
    4. Displaying an SVG File
    5. Summary
  6. Working with Transcoders
    1. The Transcoder API
    2. Using Transcoders in Applications
    3. Setting the Area of Interest
    4. Using the SVGTranscoder for Pretty Printing
    5. The Enhanced Version of the SVG File Viewer
    6. Summary
  7. Document Object Model
    1. SVG Document as a DOM Tree
    2. Creating Documents with the DOM API
    3. Building an SVG Document
    4. Working with Gradients
    5. Using the DOM API
    6. Other Thoughts
    7. Summary
  8. Working with Text and Fonts
    1. Using the text Element
    2. SVG Fonts
    3. Using the Font Converter
    4. Using SVG Fonts in a Document
    5. Text Workbench: SVG Writer
    6. Text Elements, Text Nodes, and Text Content
    7. Characters Positioning
    8. Using tspan elements
    9. Text Layout
    10. Text on A Path
    11. Text Selection
    12. Summary
  9. Batik on the Server Side
    1. The SVG Graph Web Application
    2. SVG Filter Effects
    3. SVG Filters Web Application
    4. Summary
  10. Batik Interactive
    1. SVG and Scripts
    2. Interactivity
    3. Animation
    4. Scripting Alternatives
    5. Using Java for “Scripting”
    6. Adding Animation
    7. Summary
  11. Introduction to XML
    1. Benefits of XML
    2. Well-Formed XML Documents
    3. Validating XML Documents
    4. Related XML Resources
  12. Introduction to JavaScript
    1. Your First Script
    2. Variables
    3. Arrays
    4. Operators
    5. Loops
    6. Branching in JavaScript
    7. Functions
    8. Objects