Class ViewActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.map.viewaction.ViewActions<G,A,R>
-
- All Implemented Interfaces:
EditorAction
public class ViewActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
Manages edit type actions in "view" menu.
-
-
Constructor Summary
Constructors Constructor Description ViewActions(@NotNull MapViewSettings mapViewSettings, @NotNull MapManager<G,A,R> mapManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(@NotNull java.lang.Iterable<NamedGameObjectMatcher> gameObjectMatchers)Creates the view actions.voidresetView()Action method for "reset view".voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.voidsetMenu(@Nullable java.awt.Container viewActionsMenu)Sets the menu to add the actions to.
-
-
-
Constructor Detail
-
ViewActions
public ViewActions(@NotNull @NotNull MapViewSettings mapViewSettings, @NotNull @NotNull MapManager<G,A,R> mapManager)Creates a new instance.- Parameters:
mapViewSettings- the map view settings instancemapManager- the map manager
-
-
Method Detail
-
init
public void init(@NotNull @NotNull java.lang.Iterable<NamedGameObjectMatcher> gameObjectMatchers)Creates the view actions.- Parameters:
gameObjectMatchers- the game object matchers
-
setMenu
public void setMenu(@Nullable @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 @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)Description copied from interface:EditorActionSets theActioninstance for this editor action.- Specified by:
setActionin interfaceEditorAction- Parameters:
action- the action instancename- the name of the action
-
-