Class MathMLGlyphElementImpl

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.episteme.core.mathematics.loaders.mathml.MathMLElementImpl
org.episteme.core.mathematics.loaders.mathml.MathMLGlyphElementImpl
All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, MathMLElement, MathMLGlyphElement, MathMLNodeList, MathMLPresentationElement, Node, NodeList, TypeInfo

public class MathMLGlyphElementImpl extends MathMLElementImpl implements MathMLGlyphElement
Implements a MathML glyph element.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • MathMLGlyphElementImpl

      public MathMLGlyphElementImpl(MathMLDocumentImpl owner, String qualifiedName)
      Constructs a MathML glyph element.
      Parameters:
      owner - the document that owns this element
      qualifiedName - the qualified name of the element
  • Method Details

    • getAlt

      public String getAlt()
      Gets the alt attribute of the glyph.
      Specified by:
      getAlt in interface MathMLGlyphElement
      Returns:
      the alternative text
    • setAlt

      public void setAlt(String alt)
      Sets the alt attribute of the glyph.
      Specified by:
      setAlt in interface MathMLGlyphElement
      Parameters:
      alt - the new alternative text
    • getFontfamily

      public String getFontfamily()
      Gets the font family attribute of the glyph.
      Specified by:
      getFontfamily in interface MathMLGlyphElement
      Returns:
      the font family
    • setFontfamily

      public void setFontfamily(String fontfamily)
      Sets the font family attribute of the glyph.
      Specified by:
      setFontfamily in interface MathMLGlyphElement
      Parameters:
      fontfamily - the new font family
    • getIndex

      public int getIndex()
      Gets the index attribute of the glyph.
      Specified by:
      getIndex in interface MathMLGlyphElement
      Returns:
      the glyph index
    • setIndex

      public void setIndex(int index)
      Sets the index attribute of the glyph.
      Specified by:
      setIndex in interface MathMLGlyphElement
      Parameters:
      index - the new glyph index