tkormann 01/10/15 05:15:51 Added: samples/tests/spec/paints linearGradientOrientation.svg Log: new test for linear gradient orientation Revision Changes Path 1.1 xml-batik/samples/tests/spec/paints/linearGradientOrientation.svg Index: linearGradientOrientation.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: linearGradientOrientation.svg,v 1.1 2001/10/15 12:15:51 tkormann Exp $ --> <!-- ========================================================================= --> <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> <svg width="450" height="500" viewBox="0 0 450 500"> <title>Linear Gradient Orientation</title> <!-- ============================================================= --> <!-- Test content --> <!-- ============================================================= --> <g id="testContent"> <text x="225" y="50" class="title">Linear Gradient Orientation</text> <!-- ############################### --> <g id="board" style="fill:none; stroke:black;"> <rect x="75" y="100" width="150" height="20" style="fill:#eee"/> <rect x="225" y="100" width="150" height="20" style="fill:#eee"/> <rect x="75" y="120" width="150" height="50" /> <rect x="225" y="120" width="150" height="50" /> <g transform="translate(0 80)"> <rect x="75" y="100" width="150" height="20" style="fill:#eee"/> <rect x="225" y="100" width="150" height="20" style="fill:#eee"/> <rect x="75" y="120" width="150" height="50" /> <rect x="225" y="120" width="150" height="50" /> </g> <g transform="translate(0 180)"> <rect x="75" y="100" width="150" height="20" style="fill:#eee"/> <rect x="225" y="100" width="150" height="20" style="fill:#eee"/> <rect x="75" y="120" width="150" height="50" /> <rect x="225" y="120" width="150" height="50" /> </g> <g transform="translate(0 260)"> <rect x="75" y="100" width="150" height="20" style="fill:#eee"/> <rect x="225" y="100" width="150" height="20" style="fill:#eee"/> <rect x="75" y="120" width="150" height="50" /> <rect x="225" y="120" width="150" height="50" /> </g> <g style="stroke:none; fill:black; text-anchor:middle; font-size:12"> <text x="150" y="114">x1 < x2 / y1 = y2</text> <text x="300" y="114">x1 > x2 / y1 = y2</text> <g transform="translate(0 80)"> <text x="150" y="114">x1 = x2 / y1 < y2</text> <text x="300" y="114">x1 = x2 / y1 > y2</text> </g> <g transform="translate(0 180)"> <text x="150" y="114">x1 < x2 / y1 < y2</text> <text x="300" y="114">x1 < x2 / y1 > y2</text> </g> <g transform="translate(0 260)"> <text x="150" y="114">x1 > x2 / y1 < y2</text> <text x="300" y="114">x1 > x2 / y1 > y2</text> </g> </g> </g> <!-- ############################### --> <defs> <linearGradient id="genericGrad"> <stop style="stop-color:crimson" offset="0" /> <stop style="stop-color:orange" offset=".5" /> <stop style="stop-color:gold" offset="1" /> </linearGradient> <!-- ### first board ### --> <linearGradient id="grad1" x1="0" y1="1" x2="1" y2="1" xlink:href="#genericGrad" /> <linearGradient id="grad2" x1="1" y1="1" x2="0" y2="1" xlink:href="#genericGrad" /> <!-- ### second board ### --> <linearGradient id="grad3" x1="0" y1="0" x2="0" y2="1" xlink:href="#genericGrad" /> <linearGradient id="grad4" x1="0" y1="1" x2="0" y2="0" xlink:href="#genericGrad" /> <!-- ### third board ### --> <linearGradient id="grad5" x1="0" y1="0" x2="1" y2="1" xlink:href="#genericGrad" /> <linearGradient id="grad6" x1="0" y1="1" x2="1" y2="0" xlink:href="#genericGrad" /> <!-- ### fourth board ### --> <linearGradient id="grad7" x1="1" y1="0" x2="0" y2="1" xlink:href="#genericGrad" /> <linearGradient id="grad8" x1="1" y1="1" x2="0" y2="0" xlink:href="#genericGrad" /> </defs> <rect x="85" y="130" width="130" height="30" fill="url(#grad1)"/> <rect x="235" y="130" width="130" height="30" fill="url(#grad2)"/> <g transform="translate(0 80)"> <rect x="85" y="130" width="130" height="30" fill="url(#grad3)"/> <rect x="235" y="130" width="130" height="30" fill="url(#grad4)"/> </g> <g transform="translate(0 180)"> <rect x="85" y="130" width="130" height="30" fill="url(#grad5)"/> <rect x="235" y="130" width="130" height="30" fill="url(#grad6)"/> </g> <g transform="translate(0 260)"> <rect x="85" y="130" width="130" height="30" fill="url(#grad7)"/> <rect x="235" y="130" width="130" height="30" fill="url(#grad8)"/> </g> </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]