public class ZoomAction<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 |
---|
ZoomAction(@NotNull MapManager<G,A,R> mapManager,
@NotNull RendererFactory<G,A,R> rendererFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
void |
zoom()
The action method for "zoom".
|
public ZoomAction(@NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull RendererFactory<G,A,R> rendererFactory)
mapManager
- the map manager to userendererFactory
- the renderer factory to use@ActionMethod public void zoom()
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)
EditorAction
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the action