de.fhg.igd.earth.model.output
Class RawModelSaver

java.lang.Object
  extended byde.fhg.igd.earth.model.output.ModelSaver
      extended byde.fhg.igd.earth.model.output.RawModelSaver

public class RawModelSaver
extends ModelSaver

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

Version:
: 1.0
Author:
: Werner Beutel

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

filename_

private String filename_
Project filename


model_

private ModelGraph model_
new model


parent_

private Frame parent_
Parent frame

Constructor Detail

RawModelSaver

public RawModelSaver()
Creates an instance of this class.

Method Detail

getIdentName

public String getIdentName()
Returns the identName for this class (RawModelSaver).

Specified by:
getIdentName in class ModelSaver
Returns:
"RawModelSaver"

save

public boolean save(ModelGraph model,
                    Frame parent)
Saves a whole model into a file (Project).

Specified by:
save in class ModelSaver
Parameters:
model - Model to save
parent - Parent frame
Returns:
true on success.

chooseFile

private boolean chooseFile()
Shows a dialog to select a filename (.prj).

Returns:
true on OK, false on CANCEL

save

private boolean save()
Creates the file and saves the data

Returns:
true on success.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.