com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathBar

  • All Implemented Interfaces:
    IMathBar, IMathElement


    public final class MathBar
    extends MathElementBase
    implements IMathBar

    Specifies the bar function, consisting of a base argument and an overbar or underbar


    Example:
     
     MathBar mathBar = new MathBar(new MathematicalText("x"));
     
    • Constructor Detail

      • MathBar

        public MathBar(IMathElement element)

        Initializes MathBar with underbar


        Example:
         
         MathBar mathBar = new MathBar(new MathematicalText("x"));
         
        Parameters:
        element - The base element to which the bar is applied
      • MathBar

        public MathBar(IMathElement element,
                       int position)

        Initializes MathBar with specified position


        Example:
         
         MathBar mathBar = new MathBar(new MathematicalText("x"), MathTopBotPositions.Bottom);
         
        Parameters:
        element - The base element to which the bar is applied
        position - Position of the bar line.
    • Method Detail

      • getBase

        public final IMathElement getBase()

        Base argument


        Example:
         
         MathBar mathBar = new MathBar(new MathematicalText("x"));
         IMathElement base = mathBar.getBase();
         
        Specified by:
        getBase in interface IMathBar
      • getPosition

        public final int getPosition()

        Position of the bar line. Default: Top


        Example:
         
         MathBar mathBar = new MathBar(new MathematicalText("x"));
         mathBar.setPosition(MathTopBotPositions.Bottom);
         
        Specified by:
        getPosition in interface IMathBar
      • setPosition

        public final void setPosition(int value)

        Position of the bar line. Default: Top


        Example:
         
         MathBar mathBar = new MathBar(new MathematicalText("x"));
         mathBar.setPosition(MathTopBotPositions.Bottom);
         
        Specified by:
        setPosition in interface IMathBar