You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2002/02/26 10:33:35 UTC

cvs commit: xml-batik/samples/tests/spec/interactivity cursor.svg

vhardy      02/02/26 01:33:35

  Added:       samples/tests/spec/interactivity cursor.svg
  Log:
  First pass at cursor test
  
  Revision  Changes    Path
  1.1                  xml-batik/samples/tests/spec/interactivity/cursor.svg
  
  Index: cursor.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.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Tests support for the cursor property.                                    -->
  <!--                                                                           -->
  <!-- @author vhardy@apache.org                                                 -->
  <!-- @version $Id: cursor.svg,v 1.1 2002/02/26 09:33:35 vhardy 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">
  
      <text class="title" x="50%" y="50">Cursor Property</text>
  
      <defs>
          <rect x="-50" y="-16" width="100" height="20" id="cell"/>
          <g id="row">
              <use xlink:href="#cell" />
              <rect x="50" y="-16" width="20" height="20" fill="gold" stroke="black" />
          </g>
  
          <use id="oddRow" xlink:href="#row" stroke="black" fill="white" />
          <use id="evenRow" xlink:href="#row" stroke="black" fill="#eeeeee" />
      </defs>
  
      <g transform="translate(200, 150) scale(1.5)" class="label" text-anchor="middle">
          <use xlink:href="#oddRow" cursor="auto"/>
          <text>auto</text>
          <g transform="translate(0,20)" cursor="crosshair">
              <use xlink:href="#evenRow"/>
              <text>crosshair</text>
          </g>
          <g transform="translate(0,40)" cursor="default">
              <use xlink:href="#oddRow"/>
              <text>default</text>
          </g>
          <g transform="translate(0,60)" cursor="pointer">
              <use xlink:href="#evenRow"/>
              <text>pointer</text>
          </g>
          <g transform="translate(0,80)" cursor="move">
              <use xlink:href="#oddRow"/>
              <text>move</text>
          </g>
          <g transform="translate(0,100)" cursor="text">
              <use xlink:href="#evenRow"/>
              <text>text</text>
          </g>
          <g transform="translate(0,120)" cursor="wait">
              <use xlink:href="#oddRow"/>
              <text>wait</text>
          </g>
          <g transform="translate(0,140)" cursor="help">
              <use xlink:href="#evenRow"/>
              <text>help</text>
          </g>
      </g>
  
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <!-- <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> -->
   
  </svg>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org