libcats.org
Главная

Java Drawing with Apache Batik: A Tutorial

Обложка книги Java Drawing with Apache Batik: A Tutorial

Java Drawing with Apache Batik: A Tutorial

Batik simplifies dealing with SVG content in Java based applications or applets. For example, using Batik's SVG generator module, a Java application or applet can easily export its graphics into the SVG format. Using Batik's SVG viewing component, an application or applet can also integrate SVG viewing and interaction capabilities without much trouble. Another possibility is to use Batik's modules to convert SVG to various formats, such as raster images (JPEG, PNG or TIFF) or other vector formats (WMF or PDF). This is a very good book for the Java programmer who wants to learn how to use Batik in their programs. Thus, prior knowledge of Java is assumed. The following is a run down of the chapters and their contents:



Chapter 1 Getting Started with Batik - discusses what Batik consists of and what the benefits of its modules are. In particular, this chapter explains how to use Squiggle to create, view, and manipulate an SVG document and how to use Rasterizer to export an SVG document to different formats.

Batik Overview

Batik in Real World Projects

Your First SVG Document

Using SVG Rasterizer

Using Pretty-Printer

What Else Comes with Batik?

Summary



Chapter 2 Creating SVG - shows you how to use one of the core modules in Batik, SVG Generator, in a simple Swing application that generates SVG documents with a single click.

Drawing in Java

Using SVG Creator

Other Features of SVG Generator

Summary



Chapter 3 Viewing SVG - discusses how to display SVG documents using JSVGCanvas, a specialized Swing component that comes with the Batik distribution.

Displaying Generated SVG Documents

JSVGCanvas Interactivity

Saving the Generated Document

Displaying an SVG File

Summary



Chapter 4 Working with Transcoders - explains how to use the Transcoder API to convert SVG images to raster formats such as JPEG, PNG, and TIFF.

The Transcoder API

Using Transcoders in Applications

Setting the Area of Interest

Using the SVGTranscoder for Pretty Printing

The Enhanced Version of the SVG File Viewer

Summary



Chapter 5 Document Object Model- explains that, behind the scenes, Batik uses the tree-like structure of the Document Object Model (DOM) to represent an SVG document. Using Batik, developers have full access to the DOM and can easily change the properties or structure of the document from Java code.

SVG Document as a DOM Tree

Creating Documents with the DOM API

Building an SVG Document

Working with Gradients

Using the DOM API

Other Thoughts

Summary



Chapter 6 Working with Text and Fonts - demonstrates the many ways of being creative with text. Shows that any font can be used in SVG documents and also shows how to convert a True Type FOnt to an SVG Font.

Using the text Element

SVG Fonts

Using the Font Converter

Using SVG Fonts in a Document

Text Workbench: SVG Writer

Text Elements, Text Nodes, and Text Content

Characters Positioning

Using tspan elements

Text Layout

Text on A Path

Text Selection

Summary



Chapter 7 Batik on the Server Side - puts Batik to the test in a couple of actual projects. Here you can find some interesting solutions for a Java-driven web site.

The SVG Graph Web Application

SVG Filter Effects

SVG Filters Web Application

Summary



Chapter 8 Batik Interactive - discusses the use of scripting in Batik. This chapter shows how to make your SVG images move and interact with the user. However, to accomplish this you do not need to resort to writing javaScript, as animation and interactivity can be defined directly in your Java applications.

SVG and Scripts

Interactivity

Animation

Scripting Alternatives

Using Java for Scripting

Adding Animation

Summary



Appendix A Introduction to XML



Appendix B Introduction to JavaScript
EPUB | FB2 | PDF | MOBI | TXT | RTF
* Конвертация файла может нарушить форматирование оригинала. По-возможности скачивайте файл в оригинальном формате.
Популярные книги за неделю:

Ключ к сверхсознанию

Автор:
Категория: Путь к себе
Размер книги: 309 Kb

Древо жизни

Автор:
Категория: Путь к себе
Размер книги: 1.70 Mb

Здоровье надо созидать

Автор:
Категория: Здоровье
Размер книги: 363 Kb

The Meme Machine

Автор:
Категория: psychology, memetics, sociology
Размер книги: 1.72 Mb
Только что пользователи скачали эти книги:

Однажды орел…

Автор:
Размер книги: 3.84 Mb

poisonedpins

Автор:
Размер книги: 19 Kb

Scattering Theory for Hyperbolic Operators

Автор:
Размер книги: 2.69 Mb

Relativity: The general theory

Автор:
Категория: Gravitation
Размер книги: 4.02 Mb

Сборник стихов

Автор:
Категория: Поэзия
Размер книги: 14 Kb

Grammar Scan: Diagnostic Tests for Practical English Usage

Автор: , Автор:
Категория: Языкознание
Размер книги: 4.30 Mb

Perdido Street Station

Автор:
Категория: fiction
Размер книги: 718 Kb