-
- All Implemented Interfaces:
public class SingleRunApp<T, P extends Position2D<P>> extends ApplicationThe class models a non-reusable GUI for simulation display.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringROOT_LAYOUTpublic final static StringUSE_EFFECT_GROUPS_FROM_FILEpublic final static StringPARAMETER_NAME_STARTpublic final static StringPARAMETER_NAME_ENDprivate final Map<String, String>paramsprivate ObservableList<EffectGroup<P>>effectGroupsprivate Simulation<T, P>simulation
-
Method Summary
Modifier and Type Method Description Map<String, String>getParams()Getter method for the named parameters. voidsetParams(Array<String> params)The method sets the parameters. voidsetEffectGroups(Collection<EffectGroup<P>> effectGroups)Setter method for the collection of groups of effects. voidsetSimulation(Simulation<T, P> simulation)Setter method for simulation. voidaddParam(String name, String value)The method adds a new named parameter. voidstart(Stage primaryStage)voidaddEffectGroups(Collection<EffectGroup<P>> effectGroups)Adds the effects to the current effects. voidaddEffectGroups(String path)Adds effect from a file. -
Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, notifyPreloader, setUserAgentStylesheet, stop -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setParams
void setParams(Array<String> params)
The method sets the parameters. All previously add params will be removed.
- Parameters:
params- the params
-
setEffectGroups
void setEffectGroups(Collection<EffectGroup<P>> effectGroups)
Setter method for the collection of groups of effects.
- Parameters:
effectGroups- the groups of effects
-
setSimulation
void setSimulation(Simulation<T, P> simulation)
Setter method for simulation.
- Parameters:
simulation- the simulation this Application will display
-
addParam
void addParam(String name, String value)
The method adds a new named parameter.
- Parameters:
name- the param namevalue- the param value
-
start
void start(Stage primaryStage)
-
addEffectGroups
void addEffectGroups(Collection<EffectGroup<P>> effectGroups)
Adds the effects to the current effects.
- Parameters:
effectGroups- the group of effects to add
-
addEffectGroups
void addEffectGroups(String path)
Adds effect from a file.
- Parameters:
path- the path of the collection of EffectGroups.
-
-
-
-