tkormann 01/10/12 01:52:51 Added: samples/tests defs.svg defs2.svg externalPaints.svg Log: add a new test for external paint servers. Revision Changes Path 1.1 xml-batik/samples/tests/defs.svg Index: defs.svg =================================================================== <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- ========================================================================= --> <!-- Copyright (C) The Apache Software Foundation. All rights reserved. --> <!-- --> <!-- This software is published under the terms of the Apache Software License --> <!-- version 1.1, a copy of which has been included with this distribution in --> <!-- the LICENSE file. --> <!-- ========================================================================= --> <!-- ========================================================================= --> <!-- Test description here --> <!-- --> <!-- @author [EMAIL PROTECTED] --> <!-- @version $Id: defs.svg,v 1.1 2001/10/12 08:52:51 tkormann Exp $ --> <!-- ========================================================================= --> <?xml-stylesheet type="text/css" href="test.css" ?> <svg width="450" height="500" viewBox="0 0 450 500"> <text x="225" y="50" class="title">Not a test - only contains definitions</text> <defs> <!-- ###################################################################### --> <linearGradient id="linearSimpleReference" x1=".5" y1="0" x2=".5" y2="1"> <stop style="stop-color:blue" offset="0" /> <stop style="stop-color:white" offset=".5" /> <stop style="stop-color:gold" offset=".51" /> <stop style="stop-color:crimson" offset="1" /> </linearGradient> <radialGradient id="radialSimpleReference" fx=".2" fy=".2"> <stop style="stop-color:white" offset="0" /> <stop style="stop-color:gold" offset=".2" /> <stop style="stop-color:orange" offset="1" /> </radialGradient> <pattern id="patternSimpleReference" x="0" y="0" width="10" height="10" viewBox="0 0 10 10" patternContentUnits="userSpaceOnUse" patternUnits="userSpaceOnUse"> <rect x="0" y="0" width="5" height="5" style="fill:crimson" /> <rect x="5" y="0" width="5" height="5" style="fill:orange" /> <rect x="0" y="5" width="5" height="5" style="fill:gold" /> <rect x="5" y="5" width="5" height="5" style="fill:white" /> </pattern> <!-- ###################################################################### --> <linearGradient id="linearDoubleReference" x1="0" y1=".5" x2="1" y2=".5" xlink:href="#linearSimpleReference" /> <radialGradient id="radialDoubleReference" fx=".8" fy=".8" xlink:href="#radialSimpleReference" /> <pattern id="patternDoubleReference" x="0" y="0" width="10" height="10" viewBox="0 0 20 20" patternContentUnits="userSpaceOnUse" patternUnits="userSpaceOnUse" xlink:href="#patternSimpleReference" /> <!-- ###################################################################### --> <linearGradient id="linearExtReference" x1="0" y1="0" x2="1" y2="1" xlink:href="defs2.svg#linear" /> <radialGradient id="radialExtReference" fx=".2" fy=".8" xlink:href="defs2.svg#radial" /> <pattern id="patternExtReference" x="0" y="0" width="10" height="10" viewBox="0 0 10 10" patternContentUnits="userSpaceOnUse" patternUnits="userSpaceOnUse" patternTransform="rotate(45)" xlink:href="defs2.svg#pattern" /> </defs> </svg> 1.1 xml-batik/samples/tests/defs2.svg Index: defs2.svg =================================================================== <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- ========================================================================= --> <!-- Copyright (C) The Apache Software Foundation. All rights reserved. --> <!-- --> <!-- This software is published under the terms of the Apache Software License --> <!-- version 1.1, a copy of which has been included with this distribution in --> <!-- the LICENSE file. --> <!-- ========================================================================= --> <!-- ========================================================================= --> <!-- Test description here --> <!-- --> <!-- @author [EMAIL PROTECTED] --> <!-- @version $Id: defs2.svg,v 1.1 2001/10/12 08:52:51 tkormann Exp $ --> <!-- ========================================================================= --> <?xml-stylesheet type="text/css" href="test.css" ?> <svg width="450" height="500" viewBox="0 0 450 500"> <text x="225" y="50" class="title">Not a test - only contains definitions</text> <defs> <linearGradient id="linear"> <stop style="stop-color:blue" offset="0" /> <stop style="stop-color:white" offset=".5" /> <stop style="stop-color:gold" offset=".51" /> <stop style="stop-color:crimson" offset="1" /> </linearGradient> <radialGradient id="radial"> <stop style="stop-color:white" offset="0" /> <stop style="stop-color:gold" offset=".2" /> <stop style="stop-color:orange" offset="1" /> </radialGradient> <pattern id="pattern"> <rect x="0" y="0" width="5" height="5" style="fill:crimson" /> <rect x="5" y="0" width="5" height="5" style="fill:orange" /> <rect x="0" y="5" width="5" height="5" style="fill:gold" /> <rect x="5" y="5" width="5" height="5" style="fill:white" /> </pattern> </defs> </svg> 1.1 xml-batik/samples/tests/externalPaints.svg Index: externalPaints.svg =================================================================== <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- ========================================================================= --> <!-- Copyright (C) The Apache Software Foundation. All rights reserved. --> <!-- --> <!-- This software is published under the terms of the Apache Software License --> <!-- version 1.1, a copy of which has been included with this distribution in --> <!-- the LICENSE file. --> <!-- ========================================================================= --> <!-- ========================================================================= --> <!-- Test external paint servers --> <!-- --> <!-- @author [EMAIL PROTECTED] --> <!-- @version $Id: externalPaints.svg,v 1.1 2001/10/12 08:52:51 tkormann Exp $ --> <!-- ========================================================================= --> <?xml-stylesheet type="text/css" href="test.css" ?> <svg width="450" height="500" viewBox="0 0 450 500"> <title>Test external paint servers</title> <!-- ============================================================= --> <!-- Test content --> <!-- ============================================================= --> <g id="testContent"> <text x="225" y="50" class="title">External Paint Servers</text> <text x="225" y="70" style="text-anchor:middle; font-size:12; font-style:italic">This file is using the defs.svg file to get the external resources</text> <!-- ############################### --> <g id="board" style="fill:none; stroke:black;"> <rect x="75" y="100" width="100" height="20" style="fill:#eee"/> <rect x="175" y="100" width="100" height="20" style="fill:#eee"/> <rect x="275" y="100" width="100" height="20" style="fill:#eee"/> <rect x="55" y="120" width="20" height="100" style="fill:#eee"/> <rect x="55" y="220" width="20" height="100" style="fill:#eee"/> <rect x="55" y="320" width="20" height="100" style="fill:#eee"/> <rect x="75" y="120" width="100" height="300"/> <rect x="175" y="120" width="100" height="300"/> <rect x="275" y="120" width="100" height="300"/> <line x1="75" y1="220" x2="375" y2="220" /> <line x1="75" y1="320" x2="375" y2="320" /> <g style="font-size:12; text-anchor:middle; fill:black; stroke:none"> <text x="125" y="114">Linear Gradient</text> <text x="225" y="114">Radial Gradient</text> <text x="325" y="114">Pattern</text> <text x="0" y="0" transform="translate(70 170) rotate(-90)">Simple Reference</text> <text x="0" y="0" transform="translate(70 270) rotate(-90)">Inheritance</text> <text x="0" y="0" transform="translate(70 370) rotate(-90)">Ext. Inheritance</text> </g> </g> <!-- ############################### --> <circle cx="125" cy="170" r="40" style="fill:url(defs.svg#linearSimpleReference)"/> <circle cx="225" cy="170" r="40" style="fill:url(defs.svg#radialSimpleReference)"/> <circle cx="325" cy="170" r="40" style="fill:url(defs.svg#patternSimpleReference)" /> <circle cx="125" cy="270" r="40" style="fill:url(defs.svg#linearDoubleReference)"/> <circle cx="225" cy="270" r="40" style="fill:url(defs.svg#radialDoubleReference)"/> <circle cx="325" cy="270" r="40" style="fill:url(defs.svg#patternDoubleReference)" /> <circle cx="125" cy="370" r="40" style="fill:url(defs.svg#linearExtReference)"/> <circle cx="225" cy="370" r="40" style="fill:url(defs.svg#radialExtReference)"/> <circle cx="325" cy="370" r="40" style="fill:url(defs.svg#patternExtReference)"/> </g> <!-- ============================================================= --> <!-- Batik sample mark --> <!-- ============================================================= --> <use xlink:href="../batikLogo.svg#Batik_Tag_Box" /> </svg>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]