tkormann    02/03/07 02:19:11

  Added:       samples/tests/spec/paints linearGradientLine.svg
  Log:
  add a new test for linear gradient that shows a bug in
  MultipleGradientPaintContext - the AffineTransform is not
  invertible
  
  Revision  Changes    Path
  1.1                  xml-batik/samples/tests/spec/paints/linearGradientLine.svg
  
  Index: linearGradientLine.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.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Linear gradient on line.                                                  -->
  <!--                                                                           -->
  <!-- @author [EMAIL PROTECTED]                                                  -->
  <!-- @version $Id: linearGradientLine.svg,v 1.1 2002/03/07 10:19:10 tkormann Exp $ 
-->
  <!-- ========================================================================= -->
  <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  
  <svg xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; 
       id="body" width="450" height="500" viewBox="0 0 450 500">
  
      <title>Linear gradient on lines</title>
  
      <text x="50%" y="45" class="title">Linear gradient on lines</text>
  
      <g id="testContent">
  
  <defs>
          <linearGradient id="hGrad" x1="0" y1="0" x2="1" y2="0">
                  <stop offset="0" style="stop-color:crimson" />
                  <stop offset="1" style="stop-color:gold" />
          </linearGradient>
          <linearGradient id="vGrad" x1="0" y1="0" x2="0" y2="1">
                  <stop offset="0" style="stop-color:crimson" />
                  <stop offset="1" style="stop-color:gold" />
          </linearGradient>
          <linearGradient id="hvGrad" x1="0" y1="0" x2="1" y2="1">
                  <stop offset="0" style="stop-color:crimson" />
                  <stop offset="1" style="stop-color:gold" />
          </linearGradient>
  </defs>
  
  <g style="fill:#eee;stroke:black">
          <rect x="75" y="100" width="300" height="20"  />
          <rect x="55" y="120" width="20" height="300" />
  </g>
  
  <g style="fill:none;stroke:black">
          <rect x="75" y="120" width="300" height="300" />
          <line x1="175" y1="100" x2="175" y2="420" />
          <line x1="275" y1="100" x2="275" y2="420" />
          <line x1="55" y1="270" x2="375" y2="270" />
  </g>
  <g style="text-anchor:middle; fill:black; stroke:none">
          <text x="225" y="115">hGradient</text>
          <text x="125" y="115">vGradient</text>
          <text x="325" y="115">hvGradient</text>
  
          <text transform="translate(70 200)rotate(-90)">horizontal &lt;line></text>
          <text transform="translate(70 350)rotate(-90)">vertical &lt;Line></text>
  </g>
  
          <line x1="85" y1="195" x2="165" y2="195" style="stroke:url(#hGrad)" />
          <line x1="185" y1="195" x2="265" y2="195" style="stroke:url(#vGrad)"/>
          <line x1="285" y1="195" x2="365" y2="195" style="stroke:url(#hvGrad)"/>
  
          <line x1="120" y1="285" x2="120" y2="405" style="stroke:url(#hGrad)"/>
          <line x1="220" y1="285" x2="220" y2="405" style="stroke:url(#vGrad)"/>
          <line x1="320" y1="285" x2="320" y2="405" style="stroke:url(#hvGrad)"/>
  
  
      </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]

Reply via email to