public final class Presenter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
detailId |
static java.lang.String |
detailName |
static java.lang.String |
detailName2 |
static java.lang.String |
fileExt |
static java.lang.String |
methodId |
static java.lang.String |
methodName |
static java.lang.String |
nameFormStatAction |
static java.lang.String |
nameFormula |
static java.lang.String |
nameMethod |
static java.lang.String |
namePrePost |
static java.lang.String |
nameStatement |
static java.lang.String |
statPrefix |
static java.lang.String |
statPrefix2 |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Document |
createDocument(java.lang.String title,
int fontSize)
Create new XHTML/MathML document.
|
static org.w3c.dom.Element |
createTopNode(org.w3c.dom.Document document,
int fontSize)
Create top node for document content.
|
static VirtualDirectory |
present(Formula formula,
int fontSize,
int width)
Present formula in a certain font size.
|
static VirtualDirectory |
present(ParamSymbol symbol,
int fontSize,
int width,
int port)
Present method in a certain font size.
|
static VirtualDirectory |
present(ParamSymbol symbol,
Statement statement,
Formula formula,
boolean pre,
java.util.Map<Statement,Formula> preMap,
java.util.Map<Statement,Formula> postMap,
int fontSize,
int width,
int port)
Present method in a certain font size.
|
void |
setDetailFrame(java.lang.String file)
Set detail frame of current frame to denoted file.
|
static void |
writeDocument(org.w3c.dom.Document document,
java.io.PrintWriter out)
Write document to writer.
|
java.lang.String |
writeStatement(Statement stat)
Write file for statement and statement formula.
|
public static final java.lang.String fileExt
public static final java.lang.String methodId
public static final java.lang.String detailId
public static final java.lang.String methodName
public static final java.lang.String detailName
public static final java.lang.String detailName2
public static final java.lang.String statPrefix
public static final java.lang.String statPrefix2
public static final java.lang.String nameFormStatAction
public static final java.lang.String nameMethod
public static final java.lang.String nameStatement
public static final java.lang.String nameFormula
public static final java.lang.String namePrePost
public static VirtualDirectory present(ParamSymbol symbol, int fontSize, int width, int port)
symbol
- the symbol of the method.fontSize
- the font size.width
- the number of characters per line to be used
for the detail view.port
- the port number of the command server.public static VirtualDirectory present(Formula formula, int fontSize, int width)
formula
- the formula.fontSize
- the font size.width
- the number of characters per line to be usedpublic static VirtualDirectory present(ParamSymbol symbol, Statement statement, Formula formula, boolean pre, java.util.Map<Statement,Formula> preMap, java.util.Map<Statement,Formula> postMap, int fontSize, int width, int port)
symbol
- the symbol of the method.statement
- the statement.formula
- the formula.pre
- true iff formula is precondition.preMap
- the precondition map.postMap
- the postcondition map.fontSize
- the font size.width
- the number of characters per line to be used
for the detail view.port
- the port number of the command server.public void setDetailFrame(java.lang.String file)
file
- the denoted file.public java.lang.String writeStatement(Statement stat)
stat
- the statement to be writtenpublic static org.w3c.dom.Document createDocument(java.lang.String title, int fontSize)
title
- the document titlefontSize
- the font sizepublic static org.w3c.dom.Element createTopNode(org.w3c.dom.Document document, int fontSize)
document
- the document.fontSize
- the font sizepublic static void writeDocument(org.w3c.dom.Document document, java.io.PrintWriter out)
document
- the document.out
- the writer.