|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simbrain.network.NetworkSerializer
class NetworkSerializer
NetworkSerializer contains the code for reading and writing network files.
| Field Summary | |
|---|---|
static String |
FS
File Separator constant. |
| Constructor Summary | |
|---|---|
NetworkSerializer(NetworkPanel parent)
Construct the serializer object. |
|
| Method Summary | |
|---|---|
String |
getCurrentDirectory()
|
File |
getCurrentFile()
Get a reference to the current network file. |
void |
readNetwork(File f)
Read a network in from a File object. |
boolean |
showOpenFileDialog()
Show the dialog for choosing a network to open. |
void |
showSaveFileDialog()
Show the dialog for saving a network. |
void |
writeNet(File theFile)
Saves network information to the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FS
| Constructor Detail |
|---|
public NetworkSerializer(NetworkPanel parent)
parent - reference to the panel containing the network to be saved| Method Detail |
|---|
public boolean showOpenFileDialog()
public void readNetwork(File f)
File object.
f - file to read.public void showSaveFileDialog()
public void writeNet(File theFile)
theFile - the file to save the network to.public File getCurrentFile()
public String getCurrentDirectory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||