|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.umlv.unitex.io.GraphIO
public class GraphIO
This class provides methods for loading and saving graphs.
Field Summary | |
---|---|
java.util.ArrayList |
boxes
Boxes of a graph |
int |
height
Height of a graph |
int |
nBoxes
Number of boxes of a graph |
Preferences |
pref
Rendering properties of a graph |
int |
width
Width of a graph |
Constructor Summary | |
---|---|
GraphIO()
|
Method Summary | |
---|---|
static GraphIO |
loadGraph(java.io.File grfFile)
This method loads a graph. |
static GraphIO |
loadSentenceGraph(java.io.File file)
This method loads a sentence graph. |
void |
saveGraph(java.io.File grfFile)
Saves the graph referenced by the field of this GraphIO object |
void |
saveSentenceGraph(java.io.File file)
Saves the sentence graph described by the fields of this GraphIO object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList boxes
public Preferences pref
public int width
public int height
public int nBoxes
Constructor Detail |
---|
public GraphIO()
Method Detail |
---|
public static GraphIO loadGraph(java.io.File grfFile)
grfFile
- name of the graph
GraphIO
object describing the graphpublic void saveGraph(java.io.File grfFile)
GraphIO
object
grfFile
- graph filepublic static GraphIO loadSentenceGraph(java.io.File file)
file
- sentence graph file
GraphIO
object describing the sentence graphpublic void saveSentenceGraph(java.io.File file)
GraphIO
object.
file
- sentence graph file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |