public class FormulaRenderer
extends java.lang.Object
Constructor and Description |
---|
FormulaRenderer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
toFormulaCopyText(FormulaRenderingWorkbook book,
Ptg[] tokens,
java.lang.String formula) |
static java.lang.String |
toFormulaEditText(FormulaRenderingWorkbook book,
Ptg[] tokens,
java.lang.String formula) |
static java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String toFormulaEditText(FormulaRenderingWorkbook book, Ptg[] tokens, java.lang.String formula)
public static Ptg[][] unwrapPtgArrays(Ptg[] ptgs)
book
- used for defined names and 3D referencesptgs
- must not be null
public static java.lang.String toFormulaCopyText(FormulaRenderingWorkbook book, Ptg[] tokens, java.lang.String formula)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.