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


  • public class ShrinkMapSizeDialogManager<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Manager for ShrinkMapSizeDialog instances. This class makes sure that for each map view no more than one shrink map size dialog exists.
    • Constructor Detail

      • ShrinkMapSizeDialogManager

        public ShrinkMapSizeDialogManager​(@NotNull
                                          @NotNull MapViewManager<G,​A,​R> mapViewManager)
        Creates a new instance.
        Parameters:
        mapViewManager - the map view manager
    • Method Detail

      • showDialog

        public void showDialog​(@NotNull
                               @NotNull MapView<G,​A,​R> mapView)
        Shows a dialog to shrink the map size.
        Parameters:
        mapView - the view map
      • disposeDialog

        public void disposeDialog​(@NotNull
                                  @NotNull MapView<G,​A,​R> mapView)
        Disposes a dialog.
        Parameters:
        mapView - the map view to dispose the dialog of; does nothing if no dialog exists