visidia.io
Class GraphIO

java.lang.Object
  extended by visidia.io.GraphIO
All Implemented Interfaces:
VisidiaIO
Direct Known Subclasses:
GMLGraphIO

public abstract class GraphIO
extends java.lang.Object
implements VisidiaIO

This class deals with input/output operations on graphs.


Field Summary
protected  java.io.File file
          The file to read/write.
 
Constructor Summary
protected GraphIO(java.io.File file)
          Instantiates a new graph input/output.
 
Method Summary
abstract  visidia.gui.graphview.GraphView load()
          Loads the current file as a graph view.
abstract  void save(java.lang.Object object)
          Saves an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

protected java.io.File file
The file to read/write.

Constructor Detail

GraphIO

protected GraphIO(java.io.File file)
Instantiates a new graph input/output.

Parameters:
file - the file
Method Detail

load

public abstract visidia.gui.graphview.GraphView load()
Loads the current file as a graph view.

Specified by:
load in interface VisidiaIO
Returns:
the graph view
See Also:
VisidiaIO.load()

save

public abstract void save(java.lang.Object object)
Description copied from interface: VisidiaIO
Saves an object.

Specified by:
save in interface VisidiaIO
Parameters:
object - the object