KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > mathml > MathMLGlyphElementImpl


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

10 public class MathMLGlyphElementImpl extends MathMLElementImpl implements MathMLGlyphElement {
11         /**
12          * Constructs a MathML glyph element.
13          */

14         public MathMLGlyphElementImpl(MathMLDocumentImpl owner, String JavaDoc qualifiedName) {
15                 super(owner, qualifiedName);
16         }
17
18         public String JavaDoc getAlt() {
19                 return getAttribute("alt");
20         }
21         public void setAlt(String JavaDoc alt) {
22                 setAttribute("alt", alt);
23         }
24
25         public String JavaDoc getFontfamily() {
26                 return getAttribute("fontfamily");
27         }
28         public void setFontfamily(String JavaDoc fontfamily) {
29                 setAttribute("fontfamily", fontfamily);
30         }
31
32         public int getIndex() {
33                 return Integer.parseInt(getAttribute("index"));
34         }
35         public void setIndex(int index) {
36                 setAttribute("index", Integer.toString(index));
37         }
38 }
39
40
Popular Tags