1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sourceforge.jeuclid.elements.presentation.general;
20
21 import net.sourceforge.jeuclid.elements.presentation.AbstractContainer;
22
23 import org.apache.batik.dom.AbstractDocument;
24 import org.w3c.dom.Node;
25 import org.w3c.dom.mathml.MathMLPaddedElement;
26
27
28
29
30
31
32
33
34 public final class Mpadded extends AbstractContainer implements
35 MathMLPaddedElement {
36
37
38 public static final String ATTR_DEPTH = "depth";
39
40
41 public static final String ATTR_HEIGHT = "height";
42
43
44 public static final String ATTR_LSPACE = "lspace";
45
46
47 public static final String ATTR_WIDTH = "width";
48
49
50
51
52 public static final String ELEMENT = "mpadded";
53
54 private static final long serialVersionUID = 1L;
55
56
57
58
59
60
61
62
63
64 public Mpadded(final String qname, final AbstractDocument odoc) {
65 super(qname, odoc);
66 }
67
68
69 @Override
70 protected Node newNode() {
71 return new Mpadded(this.nodeName, this.ownerDocument);
72 }
73
74
75 public String getDepth() {
76 return this.getMathAttribute(Mpadded.ATTR_DEPTH);
77 }
78
79
80 public String getHeight() {
81 return this.getMathAttribute(Mpadded.ATTR_HEIGHT);
82 }
83
84
85 public String getLspace() {
86 return this.getMathAttribute(Mpadded.ATTR_LSPACE);
87 }
88
89
90 public String getWidth() {
91 return this.getMathAttribute(Mpadded.ATTR_WIDTH);
92 }
93
94
95 public void setDepth(final String depth) {
96 this.setAttribute(Mpadded.ATTR_DEPTH, depth);
97 }
98
99
100 public void setHeight(final String height) {
101 this.setAttribute(Mpadded.ATTR_HEIGHT, height);
102 }
103
104
105 public void setLspace(final String lspace) {
106 this.setAttribute(Mpadded.ATTR_LSPACE, lspace);
107 }
108
109
110 public void setWidth(final String width) {
111 this.setAttribute(Mpadded.ATTR_WIDTH, width);
112 }
113
114 }