|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.model.output.ModelSaver de.fhg.igd.earth.model.output.RawObjectSaver
This "ModelSaver" saves parts (BranchGroups) of a model. The save method shows a dialog box where you can choose the ".par" file. A part file can have several records. Each record represents a BranchGroup. 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_
source model |
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.output.ModelSaver |
datapath_ |
Constructor Summary | |
RawObjectSaver()
Creates an instance of this class |
Method Summary | |
private boolean |
chooseFile()
Shows a dialog to choose a filename (.par). |
private boolean |
createRecordNames()
Creates the record names. |
String |
getIdentName()
Returns the identName for this class (RawObjectSaver). |
private void |
reset()
Resets all variables of this class |
boolean |
save(ModelGraph model,
Frame parent)
Saves BranchGroups into a part file. |
private boolean |
saveObjects()
Saves the graphic objects (BranchGroups) into the selected file. |
private boolean |
showDialog()
Shows the dialog to choose the records. |
Methods inherited from class de.fhg.igd.earth.model.output.ModelSaver |
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 RawObjectSaver()
Method Detail |
public String getIdentName()
getIdentName
in class ModelSaver
public boolean save(ModelGraph model, Frame parent)
save
in class ModelSaver
model
- source modelparent
- Parent frame
true
on success.private void reset()
private boolean createRecordNames()
true
on success.private boolean showDialog()
private boolean chooseFile()
private boolean saveObjects()
true
on success.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |