KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLPaddedElementImpl


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

10 public class MathMLPaddedElementImpl extends MathMLPresentationContainerImpl implements MathMLPaddedElement {
11         /**
12          * Constructs a MathML padded element.
13          */

14         public MathMLPaddedElementImpl(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 getLspace() {
26                 return getAttribute("lspace");
27         }
28         public void setLspace(String JavaDoc lspace) {
29                 setAttribute("lspace", lspace);
30         }
31
32         public String JavaDoc getHeight() {
33                 return getAttribute("height");
34         }
35         public void setHeight(String JavaDoc height) {
36                 setAttribute("height", height);
37         }
38
39         public String JavaDoc getDepth() {
40                 return getAttribute("depth");
41         }
42         public void setDepth(String JavaDoc depth) {
43                 setAttribute("depth", depth);
44         }
45 }
46
47
Popular Tags