Class NewMapDialogFactory<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • NewMapDialogFactory

        public NewMapDialogFactory​(@NotNull
                                   @NotNull MapViewsManager<G,​A,​R> mapViewsManager,
                                   @NotNull
                                   @NotNull MapArchObjectFactory<A> mapArchObjectFactory,
                                   int defaultMapWidth,
                                   int defaultMapHeight,
                                   int defaultMapDifficulty,
                                   boolean showMapDifficulty,
                                   boolean showMapSizeDefault,
                                   int defaultPickmapWidth,
                                   int defaultPickmapHeight,
                                   @NotNull
                                   @NotNull PickmapChooserView<G,​A,​R> pickmapChooserView,
                                   @NotNull
                                   @NotNull java.awt.Component parent)
        Creates a new instance.
        Parameters:
        mapViewsManager - the map views manager to use
        mapArchObjectFactory - the map arch object factory instance
        defaultMapWidth - the default width for new maps
        defaultMapHeight - the default height for new maps
        defaultMapDifficulty - the default difficulty for new maps
        showMapSizeDefault - whether to show the "mapSizeDefault" checkbox
        showMapDifficulty - whether to show the "mapDifficulty" field
        defaultPickmapWidth - the default width for new pickmaps
        defaultPickmapHeight - the default height for new pickmaps
        pickmapChooserView - the pickmap chooser view for creating new pickmaps
        parent - the parent component
    • Method Detail

      • setObjectChooser

        @Deprecated
        public void setObjectChooser​(@NotNull
                                     @NotNull ObjectChooser<G,​A,​R> objectChooser)
        Deprecated.
      • showNewMapDialog

        public void showNewMapDialog()
        Shows a dialog for creating a new map.
      • showNewPickmapDialog

        public void showNewPickmapDialog()
        Shows a dialog for creating a new pickmap.
      • showNewPickmapFolderDialog

        public void showNewPickmapFolderDialog​(@NotNull
                                               @NotNull MapFolderTree<G,​A,​R> mapFolderTree,
                                               @Nullable
                                               @Nullable MapFolder<G,​A,​R> parent)
        Shows a dialog for creating a new pickmap folder.
        Parameters:
        mapFolderTree - the model to add the pickmap folder to
        parent - the parent folder to add the pickmap folder to