|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhg.igd.earth.model.input.ModelLoader
de.fhg.igd.earth.model.input.AgentLoader
This class is for loading an agent into the model. You have to set a name, a position, a color and a transparency. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
static String |
ICON_AGENTS
default agent icon |
private String |
implicitName_
implicit name of this agent |
private String |
nickname_
nickname of this agent |
private Frame |
parent_
parent frame |
Fields inherited from class de.fhg.igd.earth.model.input.ModelLoader |
datapath_ |
Constructor Summary | |
AgentLoader()
Creates an instance of this class. |
Method Summary | |
String |
getIdentName()
Returns the identName for this class (AgentLoader). |
boolean |
load(ModelGraph model,
Frame parent)
Shows the special load dialog and inserts the selected parts. |
HistoryGroup |
load(ModelGraph model,
String name,
String implicitName,
Color color,
float transparency,
double translationX,
double translationY,
double translationZ,
Frame parent)
Loads an agent into the given model. |
HistoryGroup |
load(ModelGraph model,
String name,
String implicitName,
Frame parent)
Loads an agent into the given model (default pos, color, transparency). |
private boolean |
showDialog()
Shows the dialog box to input the "Nickname" and "Implicit Name" of the agent. |
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 Frame parent_
private String implicitName_
private String nickname_
public static final String ICON_AGENTS
Constructor Detail |
public AgentLoader()
Method Detail |
public String getIdentName()
getIdentName
in class ModelLoader
public HistoryGroup load(ModelGraph model, String name, String implicitName, Frame parent)
model
- Modelname
- Name of the agent
true
on successpublic boolean load(ModelGraph model, Frame parent)
ModelLoader
load
in class ModelLoader
model
- Model to insert intoparent
- Parent frame
true
on success.public HistoryGroup load(ModelGraph model, String name, String implicitName, Color color, float transparency, double translationX, double translationY, double translationZ, Frame parent)
model
- Modelname
- Name of the agentcolor
- Colortransparency
- Transparency
true
on successprivate boolean showDialog()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |