KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLSpaceElementImpl


1 package JSci.mathml;
2
3 import org.w3c.dom.mathml.*;
4
5 /**
6  * Implements a MathML space element.
7  * @version 1.0
8  * @author Mark Hale
9  */

10 public class MathMLSpaceElementImpl extends MathMLElementImpl implements MathMLSpaceElement {
11         /**
12          * Constructs a MathML space element.
13          */

14         public MathMLSpaceElementImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
15                 super(owner, qualifiedName);
16         }
17
18         public String JavaDoc getWidth() {
19                 return getAttribute("width");
20         }
21         public void setWidth(String JavaDoc width) {
22                 setAttribute("width", width);
23         }
24
25         public String JavaDoc getHeight() {
26                 return getAttribute("height");
27         }
28         public void setHeight(String JavaDoc height) {
29                 setAttribute("height", height);
30         }
31
32         public String JavaDoc getDepth() {
33                 return getAttribute("depth");
34         }
35         public void setDepth(String JavaDoc depth) {
36                 setAttribute("depth", depth);
37         }
38 }
39
40
Popular Tags