01: package JSci.mathml;
02:
03: import org.w3c.dom.mathml.*;
04:
05: /**
06: * Implements a MathML padded element.
07: * @version 1.0
08: * @author Mark Hale
09: */
10: public class MathMLPaddedElementImpl extends
11: MathMLPresentationContainerImpl implements MathMLPaddedElement {
12: /**
13: * Constructs a MathML padded element.
14: */
15: public MathMLPaddedElementImpl(MathMLDocumentImpl owner,
16: String qualifiedName) {
17: super (owner, qualifiedName);
18: }
19:
20: public String getWidth() {
21: return getAttribute("width");
22: }
23:
24: public void setWidth(String width) {
25: setAttribute("width", width);
26: }
27:
28: public String getLspace() {
29: return getAttribute("lspace");
30: }
31:
32: public void setLspace(String lspace) {
33: setAttribute("lspace", lspace);
34: }
35:
36: public String getHeight() {
37: return getAttribute("height");
38: }
39:
40: public void setHeight(String height) {
41: setAttribute("height", height);
42: }
43:
44: public String getDepth() {
45: return getAttribute("depth");
46: }
47:
48: public void setDepth(String depth) {
49: setAttribute("depth", depth);
50: }
51: }
|