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

java.lang.Object
  extended byde.fhg.igd.earth.model.output.ModelSaver
Direct Known Subclasses:
RawModelSaver, RawObjectSaver

public abstract class ModelSaver
extends Object

This interface defines two methodes every subclass has to implement. A ModelSaver can save parts into a file. getIdentName() returns the name of the saver. save(ModelGraph model, Frame parent) shows a special dialog to save ModelGraphObjects. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Field Summary
protected  String datapath_
          Datapath for Savers
 
Constructor Summary
ModelSaver()
           
 
Method Summary
abstract  String getIdentName()
          Returns the identName for this class.
abstract  boolean save(ModelGraph model, Frame parent)
          Shows a special dialog to save ModelGraphObjects.
 void setDatapath(String datapath)
          Sets the "Datapath" for savers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datapath_

protected String datapath_
Datapath for Savers

Constructor Detail

ModelSaver

public ModelSaver()
Method Detail

getIdentName

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

Returns:
the identName

save

public abstract boolean save(ModelGraph model,
                             Frame parent)
Shows a special dialog to save ModelGraphObjects.

Parameters:
model - Model to insert into
parent - Parent frame
Returns:
true on success.

setDatapath

public void setDatapath(String datapath)
Sets the "Datapath" for savers



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.