de.fhg.igd.earth.model.input
Class ModelLoader

java.lang.Object
  extended byde.fhg.igd.earth.model.input.ModelLoader
Direct Known Subclasses:
AgentLoader, ModelCreator, RawModelLoader, RawObjectLoader, ShapeFileLoader

public abstract class ModelLoader
extends Object

This interface defines two methodes every subclass has to implement. A ModelLoader can load parts into the model. getIdentName() returns the name of the loader. load(ModelGraph model, Frame parent) shows the special load dialog and inserts the selected parts. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Field Summary
protected  String datapath_
          Datapath for Loaders
 
Constructor Summary
ModelLoader()
           
 
Method Summary
abstract  String getIdentName()
          Returns the identName for this class.
abstract  boolean load(ModelGraph model, Frame parent)
          Shows the special load dialog and inserts the selected parts.
 void setDatapath(String datapath)
          Sets the "Datapath" for loaders
 
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 Loaders

Constructor Detail

ModelLoader

public ModelLoader()
Method Detail

getIdentName

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

Returns:
the identName

load

public abstract boolean load(ModelGraph model,
                             Frame parent)
Shows the special load dialog and inserts the selected parts.

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

setDatapath

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



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.