| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| 3 |
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
|
| 7 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 8 |
contributor license agreements. See the NOTICE file distributed with |
| 9 |
this work for additional information regarding copyright ownership. |
| 10 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 11 |
(the "License"); you may not use this file except in compliance with |
| 12 |
the License. You may obtain a copy of the License at |
| 13 |
|
| 14 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 15 |
|
| 16 |
Unless required by applicable law or agreed to in writing, software |
| 17 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
See the License for the specific language governing permissions and |
| 20 |
limitations under the License. |
| 21 |
|
| 22 |
--> |
| 23 |
<!-- ========================================================================= --> |
| 24 |
<!-- Image element references an SVG file --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
|
| 30 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 31 |
|
| 32 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" |
| 33 |
width="450" height="500" viewBox="0 0 450 500" onmouseover="alert('Hello')"> |
| 34 |
<title>Alert on mouse events</title> |
| 35 |
|
| 36 |
<defs> |
| 37 |
<script type="text/ecmascript"> |
| 38 |
|
| 39 |
function showDialog(msg) { |
| 40 |
alert(msg); |
| 41 |
} |
| 42 |
|
| 43 |
</script> |
| 44 |
</defs> |
| 45 |
|
| 46 |
<!-- ============================================================= --> |
| 47 |
<!-- Test content --> |
| 48 |
<!-- ============================================================= --> |
| 49 |
<g id="testContent" onmouseover="alert('Hello')"> |
| 50 |
<text x="225" y="30" class="title">Alert on mouse events</text> |
| 51 |
</g> |
| 52 |
|
| 53 |
|
| 54 |
<!-- ########## board ############ --> |
| 55 |
<g style="stroke:black"> |
| 56 |
<g> |
| 57 |
<rect x="50" y="60" width="350" height="20" style="fill:#eee"/> |
| 58 |
<rect x="50" y="80" width="350" height="60" style="fill:none"/> |
| 59 |
</g> |
| 60 |
<g transform="translate(0 80)"> |
| 61 |
<rect x="50" y="60" width="350" height="20" style="fill:#eee"/> |
| 62 |
<rect x="50" y="80" width="350" height="60" style="fill:none"/> |
| 63 |
</g> |
| 64 |
<g transform="translate(0 160)"> |
| 65 |
<rect x="50" y="60" width="350" height="20" style="fill:#eee"/> |
| 66 |
<rect x="50" y="80" width="350" height="60" style="fill:none"/> |
| 67 |
</g> |
| 68 |
<line x1="225" y1="60" x2="225" y2="300" /> |
| 69 |
</g> |
| 70 |
<g style="fill:black; stroke:none; text-anchor:middle; font-size:14"> |
| 71 |
<g> |
| 72 |
<text x="137.5" y="75">mousedown</text> |
| 73 |
<text x="312.5" y="75">mouseup</text> |
| 74 |
</g> |
| 75 |
<g transform="translate(0 80)"> |
| 76 |
<text x="137.5" y="75">mouseover</text> |
| 77 |
<text x="312.5" y="75">mouseout</text> |
| 78 |
</g> |
| 79 |
<g transform="translate(0 160)"> |
| 80 |
<text x="137.5" y="75">mousemove</text> |
| 81 |
<text x="312.5" y="75">onclick</text> |
| 82 |
</g> |
| 83 |
</g> |
| 84 |
|
| 85 |
<!-- ########## content ############ --> |
| 86 |
<g> |
| 87 |
<circle cx="137.5" cy="110" r="20" style="fill:crimson" onmousedown="showDialog('onmousedown')"/> |
| 88 |
<circle cx="312.5" cy="110" r="20" style="fill:crimson" onmouseup="showDialog('onmouseup')"/> |
| 89 |
</g> |
| 90 |
<g transform="translate(0 80)"> |
| 91 |
<circle cx="137.5" cy="110" r="20" style="fill:crimson" onmouseover="showDialog('onmouseover')"/> |
| 92 |
<circle cx="312.5" cy="110" r="20" style="fill:crimson" onmouseout="showDialog('onmouseout')"/> |
| 93 |
</g> |
| 94 |
<g transform="translate(0 160)"> |
| 95 |
<circle cx="137.5" cy="110" r="20" style="fill:crimson" onmousemove="showDialog('onmousemove')"/> |
| 96 |
<circle cx="312.5" cy="110" r="20" style="fill:crimson" onclick="showDialog('onclick')"/> |
| 97 |
</g> |
| 98 |
|
| 99 |
|
| 100 |
<!-- ============================================================= --> |
| 101 |
<!-- Batik sample mark --> |
| 102 |
<!-- ============================================================= --> |
| 103 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 104 |
|
| 105 |
</svg> |