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
| Constructor and Description |
|---|
ViewActions(@NotNull MapViewSettings mapViewSettings,
@NotNull MapManager<G,A,R> mapManager)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(@NotNull java.lang.Iterable<NamedGameObjectMatcher> gameObjectMatchers)
Creates the view actions.
|
void |
resetView()
Action method for "reset view".
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
void |
setMenu(@Nullable java.awt.Container viewActionsMenu)
Sets the menu to add the actions to.
|
public ViewActions(@NotNull
@NotNull MapViewSettings mapViewSettings,
@NotNull
@NotNull MapManager<G,A,R> mapManager)
mapViewSettings - the map view settings instancemapManager - the map managerpublic void init(@NotNull
@NotNull java.lang.Iterable<NamedGameObjectMatcher> gameObjectMatchers)
gameObjectMatchers - the game object matcherspublic void setMenu(@Nullable
@Nullable java.awt.Container viewActionsMenu)
viewActionsMenu - the menu@ActionMethod public void resetView()
public void setAction(@NotNull
@NotNull javax.swing.Action action,
@NotNull
@NotNull java.lang.String name)
EditorActionAction instance for this editor action.setAction in interface EditorActionaction - the action instancename - the name of the action