Class ViewActions<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 init​(java.lang.Iterable<NamedGameObjectMatcher> gameObjectMatchers)
      Creates the view actions.
      void resetView()
      Action method for "reset view".
      void setAction​(javax.swing.Action action, java.lang.String name)
      Sets the Action instance for this editor action.
      void setMenu​(java.awt.Container viewActionsMenu)
      Sets the menu to add the actions to.
      • Methods inherited from class java.lang.Object

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

      • ViewActions

        public ViewActions​(@NotNull
                           MapViewSettings mapViewSettings,
                           @NotNull
                           MapManager<G,​A,​R> mapManager)
        Create a new instance.
        Parameters:
        mapViewSettings - the map view settings instance
        mapManager - the map manager
    • Method Detail

      • init

        public void init​(@NotNull
                         java.lang.Iterable<NamedGameObjectMatcher> gameObjectMatchers)
        Creates the view actions.
        Parameters:
        gameObjectMatchers - the game object matchers
      • setMenu

        public void setMenu​(@Nullable
                            java.awt.Container viewActionsMenu)
        Sets the menu to add the actions to.
        Parameters:
        viewActionsMenu - the menu
      • resetView

        @ActionMethod
        public void resetView()
        Action method for "reset view".
      • setAction

        public void setAction​(@NotNull
                              javax.swing.Action action,
                              @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