public class FileManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static char |
getChar(int n)
Get the character at position n in the alphabet.
|
static RhombBoundary |
loadRhombBoundary(java.lang.String filename)
Load a RhombBoundary from the file with the given name.
|
static SubstitutionEditorSaveState |
loadSubstitutionEditor(java.lang.String filename)
Load a
SubstitutionEditorSaveState from
the file with the given name. |
static void |
main(java.lang.String[] args)
For testing.
|
static void |
postscriptDump(java.lang.String fileName,
PatchDisplay patch)
Write a patch to a postscript file.
|
static void |
postscriptHeader(java.lang.String fileName,
java.lang.String box)
Write a header for a postscript file to the given file.
|
static int[][] |
readEdgeSequenceList(int n)
Read an edge sequence list from a file in ./edges
|
static void |
saveRhombBoundary(java.lang.String path,
RhombBoundary r)
Save a RhombBoundary to the file with the given name.
|
static void |
saveSubstitutionEditor(java.lang.String filename,
SubstitutionEditorSaveState state)
Save a
SubstitutionEditorSaveState to the
file with the given name. |
public static char getChar(int n)
n
- The index in the alphabet at which we want to find a character.public static void postscriptHeader(java.lang.String fileName, java.lang.String box)
fileName
- The name of the file on which to write.box
- Coordinates of the bounding box for the image, in the
form "xmin ymin xmax ymax"public static void postscriptDump(java.lang.String fileName, PatchDisplay patch)
fileName
- The name of the file on which to write.patch
- The PatchDisplay to be depicted in the file.public static RhombBoundary loadRhombBoundary(java.lang.String filename)
filename
- The name of the file from which to load.public static void saveRhombBoundary(java.lang.String path, RhombBoundary r)
path
- The name of the file to which to save.r
- The RhombBoundary that we wish to save.public static SubstitutionEditorSaveState loadSubstitutionEditor(java.lang.String filename)
SubstitutionEditorSaveState
from
the file with the given name.filename
- The name of the file from which to load.public static void saveSubstitutionEditor(java.lang.String filename, SubstitutionEditorSaveState state)
SubstitutionEditorSaveState
to the
file with the given name.filename
- The name of the file to which to save.state
- The SubstitutionEditor
to be saved.public static int[][] readEdgeSequenceList(int n)
n
- The value of Point.N()
for which to read
edge sequences.public static void main(java.lang.String[] args)