Class FormulaRenderer


  • @Internal
    public class FormulaRenderer
    extends Object
    Common logic for rendering formulas.
    • Constructor Detail

      • FormulaRenderer

        public FormulaRenderer()
    • Method Detail

      • toFormulaString

        public static String toFormulaString​(FormulaRenderingWorkbook book,
                                             Ptg[] ptgs)
        Static method to convert an array of Ptgs in RPN order to a human readable string format in infix mode.
        Parameters:
        book - used for defined names and 3D references
        ptgs - must not be null
        Returns:
        a human readable String
      • toInternalFormulaString

        public static String toInternalFormulaString​(FormulaRenderingWorkbook book,
                                                     Ptg[] ptgs)
        Static method to convert an array of Ptgs in RPN order to internal string format for storing into file.
        Parameters:
        book - used for defined names and 3D references
        ptgs - must not be null
        Returns:
        a human readable String
      • unwrapPtgArrays

        public static Ptg[][] unwrapPtgArrays​(Ptg[] ptgs)
        Static method to convert an RPN ptgs in the form of (areaPtg1, areaPtg2, ...) to Ptg[][].
        Parameters:
        ptgs - must not be null
        Returns:
        a human readable String
        Since:
        3.9.6