|
Gridarta Editor
|
Inheritance diagram for net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | setAction (@NotNull final Action action, @NotNull final String name) |
| void | zoom () |
| ZoomAction (@NotNull final MapManager< G, A, R > mapManager, @NotNull final RendererFactory< G, A, R > rendererFactory) | |
Private Member Functions | |
| boolean | doAction (final boolean performAction) |
| void | updateAction () |
Private Attributes | |
| Action | action |
| final MapManagerListener< G, A, R > | mapManagerListener |
| MapModel< G, A, R > | mapModel |
| final RendererFactory< G, A, R > | rendererFactory |
Shows an image of the current map and allows the user to save it.
Definition at line 41 of file ZoomAction.java.
| net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ZoomAction | ( | @NotNull final MapManager< G, A, R > | mapManager, |
| @NotNull final RendererFactory< G, A, R > | rendererFactory | ||
| ) |
Creates a new instance.
| mapManager | the map manager to use |
| rendererFactory | the renderer factory to use |
Definition at line 93 of file ZoomAction.java.
References net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapManagerListener, and net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.rendererFactory.
|
private |
Executes the action.
| performAction | whether the action should be performed |
Definition at line 127 of file ZoomAction.java.
References net.sf.gridarta.gui.map.renderer.MapRenderer.getFullImage(), net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapModel, net.sf.gridarta.gui.map.renderer.RendererFactory< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newSimpleMapRenderer(), and net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.rendererFactory.
Referenced by net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction(), and net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.zoom().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction | ( | @NotNull final Action | action, |
| @NotNull final String | name | ||
| ) |
Sets the Action instance for this editor action.
| action | the action instance |
| name | the name of the action |
Implements net.sf.gridarta.utils.EditorAction.
Definition at line 108 of file ZoomAction.java.
References net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
Here is the call graph for this function:
|
private |
Updates the enabled state of action.
Definition at line 116 of file ZoomAction.java.
References net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action, and net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.zoom | ( | ) |
The action method for "zoom". Opens the dialog to create zoomed images of the current map.
Definition at line 103 of file ZoomAction.java.
Here is the call graph for this function:
|
private |
The Action for this instance. May be
.
Definition at line 80 of file ZoomAction.java.
Referenced by net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction(), and net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
|
private |
The map manager listener.
Definition at line 54 of file ZoomAction.java.
|
private |
The currently active MapModel.
Definition at line 86 of file ZoomAction.java.
Referenced by net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction().
|
private |
The ReloadFacesAction for creating map images.
Definition at line 47 of file ZoomAction.java.
Referenced by net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), and net.sf.gridarta.action.ZoomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ZoomAction().