public final class Presenter
extends java.lang.Object
Constructor and Description |
---|
Presenter(java.io.File directory)
Create instance of presenter with files in denoted directory.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getDeclFile()
Get file where all declarations are stored
|
java.io.File |
getFile(ProofState state)
Construct file name for proof state
|
org.w3c.dom.Element |
getRoot(org.w3c.dom.Document document)
Get root node of document to which new nodes should be appended.
|
boolean |
newDeclarations()
Creates new declaration document.
|
void |
resize()
Update font size depending on user settings.
|
boolean |
updateDeclarations()
Update the declarations written so far (rewriting the declaration file).
|
boolean |
writeDeclaration(Declaration decl)
Write declaration to declaration file.
|
java.io.File |
writeProofIndex(Proof proof)
Write index of proof to file suitable for later display of proof states.
|
java.io.File |
writeProofState(ProofState state)
Write proof state and return corresponding file.
|
public Presenter(java.io.File directory)
directory
- for storing the presentation files.public void resize()
public boolean newDeclarations()
public java.io.File getDeclFile()
public java.io.File getFile(ProofState state)
state
- the proof state.public org.w3c.dom.Element getRoot(org.w3c.dom.Document document)
document
- the document.public java.io.File writeProofState(ProofState state)
state
- the state to be written to file.public boolean writeDeclaration(Declaration decl)
decl
- the declaration to be written.public boolean updateDeclarations()
public java.io.File writeProofIndex(Proof proof)
proof
- the proof.