com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathArray

  • All Implemented Interfaces:
    IMathArray, IMathElement


    public final class MathArray
    extends MathElementBase
    implements IMathArray

    Specifies a vertical array of equations or any mathematical objects


    Example:
     
     MathArray mathArray = new MathArray(new MathematicalText("item1"));
     
    • Constructor Detail

      • MathArray

        public MathArray(IMathElement element)

        Creates a mathematical array and places the specified element in it


        Example:
         
         MathArray mathArray = new MathArray(new MathematicalText("item1"));
         
        Parameters:
        element - The element to place in the array
      • MathArray

        public MathArray(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IMathElement> elements)

        Creates a mathematical array and places specified elements in it

        Parameters:
        elements - Elements to place in the array
    • Method Detail

      • getArguments

        public final IMathElementCollection getArguments()

        The set of items of the array


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.getArguments().add(new MathematicalText("item2"));
         
        Specified by:
        getArguments in interface IMathArray
      • getBaseJustification

        public final int getBaseJustification()

        Specifies alignment of the array relative to surrounding text Text outside of the array can be aligned with the bottom, top, or center of a array object. Default value: Center


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setBaseJustification(MathVerticalAlignment.Top);
         
        Specified by:
        getBaseJustification in interface IMathArray
      • setBaseJustification

        public final void setBaseJustification(int value)

        Specifies alignment of the array relative to surrounding text Text outside of the array can be aligned with the bottom, top, or center of a array object. Default value: Center


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setBaseJustification(MathVerticalAlignment.Top);
         
        Specified by:
        setBaseJustification in interface IMathArray
      • getMaximumDistribution

        public final boolean getMaximumDistribution()

        Maximum Distribution When true, the array is spaced to the maximum width of the containing element(page, column, cell, etc.).


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setMaximumDistribution(true);
         
        Specified by:
        getMaximumDistribution in interface IMathArray
      • setMaximumDistribution

        public final void setMaximumDistribution(boolean value)

        Maximum Distribution When true, the array is spaced to the maximum width of the containing element(page, column, cell, etc.).


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setMaximumDistribution(true);
         
        Specified by:
        setMaximumDistribution in interface IMathArray
      • getObjectDistribution

        public final boolean getObjectDistribution()

        Object Distribution When true, the contents of the array are spaced to the maximum width of the array object.


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setObjectDistribution(true);
         
        Specified by:
        getObjectDistribution in interface IMathArray
      • setObjectDistribution

        public final void setObjectDistribution(boolean value)

        Object Distribution When true, the contents of the array are spaced to the maximum width of the array object.


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setObjectDistribution(true);
         
        Specified by:
        setObjectDistribution in interface IMathArray
      • getRowSpacingRule

        public final int getRowSpacingRule()

        The type of vertical spacing between array elements Default: SingleLineGap


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setRowSpacingRule(MathRowSpacingRule.OneAndAHalfLineGap);
         
        Specified by:
        getRowSpacingRule in interface IMathArray
      • setRowSpacingRule

        public final void setRowSpacingRule(int value)

        The type of vertical spacing between array elements Default: SingleLineGap


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setRowSpacingRule(MathRowSpacingRule.OneAndAHalfLineGap);
         
        Specified by:
        setRowSpacingRule in interface IMathArray
      • getRowSpacing

        public final long getRowSpacing()

        Spacing between rows of an array It is used only when RowSpacingRule is set to 3 Exactly in which case the unit of measure is points or Multiple in which case the unit of measure is half-lines. Default: 0


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setRowSpacingRule(MathRowSpacingRule.Exactly);
         mathArray.setRowSpacing(10);
         
        Specified by:
        getRowSpacing in interface IMathArray
      • setRowSpacing

        public final void setRowSpacing(long value)

        Spacing between rows of an array It is used only when RowSpacingRule is set to 3 Exactly in which case the unit of measure is points or Multiple in which case the unit of measure is half-lines. Default: 0


        Example:
         
         IMathArray mathArray = new MathArray(new MathematicalText("item1"));
         mathArray.setRowSpacingRule(MathRowSpacingRule.Exactly);
         mathArray.setRowSpacing(10);
         
        Specified by:
        setRowSpacing in interface IMathArray