1 package JSci.mathml; 2 3 import org.w3c.dom.mathml.*; 4 5 10 public class MathMLGlyphElementImpl extends MathMLElementImpl implements MathMLGlyphElement { 11 14 public MathMLGlyphElementImpl(MathMLDocumentImpl owner, String qualifiedName) { 15 super(owner, qualifiedName); 16 } 17 18 public String getAlt() { 19 return getAttribute("alt"); 20 } 21 public void setAlt(String alt) { 22 setAttribute("alt", alt); 23 } 24 25 public String getFontfamily() { 26 return getAttribute("fontfamily"); 27 } 28 public void setFontfamily(String 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 |