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

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

public class ModelCreator
extends ModelLoader

This class is to create some primitive graphic objects (DEBUG). Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Field Summary
 
Fields inherited from class de.fhg.igd.earth.model.input.ModelLoader
datapath_
 
Constructor Summary
ModelCreator()
          Creates an instance of this class.
 
Method Summary
private  void cEarth(ModelGraph model)
          Creates a flat and a spherical earth.
private  void cGrid(ModelGraph model)
          Creates a default grid.
private  void cText(ModelGraph model)
          Creates a test string.
private  void cWorld(ModelGraph model)
          Initializes the model.
 String getIdentName()
          Returns the identName for this class (ModelCreator).
 boolean load(ModelGraph model, Frame parent)
          Overwrites the abstract load method in ModelLoader.
 boolean load(ModelGraph model, String name)
          Creates and loads a sub model (figure).
 
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
 

Constructor Detail

ModelCreator

public ModelCreator()
Creates an instance of this class.

Method Detail

getIdentName

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

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

load

public boolean load(ModelGraph model,
                    Frame parent)
Overwrites the abstract load method in ModelLoader. This loader can't show a dialog. It can only load directly. Parameters have no effect.

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

load

public boolean load(ModelGraph model,
                    String name)
Creates and loads a sub model (figure).

Parameters:
model - Model to insert into
name - Name of the figure to create
Returns:
true on success.

cEarth

private void cEarth(ModelGraph model)
Creates a flat and a spherical earth.


cWorld

private void cWorld(ModelGraph model)
Initializes the model.


cGrid

private void cGrid(ModelGraph model)
Creates a default grid.


cText

private void cText(ModelGraph model)
Creates a test string.



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.