com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathNaryOperator

  • All Implemented Interfaces:
    IMathElement, IMathNaryOperator, IMathNaryOperatorProperties


    public final class MathNaryOperator
    extends MathElementBase
    implements IMathNaryOperator

    Specifies an N-ary mathematical object, such as Summation and Integral. It consists of an operator, a base (or operand), and optional upper and lower limits. Examples of N-ary operators are: Summation, Union, Intersection, Integral


    Example:
     
     IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
     
    • Constructor Detail

      • MathNaryOperator

        public MathNaryOperator(char operatorSymbol,
                                IMathElement baseArgument,
                                IMathElement lowerLimit,
                                IMathElement upperLimit)

        Initializes a new instance of the MathNaryOperator class.


        Example:
         
         IMathNaryOperator naryOperator = new MathNaryOperator('∑', new MathematicalText("i"), new MathematicalText("i=0"), new MathematicalText("𝑛"));
         
        Parameters:
        operatorSymbol - Nary operator symbol
        baseArgument - Base argument
        lowerLimit - Lower limit
        upperLimit - Upper limit
      • MathNaryOperator

        public MathNaryOperator(char operatorSymbol,
                                IMathElement baseArgument,
                                IMathElement lowerLimit)

        Initializes a new instance of the MathNaryOperator class.


        Example:
         
         IMathNaryOperator naryOperator = new MathNaryOperator('∑', new MathematicalText("i"), new MathematicalText("i"));
         
        Parameters:
        operatorSymbol - Nary operator symbol
        baseArgument - Base argument
        lowerLimit - Lower limit
      • MathNaryOperator

        public MathNaryOperator(char operatorSymbol,
                                IMathElement baseArgument)

        Initializes a new instance of the MathNaryOperator class.


        Example:
         
         IMathNaryOperator naryOperator = new MathNaryOperator('∑', new MathematicalText("i"));
         
        Parameters:
        operatorSymbol - Nary operator symbol
        baseArgument - Base argument
    • Method Detail

      • getBase

        public final IMathElement getBase()

        Base argument


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         IMathElement baseArg = naryOperator.getBase();
         
        Specified by:
        getBase in interface IMathNaryOperator
      • getSubscript

        public final IMathElement getSubscript()

        Specifies a subscript argument that, for example, in the case of an integral, sets the lower limit


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         IMathElement subscriptArg = naryOperator.getSubscript();
         
        Specified by:
        getSubscript in interface IMathNaryOperator
      • getSuperscript

        public final IMathElement getSuperscript()

        Specifies a supersript argument that, for example, in the case of an integral, sets the upper limit


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         IMathElement superscriptArg = naryOperator.getSuperscript();
         
        Specified by:
        getSuperscript in interface IMathNaryOperator
      • getOperator

        public final char getOperator()

        Nary Operator Character For example: '∑', '∫'


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         char operatorSymbol = naryOperator.getOperator();
         
        Specified by:
        getOperator in interface IMathNaryOperatorProperties
      • setOperator

        public final void setOperator(char value)

        Nary Operator Character For example: '∑', '∫'


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         char operatorSymbol = naryOperator.getOperator();
         
        Specified by:
        setOperator in interface IMathNaryOperatorProperties
      • getLimitLocation

        public final int getLimitLocation()

        The location of limits (subscript and superscript)


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setLimitLocation(MathLimitLocations.SubscriptSuperscript);
         
        Specified by:
        getLimitLocation in interface IMathNaryOperatorProperties
      • setLimitLocation

        public final void setLimitLocation(int value)

        The location of limits (subscript and superscript)


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setLimitLocation(MathLimitLocations.SubscriptSuperscript);
         
        Specified by:
        setLimitLocation in interface IMathNaryOperatorProperties
      • getGrowToMatchOperandHeight

        public final boolean getGrowToMatchOperandHeight()

        Operator Character grows vertically to match its operand height


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setGrowToMatchOperandHeight(true);
         
        Specified by:
        getGrowToMatchOperandHeight in interface IMathNaryOperatorProperties
      • setGrowToMatchOperandHeight

        public final void setGrowToMatchOperandHeight(boolean value)

        Operator Character grows vertically to match its operand height


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setGrowToMatchOperandHeight(true);
         
        Specified by:
        setGrowToMatchOperandHeight in interface IMathNaryOperatorProperties
      • getHideSubscript

        public final boolean getHideSubscript()

        Hide Subscript


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setHideSubscript(true);
         
        Specified by:
        getHideSubscript in interface IMathNaryOperatorProperties
      • setHideSubscript

        public final void setHideSubscript(boolean value)

        Hide Subscript


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setHideSubscript(true);
         
        Specified by:
        setHideSubscript in interface IMathNaryOperatorProperties
      • getHideSuperscript

        public final boolean getHideSuperscript()

        Hide Superscript


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setHideSuperscript(true);
         
        Specified by:
        getHideSuperscript in interface IMathNaryOperatorProperties
      • setHideSuperscript

        public final void setHideSuperscript(boolean value)

        Hide Superscript


        Example:
         
         IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
         naryOperator.setHideSuperscript(true);
         
        Specified by:
        setHideSuperscript in interface IMathNaryOperatorProperties