com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathAccent

  • All Implemented Interfaces:
    IMathAccent, IMathElement


    public final class MathAccent
    extends MathElementBase
    implements IMathAccent

    Specifies the accent function, consisting of a base and a combining diacritical mark Example: 𝑎́


    Example:
     
     IMathElement baseElement = new MathematicalText("x");
     MathAccent accent = new MathAccent(baseElement, '~');
     
    • Constructor Detail

      • MathAccent

        public MathAccent(IMathElement element)

        Creates a math accent applying to a specified math element with the default accent character value


        Example:
         
         IMathElement baseElement = new MathematicalText("x");
         MathAccent accent = new MathAccent(baseElement);
         
        Parameters:
        element - a math element to apply accent
      • MathAccent

        public MathAccent(IMathElement element,
                          char accentCharacter)

        Creates a math accent applying to a specified math element


        Example:
         
         IMathElement baseElement = new MathematicalText("x");
         MathAccent accent = new MathAccent(baseElement, '~');
         
        Parameters:
        element - math element to apply accent
        accentCharacter - accent character
    • Method Detail

      • getBase

        public final IMathElement getBase()

        The argument to which the accent was applied


        Example:
         
         IMathAccent accent = new MathematicalText("x").accent('~');
         IMathElement base = accent.getBase();
         
        Specified by:
        getBase in interface IMathAccent
      • getCharacter

        public final char getCharacter()

        Accent Character The value should be within the range of (U+0300–U+036F) or(U+20D0–U+20EF) Default value: Combining Circumflex Accent (U+0302)


        Example:
         
         IMathAccent accent = new MathematicalText("x").accent('~');
         char ch = accent.getCharacter();
         
        Specified by:
        getCharacter in interface IMathAccent
      • setCharacter

        public final void setCharacter(char value)

        Accent Character The value should be within the range of (U+0300–U+036F) or(U+20D0–U+20EF) Default value: Combining Circumflex Accent (U+0302)


        Example:
         
         IMathAccent accent = new MathematicalText("x").accent('~');
         char ch = accent.getCharacter();
         
        Specified by:
        setCharacter in interface IMathAccent