Debian Codegraph @

documentation-sources/content/xdocs/index.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4
5 Licensed to the Apache Software Foundation (ASF) under one or more
6 contributor license agreements. See the NOTICE file distributed with
7 this work for additional information regarding copyright ownership.
8 The ASF licenses this file to You under the Apache License, Version 2.0
9 (the "License"); you may not use this file except in compliance with
10 the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 -->
21
22 <!-- ========================================================================= -->
23 <!-- author [email protected] -->
24 <!-- version $Id$ -->
25 <!-- ========================================================================= -->
26
27 <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
28 <document>
29 <header>
30 <title>Batik SVG Toolkit</title>
31 </header>
32
33 <body>
34 <section id="overview">
35 <title>Overview</title>
36
37 <p>
38 Batik is a Java-based toolkit for applications or applets that want to
39 use images in the <a href="site:svg11">Scalable Vector
40 Graphics (SVG)</a> format for various purposes, such as display,
41 generation or manipulation.
42 </p>
43
44 <p>
45 The project’s ambition is to give developers a set of
46 <a href="using/architecture.html#coreComponents">core modules</a> that can be
47 used together or individually to support specific SVG solutions.
48 Examples of <a href="site:modules">modules</a> are the
49 <a href="site:parsers">SVG Parser</a>, the
50 <a href="site:generator">SVG Generator</a> and the
51 <a href="site:dom-api">SVG DOM</a>. Another ambition for the Batik
52 project is to make it highly
53 <a href="site:extending">extensible</a>&#x2014;for example, Batik
54 allows the developer to handle custom SVG elements. Even though the goal
55 of the project is to provide a set of core modules, one of the
56 deliverables is a full fledged <a href="site:browser">SVG
57 browser</a> implementation which validates the various modules and
58 their inter-operability.
59 </p>
60 </section>
61
62 <section id="uses">
63 <title>What Batik can be used for</title>
64 <p>
65 <img class="floating" src="images/batikUses.jpg" alt="Batik use cases"/>
66 With Batik, you can manipulate SVG documents anywhere Java is
67 available. You can also use the various
68 <a href="site:modules">Batik modules</a> to
69 <a href="site:generator">generate</a>,
70 <a href="site:dom-api">manipulate</a> and
71 <a href="site:transcoder">transcode</a> SVG images in your
72 applications or applets.
73 </p>
74 <p>
75 Batik makes it easy for Java based applications or applets to
76 deal with SVG content. For example, using Batik’s
77 <a href="site:generator">SVG generator module</a>,
78 a Java application or applet can very easily export its
79 graphics into the SVG format. Using Batik’s
80 <a href="site:swing">SVG viewing component</a>, an application or
81 applet can very easily integrate SVG viewing and interaction
82 capabilities. Another possibility is to use Batik’s modules to convert
83 SVG to various formats, such as raster images
84 (<abbr title="Joint Photographic Expert Group">JPEG</abbr>,
85 <abbr title="Portable Network Graphics">PNG</abbr> or
86 <abbr title="Tagged Image File Format">TIFF</abbr>) or
87 other vector formats (<abbr title="Encapsulated PostScript">EPS</abbr> or
88 <abbr title="Portable Document Format">PDF</abbr>, the latter two due
89 to the transcoders provided by
90 <a href="http://xmlgraphics.apache.org/fop/">Apache FOP</a>).
91 </p>
92 <p>
93 The Batik toolkit includes the following:
94 </p>
95 <p><b>Modules</b></p>
96 <ul>
97 <!--li>A <a href="site:css">CSS engine</a></li-->
98 <li>An <a href="site:dom-api">SVG DOM implementation</a></li>
99 <li>A set of <a href="site:parsers">SVG microsyntax parsers</a></li>
100 <li>A <a href="site:scripting-ecmascript">scripting module</a></li>
101 <li>A <a href="site:generator">generator</a> that creates an SVG document from Java2D calls</li>
102 <li>A <a href="site:swing">Swing SVG component</a></li>
103 <li>A <a href="site:transcoder">transcoder module</a></li>
104 </ul>
105 <p><b>Tools and applications</b></p>
106 <ul>
107 <li>Squiggle, an <a href="site:browser">SVG browser</a></li>
108 <li>An <a href="site:rasterizer">SVG rasterizer</a></li>
109 <li>A <a href="site:font-converter">
110 <abbr title="TrueType Font">TTF</abbr> to SVG converter</a></li>
111 <li>A <a href="site:pretty-printer">pretty printer</a> for SVG
112 source files</li>
113 </ul>
114 <p>
115 See <a href="site:uses">examples of projects and products using
116 Batik</a> for real-life example of how Batik is already integrated in
117 projects and products.
118 </p>
119 </section>
120
121 <section id="spec">
122 <title>The SVG specification</title>
123 <p>
124 Scalable Vector Graphics, SVG, is a <a href="http://www.w3.org/">W3C</a>
125 Recommendation. It defines an XML grammar for rich 2D graphics
126 which includes features such as transparency, arbitrary geometry, filter
127 effects (shadows, lighting effects, etc.), scripting and animation.
128 </p>
129 <p>
130 The SVG specification states:
131 </p>
132 <p class="quote">
133 This specification defines the features and syntax for Scalable Vector
134 Graphics (SVG). SVG is a language for describing two-dimensional
135 graphics in XML [<a href="http://www.w3.org/TR/REC-xml">XML10</a>]. SVG
136 allows for three types of graphic objects: vector graphic shapes (e.g.,
137 paths consisting of straight lines and curves), images and text.
138 Graphical objects can be grouped, styled, transformed and composited
139 into previously rendered objects. The feature set includes nested
140 transformations, clipping paths, alpha masks, filter effects and
141 template objects.
142 </p>
143 <p>
144 SVG documents can be interactive and dynamic. Animations can be defined
145 and triggered either declaratively (i.e., by embedding SVG animation
146 elements in SVG content) or via scripting.
147 </p>
148 </section>
149
150 <section id="status">
151 <title>Implementation status</title>
152 <p>
153 The latest revision of Batik, release 1.7, is a conformant
154 <a href="http://www.w3.org/TR/SVG11/conform.html#ConformingSVGViewers">static
155 SVG implementation</a> and supports
156 <a href="http://www.w3.org/TR/SVG11/interact.html">interactivity</a>,
157 <a href="http://www.w3.org/TR/SVG11/linking.html">linking</a> and
158 <a href="http://www.w3.org/TR/SVG11/script.html">scripting</a> features
159 of the SVG specification. This release supports a nearly complete
160 implementation of declarative
161 <a href="http://www.w3.org/TR/SVG11/animate.html">animation</a>, too.
162 </p>
163
164 <p>
165 See the <a href="site:status">status</a> page for a detailed description
166 of the set of SVG features Batik supports.
167 </p>
168 </section>
169
170 <section id="download">
171 <title>Download Batik</title>
172 <p>
173 You can get the Batik distribution, source and binary, from the
174 <a href="site:download">download page</a>.
175 </p>
176
177 <note>
178 All other libraries needed by Batik are included in the distribution.
179 As a consequence the Batik archive is quite big, but after you have
180 downloaded it, you will not need anything else.
181 </note>
182
183 <warning id="SecurityWarning" label="Security warning">
184 <p>
185 This is a warning that a script security issue was reported in
186 the Batik Squiggle browser. Squiggle uses the Rhino scripting
187 engine and some features of that engine can be leveraged by
188 malicious scripts to gain access to otherwise protected
189 resources (like the file system). This issue was fixed in the
190 1.5.1 release of Batik. If you are using a version of Batik older than
191 1.5.1, you should upgrade.
192 </p>
193 </warning>
194 </section>
195
196 </body>
197 </document>