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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activeMapViewChanged​(@Nullable MapView<G,​A,​R> mapView)
      This event handler is called when the current map view has changed.
      void clear()
      "Clear" was selected from the Edit menu.
      void copy()
      "Copy" was selected from the Edit menu.
      void cut()
      "Cut" was selected from the Edit menu.
      void expandEmptySelection()
      Invoked when the user wants to expand the selection of empty map squares to surrounding empty map squares.
      void fillAbove()
      "Fill above" was selected from the Edit menu.
      void fillAuto()
      "Fill" was selected from the Edit menu.
      void fillBelow()
      "Fill below" was selected from the Edit menu.
      void find()
      "Find" was selected from the Edit menu.
      void findNext()
      "Find next" was selected from the Edit menu.
      void findPrev()
      "Find previous" was selected from the Edit menu.
      void floodFill()
      "Flood fill" was selected from the Edit menu.
      void invertSelection()
      Invoked when the user wants to invert all selected squares from a map.
      void mapViewClosing​(@NotNull MapView<G,​A,​R> mapView)
      This event handler is called when a map view is to be closed.
      void mapViewCreated​(@NotNull MapView<G,​A,​R> mapView)
      This event handler is called when a map view was created.
      void massChange()
      "Mass change" was selected from the Edit menu.
      void paste()
      "Paste" was selected from the Edit menu.
      void pasteTiled()
      "Paste Tiled" was selected from the Edit menu.
      void randFillAbove()
      "Random fill above" was selected from the Edit menu.
      void randFillAuto()
      "Random fill" was selected from the Edit menu.
      void randFillBelow()
      "Random fill below" was selected from the Edit menu.
      void replace()
      "Replace" was selected from the Edit menu.
      void selectAll()
      Invoked when the user wants to select all squares from a map.
      void setAction​(@NotNull javax.swing.Action action, @NotNull java.lang.String name)
      Sets the Action instance for this editor action.
      void shiftEast()
      "Shift East" was selected from the Edit menu.
      void shiftNorth()
      "Shift North" was selected from the Edit menu.
      void shiftNorthEast()
      "Shift North East" was selected from the Edit menu.
      void shiftNorthWest()
      "Shift North West" was selected from the Edit menu.
      void shiftSouth()
      "Shift South" was selected from the Edit menu.
      void shiftSouthEast()
      "Shift South East" was selected from the Edit menu.
      void shiftSouthWest()
      "Shift South West" was selected from the Edit menu.
      void shiftWest()
      "Shift West" was selected from the Edit menu.
      void tileStretchingClear()
      Invoked when the user wants to clear tile stretching on the selected map squares.
      void tileStretchingDecrease()
      Invoked when the user wants to decrease tile stretching on the selected map squares.
      void tileStretchingIncrease()
      Invoked when the user wants to increase tile stretching on the selected map squares.
      void tileStretchingSet()
      Invoked when the user wants to set tile stretching on the selected map squares.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MainActions

        public MainActions​(@NotNull
                           @NotNull FindDialogManager<G,​A,​R> findDialogManager,
                           @NotNull
                           @NotNull ReplaceDialogManager<G,​A,​R> replaceDialogManager,
                           @NotNull
                           @NotNull javax.swing.JFrame parent,
                           @NotNull
                           @NotNull MapViewSettings mapViewSettings,
                           @NotNull
                           @NotNull ArchetypeSet<G,​A,​R> archetypeSet,
                           @NotNull
                           @NotNull CopyBuffer<G,​A,​R> copyBuffer,
                           @NotNull
                           @NotNull ObjectChooser<G,​A,​R> objectChooser,
                           @NotNull
                           @NotNull MapManager<G,​A,​R> mapManager,
                           @NotNull
                           @NotNull InsertionModeSet<G,​A,​R> insertionModeSet)
        Creates a new instance.
        Parameters:
        findDialogManager - the find dialog manager to use
        replaceDialogManager - the replace dialog manager to use
        parent - the parent component for dialog windows
        mapViewSettings - the map view settings instance
        archetypeSet - the archetype set
        copyBuffer - the copy buffer instance
        objectChooser - the animation objects instance to use
        mapManager - the map manager instance
        insertionModeSet - the insertion mode set to use
    • Method Detail

      • clear

        @ActionMethod
        public void clear()
        "Clear" was selected from the Edit menu.
      • cut

        @ActionMethod
        public void cut()
        "Cut" was selected from the Edit menu.
      • copy

        @ActionMethod
        public void copy()
        "Copy" was selected from the Edit menu.
      • paste

        @ActionMethod
        public void paste()
        "Paste" was selected from the Edit menu.
      • pasteTiled

        @ActionMethod
        public void pasteTiled()
        "Paste Tiled" was selected from the Edit menu.
      • shiftNorth

        @ActionMethod
        public void shiftNorth()
        "Shift North" was selected from the Edit menu.
      • shiftNorthEast

        @ActionMethod
        public void shiftNorthEast()
        "Shift North East" was selected from the Edit menu.
      • shiftEast

        @ActionMethod
        public void shiftEast()
        "Shift East" was selected from the Edit menu.
      • shiftSouthEast

        @ActionMethod
        public void shiftSouthEast()
        "Shift South East" was selected from the Edit menu.
      • shiftSouth

        @ActionMethod
        public void shiftSouth()
        "Shift South" was selected from the Edit menu.
      • shiftSouthWest

        @ActionMethod
        public void shiftSouthWest()
        "Shift South West" was selected from the Edit menu.
      • shiftWest

        @ActionMethod
        public void shiftWest()
        "Shift West" was selected from the Edit menu.
      • shiftNorthWest

        @ActionMethod
        public void shiftNorthWest()
        "Shift North West" was selected from the Edit menu.
      • find

        @ActionMethod
        public void find()
        "Find" was selected from the Edit menu.
      • findNext

        @ActionMethod
        public void findNext()
        "Find next" was selected from the Edit menu.
      • findPrev

        @ActionMethod
        public void findPrev()
        "Find previous" was selected from the Edit menu.
      • replace

        @ActionMethod
        public void replace()
        "Replace" was selected from the Edit menu.
      • fillAuto

        @ActionMethod
        public void fillAuto()
        "Fill" was selected from the Edit menu.
      • fillAbove

        @ActionMethod
        public void fillAbove()
        "Fill above" was selected from the Edit menu.
      • fillBelow

        @ActionMethod
        public void fillBelow()
        "Fill below" was selected from the Edit menu.
      • randFillAuto

        @ActionMethod
        public void randFillAuto()
        "Random fill" was selected from the Edit menu.
      • randFillAbove

        @ActionMethod
        public void randFillAbove()
        "Random fill above" was selected from the Edit menu.
      • randFillBelow

        @ActionMethod
        public void randFillBelow()
        "Random fill below" was selected from the Edit menu.
      • floodFill

        @ActionMethod
        public void floodFill()
        "Flood fill" was selected from the Edit menu.
      • massChange

        @ActionMethod
        public void massChange()
        "Mass change" was selected from the Edit menu.
      • selectAll

        @ActionMethod
        public void selectAll()
        Invoked when the user wants to select all squares from a map.
      • invertSelection

        @ActionMethod
        public void invertSelection()
        Invoked when the user wants to invert all selected squares from a map.
      • expandEmptySelection

        @ActionMethod
        public void expandEmptySelection()
        Invoked when the user wants to expand the selection of empty map squares to surrounding empty map squares.
      • tileStretchingSet

        @ActionMethod
        public void tileStretchingSet()
        Invoked when the user wants to set tile stretching on the selected map squares.
      • tileStretchingClear

        @ActionMethod
        public void tileStretchingClear()
        Invoked when the user wants to clear tile stretching on the selected map squares.
      • tileStretchingIncrease

        @ActionMethod
        public void tileStretchingIncrease()
        Invoked when the user wants to increase tile stretching on the selected map squares.
      • tileStretchingDecrease

        @ActionMethod
        public void tileStretchingDecrease()
        Invoked when the user wants to decrease tile stretching on the selected map squares.
      • setAction

        public void setAction​(@NotNull
                              @NotNull javax.swing.Action action,
                              @NotNull
                              @NotNull java.lang.String name)
        Description copied from interface: EditorAction
        Sets the Action instance for this editor action.
        Specified by:
        setAction in interface EditorAction
        Parameters:
        action - the action instance
        name - the name of the action