public class NewMapDialogFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
NewMapDialog instances.| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setObjectChooser(@NotNull ObjectChooser<G,A,R> objectChooser)
Deprecated.
|
void |
showNewMapDialog()
Shows a dialog for creating a new map.
|
void |
showNewPickmapDialog()
Shows a dialog for creating a new pickmap.
|
void |
showNewPickmapFolderDialog(@NotNull MapFolderTree<G,A,R> mapFolderTree,
@Nullable MapFolder<G,A,R> parent)
Shows a dialog for creating a new pickmap folder.
|
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)
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@Deprecated
public void setObjectChooser(@NotNull
@NotNull ObjectChooser<G,A,R> objectChooser)
public void showNewMapDialog()
public void showNewPickmapDialog()
public void showNewPickmapFolderDialog(@NotNull
@NotNull MapFolderTree<G,A,R> mapFolderTree,
@Nullable
@Nullable MapFolder<G,A,R> parent)
mapFolderTree - the model to add the pickmap folder toparent - the parent folder to add the pickmap folder to