|
||||||||||
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.RawObjectLoader
This "ModelLoader" loads parts of a model witch was saved with the RawObjectSaver. The load method shows a dialog box where you can select the ".par" file. A part file can have several records. Each record will become a BranchGroup after loading. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private Vector |
branchGroups_
loaded branchGroups |
private String |
directory_
directory |
private String |
filename_
filename |
private ModelGraph |
model_
model to insert into |
private Frame |
parent_
parent frame |
private Vector |
recordNames_
the names of the single BranchGroups |
private Vector |
selected_
selected records |
Fields inherited from class de.fhg.igd.earth.model.input.ModelLoader |
datapath_ |
Constructor Summary | |
RawObjectLoader()
Creates an instance of this class |
Method Summary | |
private boolean |
chooseFile()
Shows a dialog to select a filename (.par). |
private boolean |
createRecordNames()
Creates the record names. |
String |
getIdentName()
Returns the identName for this class (RawObjectLoader). |
boolean |
load(ModelGraph model,
Frame parent)
Loads a part into the model. |
private boolean |
loadObjects()
Loads the graphic objects (records) into the model. |
private void |
reset()
Resets all variables of this class |
private boolean |
showDialog()
Shows the dialog to choose the records. |
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 ModelGraph model_
private Vector recordNames_
private Vector selected_
private Vector branchGroups_
private String filename_
private String directory_
private Frame parent_
Constructor Detail |
public RawObjectLoader()
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.private void reset()
private boolean chooseFile()
private boolean createRecordNames()
true
on success.private boolean showDialog()
private boolean loadObjects()
true
on success.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |