MathBox

MathBox class

Specifies the logical boxing (packaging) of mathematical element. For example, a boxed object can serve as an operator emulator with or without an alignment point, serve as a line break point, or be grouped such as not to allow line breaks within. For example, the “==” operator should be boxed to prevent line breaks.

MathBox

NameDescription
MathBox(MathElementBase)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathElementBaseThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathSubscriptElement)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathSubscriptElementThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathFraction)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathFractionThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathSuperscriptElement)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathSuperscriptElementThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathLimit)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathLimitThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathLeftSubSuperscriptElement)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathLeftSubSuperscriptElementThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathRightSubSuperscriptElement)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathRightSubSuperscriptElementThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathRadical)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathRadicalThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathFunction)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathFunctionThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathDelimiter)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathDelimiterThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathBox)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathBoxThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathBlock)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathBlockThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathArray)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathArrayThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathGroupingCharacter)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathGroupingCharacterThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathNaryOperator)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathNaryOperatorThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathematicalText)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathematicalTextThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(BaseScript)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementBaseScriptThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathMatrix)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathMatrixThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathBorderBox)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathBorderBoxThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathAccent)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathAccentThe base element to which the box is applied. Can be null.

Returns: MathBox


MathBox

NameDescription
MathBox(MathBar)Initializes MathBox with the specified element as an argument

Parameters:

NameTypeDescription
elementMathBarThe base element to which the box is applied. Can be null.

Returns: MathBox


getAlignmentPoint

NameDescription
getAlignmentPoint ()When true, this operator emulator serves as an alignment point; that is, designated alignment points in other equations can be aligned with it. Default: false

Returns: boolean


getBase

NameDescription
getBase ()Base argument

Returns: MathElementBase, MathSubscriptElement, MathFraction, MathSuperscriptElement, MathLimit, MathLeftSubSuperscriptElement, MathRightSubSuperscriptElement, MathRadical, MathFunction, MathDelimiter, MathBox, MathBlock, MathArray, MathGroupingCharacter, MathNaryOperator, MathematicalText, BaseScript, MathMatrix, MathBorderBox, MathAccent, MathBar


getChildren

NameDescription
getChildren ()Get children elements

Returns: MathElementBase, MathSubscriptElement, MathFraction, MathSuperscriptElement, MathLimit, MathLeftSubSuperscriptElement, MathRightSubSuperscriptElement, MathRadical, MathFunction, MathDelimiter, MathBox, MathBlock, MathArray, MathGroupingCharacter, MathNaryOperator, MathematicalText, BaseScript, MathMatrix, MathBorderBox, MathAccent, MathBar


getDifferential

NameDescription
getDifferential ()Differential When true, the box acts as a differential (e.g., ?? in an integrand), and receives the appropriate horizontal spacing for the mathematical differential. Default: false

Returns: boolean


getExplicitBreak

NameDescription
getExplicitBreak ()Explicit break specifies whether there is a line break at the start of the Box object, such that the line wraps at the start of the box object. Specifies the number of the operator on the previous line of mathematical text which shall be used as the alignment point for the current line of mathematical text possible values: 1..255 Default: 0 (no explicit break)

Returns: byte


getNoBreak

NameDescription
getNoBreak ()No break This property specifies the “unbreakable” property on the object box. When true, no line breaks can occur within the box. This can be important for operator emulators that consist of more than one binary operator. When this element is not specified, breaks can occur inside box. Default: true

Returns: boolean


getOperatorEmulator

NameDescription
getOperatorEmulator ()Operator Emulator. When true, the box and its contents behave as a single operator and inherit the properties of an operator. This means, for example, that the character can serve as a point for a line break and can be aligned to other operators. Operator Emulators are often used when one or more glyphs combine to form an operator, such as ‘==’. Default value: false

Returns: boolean


setAlignmentPoint

NameDescription
setAlignmentPoint (boolean)When true, this operator emulator serves as an alignment point; that is, designated alignment points in other equations can be aligned with it. Default: false

setDifferential

NameDescription
setDifferential (boolean)Differential When true, the box acts as a differential (e.g., ?? in an integrand), and receives the appropriate horizontal spacing for the mathematical differential. Default: false

setExplicitBreak

NameDescription
setExplicitBreak (byte)Explicit break specifies whether there is a line break at the start of the Box object, such that the line wraps at the start of the box object. Specifies the number of the operator on the previous line of mathematical text which shall be used as the alignment point for the current line of mathematical text possible values: 1..255 Default: 0 (no explicit break)

setNoBreak

NameDescription
setNoBreak (boolean)No break This property specifies the “unbreakable” property on the object box. When true, no line breaks can occur within the box. This can be important for operator emulators that consist of more than one binary operator. When this element is not specified, breaks can occur inside box. Default: true

setOperatorEmulator

NameDescription
setOperatorEmulator (boolean)Operator Emulator. When true, the box and its contents behave as a single operator and inherit the properties of an operator. This means, for example, that the character can serve as a point for a line break and can be aligned to other operators. Operator Emulators are often used when one or more glyphs combine to form an operator, such as ‘==’. Default value: false