public class FormulaRenderer extends Object
Constructor and Description |
---|
FormulaRenderer() |
Modifier and Type | Method and Description |
---|---|
static String |
toFormulaCopyText(FormulaRenderingWorkbook book,
Ptg[] tokens,
String formula) |
static String |
toFormulaEditText(FormulaRenderingWorkbook book,
Ptg[] tokens,
String formula) |
static String |
toFormulaString(FormulaRenderingWorkbook book,
Ptg[] ptgs)
Static method to convert an array of
Ptg s in RPN order
to a human readable string format in infix mode. |
static String |
toInternalFormulaString(FormulaRenderingWorkbook book,
Ptg[] ptgs)
Static method to convert an array of
Ptg s in RPN order
to internal string format for storing into file. |
static Ptg[][] |
unwrapPtgArrays(Ptg[] ptgs)
Static method to convert an RPN ptgs in the form of (areaPtg1, areaPtg2, ...) to Ptg[][].
|
public static String toFormulaString(FormulaRenderingWorkbook book, Ptg[] ptgs)
Ptg
s in RPN order
to a human readable string format in infix mode.book
- used for defined names and 3D referencesptgs
- must not be null
public static String toInternalFormulaString(FormulaRenderingWorkbook book, Ptg[] ptgs)
Ptg
s in RPN order
to internal string format for storing into file.book
- used for defined names and 3D referencesptgs
- must not be null
public static String toFormulaEditText(FormulaRenderingWorkbook book, Ptg[] tokens, String formula)
public static Ptg[][] unwrapPtgArrays(Ptg[] ptgs)
book
- used for defined names and 3D referencesptgs
- must not be null
public static String toFormulaCopyText(FormulaRenderingWorkbook book, Ptg[] tokens, String formula)
Copyright © 2020. All rights reserved.