|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhg.igd.earth.model.output.ModelSaver
de.fhg.igd.earth.model.output.RawModelSaver
This "ModelSaver" saves a whole model into a file. The whole model is called "Project". The save method shows a dialog box where you can choose a ".prj" file. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private String |
filename_
Project filename |
private ModelGraph |
model_
new model |
private Frame |
parent_
Parent frame |
Fields inherited from class de.fhg.igd.earth.model.output.ModelSaver |
datapath_ |
Constructor Summary | |
RawModelSaver()
Creates an instance of this class. |
Method Summary | |
private boolean |
chooseFile()
Shows a dialog to select a filename (.prj). |
String |
getIdentName()
Returns the identName for this class (RawModelSaver). |
private boolean |
save()
Creates the file and saves the data |
boolean |
save(ModelGraph model,
Frame parent)
Saves a whole model into a file (Project). |
Methods inherited from class de.fhg.igd.earth.model.output.ModelSaver |
setDatapath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String filename_
private ModelGraph model_
private Frame parent_
Constructor Detail |
public RawModelSaver()
Method Detail |
public String getIdentName()
getIdentName
in class ModelSaver
public boolean save(ModelGraph model, Frame parent)
save
in class ModelSaver
model
- Model to saveparent
- Parent frame
true
on success.private boolean chooseFile()
private boolean save()
true
on success.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |