com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathRadical

  • All Implemented Interfaces:
    IMathElement, IMathRadical


    public final class MathRadical
    extends MathElementBase
    implements IMathRadical

    Specifies the radical function, consisting of a base, and an optional degree. Example of radical object is √𝑥.


    Example:
     
     MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
     
    • Constructor Detail

      • MathRadical

        public MathRadical(IMathElement baseArgument,
                           IMathElement degreeArgument)

        Initializes a new instance of the MathRadical class.


        Example:
         
         MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
         
        Parameters:
        baseArgument - Base
        degreeArgument - Degree
    • Method Detail

      • getBase

        public final IMathElement getBase()

        Base argument


        Example:
         
         MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
         IMathElement baseElem = radical.getBase();
         
        Specified by:
        getBase in interface IMathRadical
      • getDegree

        public final IMathElement getDegree()

        Degree argument


        Example:
         
         MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
         IMathElement degreeElem = radical.getDegree();
         
        Specified by:
        getDegree in interface IMathRadical
      • getHideDegree

        public final boolean getHideDegree()

        Hide degree When is true, the degree is not shown, as in √𝑥


        Example:
         
         MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
         radical.setHideDegree(true);
         
        Specified by:
        getHideDegree in interface IMathRadical
      • setHideDegree

        public final void setHideDegree(boolean value)

        Hide degree When is true, the degree is not shown, as in √𝑥


        Example:
         
         MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
         radical.setHideDegree(true);
         
        Specified by:
        setHideDegree in interface IMathRadical