Class NewMapDialogFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory<G,A,R>
-
public class NewMapDialogFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectUtility class to createNewMapDialoginstances.
-
-
Constructor Summary
Constructors Constructor Description NewMapDialogFactory(@NotNull MapViewsManager<G,A,R> mapViewsManager, @NotNull MapArchObjectFactory<A> mapArchObjectFactory, int defaultMapWidth, int defaultMapHeight, int defaultMapDifficulty, boolean showMapDifficulty, boolean showMapSizeDefault, int defaultPickmapWidth, int defaultPickmapHeight, @NotNull PickmapChooserView<G,A,R> pickmapChooserView, @NotNull java.awt.Component parent)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidsetObjectChooser(@NotNull ObjectChooser<G,A,R> objectChooser)Deprecated.voidshowNewMapDialog()Shows a dialog for creating a new map.voidshowNewPickmapDialog()Shows a dialog for creating a new pickmap.voidshowNewPickmapFolderDialog(@NotNull MapFolderTree<G,A,R> mapFolderTree, @Nullable MapFolder<G,A,R> parent)Shows a dialog for creating a new pickmap folder.
-
-
-
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 usemapArchObjectFactory- the map arch object factory instancedefaultMapWidth- the default width for new mapsdefaultMapHeight- the default height for new mapsdefaultMapDifficulty- the default difficulty for new mapsshowMapSizeDefault- whether to show the "mapSizeDefault" checkboxshowMapDifficulty- whether to show the "mapDifficulty" fielddefaultPickmapWidth- the default width for new pickmapsdefaultPickmapHeight- the default height for new pickmapspickmapChooserView- the pickmap chooser view for creating new pickmapsparent- 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 toparent- the parent folder to add the pickmap folder to
-
-