Class DefaultMapPropertiesDialogFactory

    • Constructor Detail

      • DefaultMapPropertiesDialogFactory

        public DefaultMapPropertiesDialogFactory​(@NotNull
                                                 @NotNull MapManager<GameObject,​MapArchObject,​Archetype> mapManager,
                                                 @NotNull
                                                 @NotNull ProjectSettings projectSettings)
        Creates a new instance.
        Parameters:
        mapManager - the map manager to use
        projectSettings - the project settings instance
    • Method Detail

      • showDialog

        public void showDialog​(@NotNull
                               @NotNull java.awt.Component parent,
                               @NotNull
                               @NotNull java.awt.Frame helpParent,
                               @NotNull
                               @NotNull MapModel<GameObject,​MapArchObject,​Archetype> mapModel,
                               @NotNull
                               @NotNull javax.swing.filechooser.FileFilter mapFileFilter)
        Description copied from interface: MapPropertiesDialogFactory
        Show a dialog querying the user for map properties.
        Specified by:
        showDialog in interface MapPropertiesDialogFactory<GameObject,​MapArchObject,​Archetype>
        Parameters:
        parent - the parent component to show dialog on
        helpParent - the parent frame for help windows
        mapModel - the map to show dialog about
        mapFileFilter - the Swing file filter to use