Class GUIMainControl<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleThrowable​(@NotNull java.lang.Throwable t)  
      void run​(@NotNull java.util.List<java.io.File> args)
      Starts the editor: makes the main window visible and opens map files.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 edit
        editorSettings - the editor settings instance
        errorView - the error view for reporting errors
        resourceIcons - the gui utils for creating icons
        editorFactory - the editor factory instance
        configSourceFactory - the config source factory instance
    • Method Detail

      • handleThrowable

        public void handleThrowable​(@NotNull
                                    @NotNull java.lang.Throwable t)
        Specified by:
        handleThrowable in interface net.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