KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLPresentationTokenImpl


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

10 public class MathMLPresentationTokenImpl extends MathMLElementImpl implements MathMLPresentationToken {
11         /**
12          * Constructs a MathML presentation token.
13          */

14         public MathMLPresentationTokenImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
15                 super(owner, qualifiedName);
16         }
17
18         public String JavaDoc getMathvariant() {
19                 return getAttribute("mathvariant");
20         }
21         public void setMathvariant(String JavaDoc mathvariant) {
22                 setAttribute("mathvariant", mathvariant);
23         }
24
25         public String JavaDoc getMathsize() {
26                 return getAttribute("mathsize");
27         }
28         public void setMathsize(String JavaDoc mathsize) {
29                 setAttribute("mathsize", mathsize);
30         }
31
32         public String JavaDoc getMathfamily() {
33                 return getAttribute("mathfamily");
34         }
35         public void setMathfamily(String JavaDoc mathfamily) {
36                 setAttribute("mathfamily", mathfamily);
37         }
38
39         public String JavaDoc getMathcolor() {
40                 return getAttribute("mathcolor");
41         }
42         public void setMathcolor(String JavaDoc mathcolor) {
43                 setAttribute("mathcolor", mathcolor);
44         }
45
46         public String JavaDoc getMathbackground() {
47                 return getAttribute("mathbackground");
48         }
49         public void setMathbackground(String JavaDoc mathbackground) {
50                 setAttribute("mathbackground", mathbackground);
51         }
52
53         public MathMLNodeList getContents() {
54                 return (MathMLNodeList) getChildNodes();
55         }
56 }
57
58
Popular Tags