visidia.io.gml
Class GMLGraphIO
java.lang.Object
visidia.io.GraphIO
visidia.io.gml.GMLGraphIO
- All Implemented Interfaces:
- VisidiaIO
public class GMLGraphIO
- extends GraphIO
This class deals with input/output operations on graphs, in GML file format.
|
Field Summary |
protected static java.lang.String |
indentString
the current indentation used in the output GML file. |
|
Constructor Summary |
GMLGraphIO(java.io.File file)
Instantiates a new GML graph input/output. |
|
Method Summary |
visidia.gui.graphview.GraphView |
load()
Loads the current file as a graph view. |
void |
save(java.lang.Object object)
Saves the current graph view (with graphics attributes) or graph (without graphics attributes). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indentString
protected static java.lang.String indentString
- the current indentation used in the output GML file.
GMLGraphIO
public GMLGraphIO(java.io.File file)
- Instantiates a new GML graph input/output.
- Parameters:
file - the file
load
public visidia.gui.graphview.GraphView load()
- Loads the current file as a graph view.
- Specified by:
load in interface VisidiaIO- Specified by:
load in class GraphIO
- Returns:
- the graph view
- See Also:
GraphIO.load()
save
public void save(java.lang.Object object)
- Saves the current graph view (with graphics attributes) or graph (without graphics attributes).
- Specified by:
save in interface VisidiaIO- Specified by:
save in class GraphIO
- Parameters:
object - the object- See Also:
GraphIO.save(java.lang.Object)