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

java.lang.Object
  extended byde.fhg.igd.earth.model.input.ModelLoader
      extended byde.fhg.igd.earth.model.input.RawModelLoader

public class RawModelLoader
extends ModelLoader

This "ModelLoader" loads a whole model witch was saved with the RawModalSaver. The whole model is called "Project". The load method shows a dialog box where you can select the ".prj" file. It returns a new model object. 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.input.ModelLoader
datapath_
 
Constructor Summary
RawModelLoader()
          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 (RawModelLoader).
private  boolean load()
          Opens the file and loads the data
 ModelGraph load(Frame parent)
          Loads a whole model (Project).
 boolean load(ModelGraph model, Frame parent)
          Dummy method
 
Methods inherited from class de.fhg.igd.earth.model.input.ModelLoader
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

RawModelLoader

public RawModelLoader()
Creates an instance of this class.

Method Detail

getIdentName

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

Specified by:
getIdentName in class ModelLoader
Returns:
"RawModelLoader"

load

public boolean load(ModelGraph model,
                    Frame parent)
Dummy method

Specified by:
load in class ModelLoader
Parameters:
model - Model to insert into
parent - Parent frame
Returns:
true on success.

load

public ModelGraph load(Frame parent)
Loads a whole model (Project).

Parameters:
parent - Parent frame
Returns:
ModelGraph

chooseFile

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

Returns:
true on OK, false on CANCEL

load

private boolean load()
Opens the file and loads the data

Returns:
true on success.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.