|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.model.input.ModelLoader de.fhg.igd.earth.model.input.RawModelLoader
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
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 |
private String filename_
private ModelGraph model_
private Frame parent_
Constructor Detail |
public RawModelLoader()
Method Detail |
public String getIdentName()
getIdentName
in class ModelLoader
public boolean load(ModelGraph model, Frame parent)
load
in class ModelLoader
model
- Model to insert intoparent
- Parent frame
true
on success.public ModelGraph load(Frame parent)
parent
- Parent frame
private boolean chooseFile()
private boolean load()
true
on success.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |