Package net.sf.gridarta.action
Class ZoomAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.action.ZoomAction<G,A,R>
-
- All Implemented Interfaces:
EditorAction
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
Shows an image of the current map and allows the user to save it.
-
-
Constructor Summary
Constructors Constructor Description ZoomAction(@NotNull MapManager<G,A,R> mapManager, @NotNull RendererFactory<G,A,R> rendererFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.voidzoom()The action method for "zoom".
-
-
-
Constructor Detail
-
ZoomAction
public ZoomAction(@NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull RendererFactory<G,A,R> rendererFactory)Creates a new instance.- Parameters:
mapManager- the map manager to userendererFactory- the renderer factory to use
-
-
Method Detail
-
zoom
@ActionMethod public void zoom()
The action method for "zoom". Opens the dialog to create zoomed images of the current map.
-
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
-
-