KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > dom > svg12 > SVGOMMultiImageElement


1 /*
2
3    Copyright 2002-2003 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.dom.svg12;
19
20 import org.apache.batik.dom.AbstractDocument;
21 import org.apache.batik.dom.svg.SVGStylableElement;
22 import org.apache.batik.util.SVG12Constants;
23
24 import org.w3c.dom.Node JavaDoc;
25
26 /**
27  * This class implements a multiImage extension to SVG.
28  *
29  * The 'multiImage' element is similar to the 'image' element (supports
30  * all the same attributes and properties) except.
31  * <ol>
32  * <li>It has two addtional attributes: 'pixel-width' and
33  * 'pixel-height' which are the maximum width and height of the
34  * image referenced by the xlink:href attribute.</li>
35  * <li>It can contain a child element 'subImage' which has
36  * two attributes, pixel-width, pixel-height.
37  * It holds SVG content to be rendered.</li>
38  * <li>It can contain a child element 'subImageRef' which has only
39  * three attributes, pixel-width, pixel-height and xlink:href.
40  * The image displayed is the smallest image such that
41  * pixel-width and pixel-height are greater than or equal to the
42  * required image size for display.</li>
43  * </ol>
44  *
45  * @author <a HREF="mailto:thomas.deweese@kodak.com">Thomas DeWeese</a>
46  * @version $Id: SVGOMMultiImageElement.java,v 1.1 2004/11/18 01:46:57 deweese Exp $ */

47 public class SVGOMMultiImageElement
48     extends SVGStylableElement {
49
50     /**
51      * Creates a new SVG MultiImageElement object.
52      */

53     protected SVGOMMultiImageElement() {
54     }
55
56     /**
57      * Creates a new SVG MultiImageElement object.
58      * @param prefix The namespace prefix.
59      * @param owner The owner document.
60      */

61     public SVGOMMultiImageElement(String JavaDoc prefix, AbstractDocument owner) {
62         super(prefix, owner);
63     }
64
65     /**
66      * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getLocalName()}.
67      */

68     public String JavaDoc getLocalName() {
69         return SVG12Constants.SVG_MULTI_IMAGE_TAG;
70     }
71
72     /**
73      * Returns a new uninitialized instance of this object's class.
74      */

75     protected Node JavaDoc newNode() {
76         return new SVGOMMultiImageElement();
77     }
78 }
79
Popular Tags