Package net.sf.gridarta.maincontrol
Class GUIMainControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.maincontrol.GUIMainControl<G,A,R>
-
- All Implemented Interfaces:
java.util.EventListener,net.sf.japi.util.ThrowableHandler<java.lang.Throwable>
public class GUIMainControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements net.sf.japi.util.ThrowableHandler<java.lang.Throwable>Creates the main GUI of Gridarta.
-
-
Constructor Summary
Constructors Constructor Description GUIMainControl(@NotNull ProjectModel<G,A,R> projectModel, @NotNull EditorSettings editorSettings, @NotNull ErrorView errorView, @NotNull ResourceIcons resourceIcons, @NotNull EditorFactory<G,A,R> editorFactory, @NotNull ConfigSourceFactory configSourceFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleThrowable(@NotNull java.lang.Throwable t)voidrun(@NotNull java.util.List<java.io.File> args)Starts the editor: makes the main window visible and opens map files.
-
-
-
Constructor Detail
-
GUIMainControl
public GUIMainControl(@NotNull @NotNull ProjectModel<G,A,R> projectModel, @NotNull @NotNull EditorSettings editorSettings, @NotNull @NotNull ErrorView errorView, @NotNull @NotNull ResourceIcons resourceIcons, @NotNull @NotNull EditorFactory<G,A,R> editorFactory, @NotNull @NotNull ConfigSourceFactory configSourceFactory)Creates a new instance.- Parameters:
projectModel- the project model to editeditorSettings- the editor settings instanceerrorView- the error view for reporting errorsresourceIcons- the gui utils for creating iconseditorFactory- the editor factory instanceconfigSourceFactory- the config source factory instance
-
-
Method Detail
-
handleThrowable
public void handleThrowable(@NotNull @NotNull java.lang.Throwable t)- Specified by:
handleThrowablein interfacenet.sf.japi.util.ThrowableHandler<G extends GameObject<G,A,R>>
-
run
public void run(@NotNull @NotNull java.util.List<java.io.File> args)Starts the editor: makes the main window visible and opens map files.- Parameters:
args- the map files to open
-
-