Java Drawing with Apache Batik: A Tutorial

Overview

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.

Read More Show Less
... See more details below
Paperback
$32.13
BN.com price
(Save 19%)$39.95 List Price
Other sellers (Paperback)
  • All (5) from $18.19   
  • New (3) from $18.19   
  • Used (2) from $22.45   
Sending request ...

Overview

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.

Read More Show Less

Product Details

  • ISBN-13: 9780975212899
  • Publisher: BrainySoftware
  • Publication date: 1/4/2007
  • Series: A Tutorial Series
  • Pages: 450
  • Product dimensions: 9.00 (w) x 7.00 (h) x 1.13 (d)

Meet the Author

Alexander Kolesnikov is a programmer and technical writer.

Read More Show Less

Table of Contents


Introduction     1
Getting Started with Batik     9
Batik Overview     9
Batik in Real World Projects     12
Your First SVG Document     12
Using SVG Rasterizer     19
Using Pretty-Printer     20
What Else Comes with Batik?     21
Summary     23
Creating SVG     25
Drawing in Java     25
Using SVG Creator     26
Other Features of SVG Generator     35
Summary     37
Viewing SVG     39
Displaying Generated SVG Documents     39
JSVGCanvas Interactivity     45
Saving the Generated Document     48
Displaying an SVG File     57
Summary     61
Working with Transcoders     63
The Transcoder API     63
Using Transcoders in Applications     66
Setting the Area of Interest     75
Using the SVGTranscoder for Pretty Printing     77
The Enhanced Version of the SVG File Viewer     78
Summary     82
Document Object Model     83
SVG Document as a DOM Tree     83
Creating Documents with the DOM API     85
Building an SVG Document     86
Working with Gradients     92
Using the DOM API     100
Other Thoughts     110
Summary     111
Working with Text and Fonts     113
Using the text Element     113
SVG Fonts     115
Using the Font Converter     116
Using SVG Fonts in a Document     117
Text Workbench: SVG Writer     120
Text Elements, Text Nodes, and Text Content     125
Characters Positioning     126
Using tspan elements     129
Text Layout     134
Text on A Path     140
Text Selection     148
Summary     150
Batik on the Server Side     151
The SVG Graph Web Application     151
SVG Filter Effects     163
SVG Filters Web Application     165
Summary     183
Batik Interactive     185
SVG and Scripts     185
Interactivity     187
Animation     189
Scripting Alternatives     195
Using Java for "Scripting"     196
Adding Animation     205
Summary      211
Introduction to XML     213
Benefits of XML     213
Well-Formed XML Documents     215
Validating XML Documents     218
Related XML Resources     227
Introduction to JavaScript     229
Your First Script     229
Variables     230
Arrays     231
Operators     232
Loops     237
Branching in JavaScript     240
Functions     244
Objects     245
Index     247
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)