batik-1.7/ 0000755 0001750 0001750 00000000000 10740124544 012352 5 ustar vincent vincent batik-1.7/contrib/ 0000755 0001750 0001750 00000000000 10527045342 014013 5 ustar vincent vincent batik-1.7/contrib/charts/ 0000755 0001750 0001750 00000000000 10527056360 015301 5 ustar vincent vincent batik-1.7/contrib/charts/xml/ 0000755 0001750 0001750 00000000000 10527045342 016077 5 ustar vincent vincent batik-1.7/contrib/charts/xml/data.xml 0000644 0001750 0001750 00000010211 10527045342 017525 0 ustar vincent vincent
25500074778.12176895.72279491.88382136.99483806.98585052.68687249.84791087.80894992.48997919.1310101212.1511103540.0202550055073.23156523.02258513.11360394.70461359.47562228.44663341.27765208.29867718.87968927.731070599.731172210.7000255096667.00199930.002100449.003114722.004107342.005105519.006105411.00797556.008114184.009121402.0010127240.0011133445.00200500200500500500200200Q4/97Q1/98Q2/98Q3/98Q4/98Q1/99Q2/99Q3/99Q4/99Q1/00Q2/00Q3/00Q4/97Q1/98Q2/98Q3/98Q4/98Q1/99Q2/99Q3/99Q4/99Q1/00Q2/00Q3/00
batik-1.7/contrib/charts/xsl/ 0000755 0001750 0001750 00000000000 10527152452 016106 5 ustar vincent vincent batik-1.7/contrib/charts/xsl/bar.xsl 0000644 0001750 0001750 00000014214 10527152452 017404 0 ustar vincent vincent
10502000
batik-1.7/contrib/charts/xsl/column.xsl 0000644 0001750 0001750 00000013244 10527152452 020137 0 ustar vincent vincent
10502000
batik-1.7/contrib/charts/xsl/line.xsl 0000644 0001750 0001750 00000013325 10527152452 017571 0 ustar vincent vincent
10502000M L
batik-1.7/contrib/charts/xsl/pie.xsl 0000644 0001750 0001750 00000007467 10527152452 017431 0 ustar vincent vincent
angle start = angle = angle end = ,
batik-1.7/contrib/charts/README 0000644 0001750 0001750 00000001070 10527045342 016155 0 ustar vincent vincent #
# Author : Vincent Hardy
# Version : $Id: README 200341 2001-10-22 09:29:39Z vhardy $
#
Content of this directory
=========================
This directory contains XSL stylesheets to create charts from XML data.
This has been contributed by John Morrison (john.r.morrison@ntlworld.com).
The directory contains stylesheets for different kinds of charts,
such as bar charts and pie charts. The directory contains an example
of XML document that can be processed by the XSL stylesheets. The DTD has
not been contributed yet but will be added shortly.
batik-1.7/contrib/charts/convert.bat 0000644 0001750 0001750 00000003612 10527056360 017453 0 ustar vincent vincent @echo off
:: ----------------------------------------------------------------------------
::
:: Licensed to the Apache Software Foundation (ASF) under one or more
:: contributor license agreements. See the NOTICE file distributed with
:: this work for additional information regarding copyright ownership.
:: The ASF licenses this file to You under the Apache License, Version 2.0
:: (the "License"); you may not use this file except in compliance with
:: the License. You may obtain a copy of the License at
::
:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.
::
:: $Id: convert.bat 475543 2006-11-16 02:43:17Z cam $
:: ----------------------------------------------------------------------------
if '%1'=='' goto usage
set LOCALCLASSPATH=.
for %%1 in (..\..\lib\build\xalan*.jar) do call lcp.bat %%1
for %%1 in (..\..\lib\build\xerces*.jar) do call lcp.bat %%1
echo Using classpath: %LOCALCLASSPATH%
java -classpath %LOCALCLASSPATH% -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl org.apache.xalan.xslt.Process -IN xml\%1.xml -XSL xsl\%2.xsl -OUT out\%1-%2.svg -EDUMP
goto end
:usage
echo.
echo Usage: convert.bat xml-filename xslt-stylesheet
echo.
echo Example: convert.bat data bar
echo Will convert file xml\data.xml with stylesheet xsl\bar.xsl into out\data-bar.svg
:end
echo.
echo have a nice day ;-)
batik-1.7/contrib/charts/convert.sh 0000644 0001750 0001750 00000005037 10527045342 017320 0 ustar vincent vincent #!/bin/sh
# -----------------------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# $Id: convert.sh 475477 2006-11-15 22:44:28Z cam $
# ----------------------------------------------------------------------------
if [ "$1" = "" ] ; then
echo
echo "Usage : ./convert.sh xml-filename xslt-stylesheet"
echo
echo "Example: ./convert.sh data bar"
echo " Will convert file xml/data.xml with stylesheet xsl/bar.xsl into out/data-bar.svg"
exit 1
fi
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
exit 1
fi
LOCALCLASSPATH=.
for i in ../../lib/build/xalan*.jar ; do
LOCALCLASSPATH=${LOCALCLASSPATH}:$i
done
for i in ../../lib/build/xerces*.jar ; do
LOCALCLASSPATH=${LOCALCLASSPATH}:$i
done
echo "Using classpath: $LOCALCLASSPATH"
echo "$JAVA_HOME/bin/java -classpath $LOCALCLASSPATH -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl org.apache.xalan.xslt.Process -IN xml/$1.xml -XSL xsl/$2.xsl -OUT out/$1-$2.svg -EDUMP"
$JAVA_HOME/bin/java -classpath $LOCALCLASSPATH -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl org.apache.xalan.xslt.Process -IN xml/$1.xml -XSL xsl/$2.xsl -OUT out/$1-$2.svg -EDUMP
echo
echo "have a nice day ;-)"
batik-1.7/contrib/charts/lcp.bat 0000644 0001750 0001750 00000002124 10527056360 016546 0 ustar vincent vincent @echo off
:: ----------------------------------------------------------------------------
::
:: Licensed to the Apache Software Foundation (ASF) under one or more
:: contributor license agreements. See the NOTICE file distributed with
:: this work for additional information regarding copyright ownership.
:: The ASF licenses this file to You under the Apache License, Version 2.0
:: (the "License"); you may not use this file except in compliance with
:: the License. You may obtain a copy of the License at
::
:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.
::
:: $Id: lcp.bat 475543 2006-11-16 02:43:17Z cam $
:: ----------------------------------------------------------------------------
set LOCALCLASSPATH=%LOCALCLASSPATH%;%1
batik-1.7/contrib/fonts/ 0000755 0001750 0001750 00000000000 10527045342 015144 5 ustar vincent vincent batik-1.7/contrib/fonts/gladiator/ 0000755 0001750 0001750 00000000000 10527045342 017112 5 ustar vincent vincent batik-1.7/contrib/fonts/gladiator/svg/ 0000755 0001750 0001750 00000000000 10527045342 017711 5 ustar vincent vincent batik-1.7/contrib/fonts/gladiator/svg/glb12.svg 0000644 0001750 0001750 00000435573 10527045342 021362 0 ustar vincent vincent
batik-1.7/contrib/fonts/gladiator/README 0000644 0001750 0001750 00000000512 10527045342 017770 0 ustar vincent vincent #
# Author : Vincent Hardy
# Version : $Id: README 475209 2006-11-15 11:54:06Z cam $
#
Content of this directory
=========================
This directory contains fonts contributed by Bert Bos to the Apache Batik
project. The svg directory contains SVG fonts and the ttf directory contains
the fonts in the True Type format.
batik-1.7/contrib/jsvg/ 0000755 0001750 0001750 00000000000 10717571262 014772 5 ustar vincent vincent batik-1.7/contrib/jsvg/JSVG.java 0000644 0001750 0001750 00000005270 10533020602 016371 0 ustar vincent vincent /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.batik.apps.jsvg;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import org.apache.batik.swing.JSVGCanvas;
import org.apache.batik.swing.svg.SVGUserAgentGUIAdapter;
/**
* Simplest "complete" SVG Viewer using Batik.
*
* This is about as simple as an SVG viewer application can get.
* It shuts it's self down when all windows are closed.
* It reports errors interactively, and it takes a list of URI's
* to open.
*
* @author deweese
* @version $Id: JSVG.java 479617 2006-11-27 13:43:51Z dvholten $
*/
public class JSVG extends JFrame{
static int windowCount=0;
public JSVG(String url) {
super(url);
JSVGCanvas canvas = new JSVGCanvas(new SVGUserAgentGUIAdapter(this),
true, true) {
/**
* This method is called when the component knows the desired
* size of the window (based on width/height of outermost SVG
* element). We override it to immediately pack this frame.
*/
public void setMySize(Dimension d) {
setPreferredSize(d);
invalidate();
JSVG.this.pack();
}
};
getContentPane().add(canvas, BorderLayout.CENTER);
canvas.setURI(url);
setVisible(true);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
windowCount--;
if (windowCount == 0)
System.exit(0);
}
});
windowCount++;
}
public static void main(String[] args) {
for (int i=0; i