public class GraphEditorPersistence
extends java.lang.Object
GModel states to and from XML.
Not part of the graph editor library, only used in the GraphEditorDemo application.
| Constructor and Description |
|---|
GraphEditorPersistence() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadFromFile(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
Loads an XML .graph file into the given graph editor.
|
void |
loadSample(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
Loads the sample saved in the sample.graph file.
|
void |
loadSampleLarge(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
Loads the large sample saved in the sample-large.graph file.
|
void |
loadTitled(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
Loads the sample saved in the titled.graph file.
|
void |
loadTree(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
Loads the sample saved in the tree.graph file.
|
void |
saveToFile(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
Saves the graph editor's
GModel state to an XML file via the FileChooser. |
public void saveToFile(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
GModel state to an XML file via the FileChooser.graphEditor - the graph editor whose model state is to be savedpublic void loadFromFile(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
graphEditor - the graph editor in which the loaded model will be setpublic void loadSample(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
graphEditor - the graph editor in which the loaded model will be setpublic void loadSampleLarge(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
graphEditor - the graph editor in which the loaded model will be setpublic void loadTree(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
graphEditor - the graph editor in which the loaded model will be setpublic void loadTitled(de.tesis.dynaware.grapheditor.GraphEditor graphEditor)
graphEditor - the graph editor in which the loaded model will be setCopyright © 2015 TESIS DYNAware. All Rights Reserved.