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 tk...@apache.org on 2001/02/08 16:00:37 UTC
cvs commit: xml-batik/samples/tests visibility.svg
tkormann 01/02/08 07:00:35
Added: samples/tests visibility.svg
Log:
small example
Revision Changes Path
1.1 xml-batik/samples/tests/visibility.svg
Index: visibility.svg
===================================================================
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.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 visibility -->
<!-- -->
<!-- @author tkormann@apache.com -->
<!-- @version $Id: visibility.svg,v 1.1 2001/02/08 15:00:27 tkormann Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<svg id="body" width="450" height="500" viewBox="0 0 450 500">
<title>Test visibility</title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="50" class="title">
Test 'visibility' property
</text>
<g transform="translate(40 80)">
<g id="table" style="fill:none; stroke:black">
<rect x="20" y="20" width="340" height="350"/>
<g style="fill:#EEEEEE">
<rect x="20" y="0" width="85" height="20"/>
<rect x="105" y="0" width="85" height="20"/>
<rect x="190" y="0" width="85" height="20"/>
<rect x="275" y="0" width="85" height="20"/>
<rect x="0" y="20" width="20" height="175"/>
<rect x="0" y="195" width="20" height="175"/>
</g>
<line x1="105" y1="20" x2="105" y2="370"/>
<line x1="190" y1="20" x2="190" y2="370"/>
<line x1="275" y1="20" x2="275" y2="370"/>
<line x1="20" y1="195" x2="360" y2="195"/>
</g>
<g id="legend" style="font-size:10pt; text-anchor:middle;fill:black;">
<text x="62.5" y="14">inherit</text>
<text x="147.5" y="14">collapse</text>
<text x="232.5" y="14">hidden</text>
<text x="318.5" y="14">visible</text>
<text transform="translate(14 110) rotate(-90)">orange <rect></text>
<text transform="translate(14 280) rotate(-90)"><g></text>
</g>
<!-- ############### -->
<g transform="translate(20 20)">
<g>
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="visibility:inherit;fill:orange"/>
</g>
<g transform="translate(85 0)">
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="visibility:collapse;fill:orange"/>
</g>
<g transform="translate(170 0)">
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="visibility:hidden;fill:orange"/>
</g>
<g transform="translate(255 0)">
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="visibility:visible;fill:orange"/>
</g>
<g transform="translate(0 175)">
<g style="visibility:inherit">
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="fill:orange"/>
</g>
<g style="visibility:collapse" transform="translate(85 0)">
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="fill:orange"/>
</g>
<g style="visibility:hidden" transform="translate(170 0)">
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="fill:orange"/>
</g>
<g style="visibility:visible" transform="translate(255 0)">
<rect x="15" y="45" width="40" height="50" style="fill:#FFEE88"/>
<rect x="35" y="70" width="40" height="50" style="fill:orange"/>
</g>
</g>
</g>
</g>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
</svg>