Gridarta Editor
net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Encapsulates actions and related functions. More...

+ Inheritance diagram for net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void activeMapViewChanged (@Nullable final MapView< G, A, R > mapView)
 This event handler is called when the current map view has changed. More...
 
void clear ()
 "Clear" was selected from the Edit menu. More...
 
void copy ()
 "Copy" was selected from the Edit menu. More...
 
void cut ()
 "Cut" was selected from the Edit menu. More...
 
void expandEmptySelection ()
 Invoked when the user wants to expand the selection of empty map squares to surrounding empty map squares. More...
 
void fillAbove ()
 "Fill above" was selected from the Edit menu. More...
 
void fillAuto ()
 "Fill" was selected from the Edit menu. More...
 
void fillBelow ()
 "Fill below" was selected from the Edit menu. More...
 
void find ()
 "Find" was selected from the Edit menu. More...
 
void findNext ()
 "Find next" was selected from the Edit menu. More...
 
void findPrev ()
 "Find previous" was selected from the Edit menu. More...
 
void floodFill ()
 "Flood fill" was selected from the Edit menu. More...
 
void invertSelection ()
 Invoked when the user wants to invert all selected squares from a map. More...
 
 MainActions (@NotNull final FindDialogManager< G, A, R > findDialogManager, @NotNull final ReplaceDialogManager< G, A, R > replaceDialogManager, @NotNull final JFrame parent, @NotNull final MapViewSettings mapViewSettings, @NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final CopyBuffer< G, A, R > copyBuffer, @NotNull final ObjectChooser< G, A, R > objectChooser, @NotNull final MapManager< G, A, R > mapManager, @NotNull final InsertionModeSet< G, A, R > insertionModeSet)
 Create a new instance. More...
 
void mapViewClosing (@NotNull final MapView< G, A, R > mapView)
 This event handler is called when a map view is to be closed. More...
 
void mapViewCreated (@NotNull final MapView< G, A, R > mapView)
 This event handler is called when a map view was created. More...
 
void massChange ()
 "Mass change" was selected from the Edit menu. More...
 
void paste ()
 "Paste" was selected from the Edit menu. More...
 
void pasteTiled ()
 "Paste Tiled" was selected from the Edit menu. More...
 
void randFillAbove ()
 "Random fill above" was selected from the Edit menu. More...
 
void randFillAuto ()
 "Random fill" was selected from the Edit menu. More...
 
void randFillBelow ()
 "Random fill below" was selected from the Edit menu. More...
 
void replace ()
 "Replace" was selected from the Edit menu. More...
 
void selectAll ()
 Invoked when the user wants to select all squares from a map. More...
 
void setAction (@NotNull final Action action, @NotNull final String name)
 Sets the Action instance for this editor action. More...
 
void shiftEast ()
 "Shift East" was selected from the Edit menu. More...
 
void shiftNorth ()
 "Shift North" was selected from the Edit menu. More...
 
void shiftNorthEast ()
 "Shift North East" was selected from the Edit menu. More...
 
void shiftNorthWest ()
 "Shift North West" was selected from the Edit menu. More...
 
void shiftSouth ()
 "Shift South" was selected from the Edit menu. More...
 
void shiftSouthEast ()
 "Shift South East" was selected from the Edit menu. More...
 
void shiftSouthWest ()
 "Shift South West" was selected from the Edit menu. More...
 
void shiftWest ()
 "Shift West" was selected from the Edit menu. More...
 
void tileStretchingClear ()
 Invoked when the user wants to clear tile stretching on the selected map squares. More...
 
void tileStretchingDecrease ()
 Invoked when the user wants to decrease tile stretching on the selected map squares. More...
 
void tileStretchingIncrease ()
 Invoked when the user wants to increase tile stretching on the selected map squares. More...
 
void tileStretchingSet ()
 Invoked when the user wants to set tile stretching on the selected map squares. More...
 

Private Member Functions

boolean doClear (final boolean performAction)
 Executes the "clear" action. More...
 
boolean doCopy (final boolean performAction)
 Executes the "copy" action. More...
 
boolean doCut (final boolean performAction)
 Executes the "cut" action. More...
 
boolean doExpandEmptySelection (final boolean performAction)
 Executes the "expand empty selection" action. More...
 
boolean doFillAbove (final boolean performAction)
 Executes the "fill above" action. More...
 
boolean doFillAuto (final boolean performAction)
 Executes the "fill auto" action. More...
 
boolean doFillBelow (final boolean performAction)
 Executes the "fill below" action. More...
 
boolean doFind (final boolean performAction)
 Executes the "find" action. More...
 
boolean doFindNext (final boolean performAction)
 Executes the "find next" action. More...
 
boolean doFindPrev (final boolean performAction)
 Executes the "find prev" action. More...
 
boolean doFloodFill (final boolean performAction)
 Executes the "flood fill" action. More...
 
boolean doInvertSelection (final boolean performAction)
 Executes the "invert selection" action. More...
 
boolean doMassChange (final boolean performAction)
 Executes the "mass change" actions. More...
 
boolean doPaste (final boolean performAction)
 Executes the "paste" action. More...
 
boolean doPasteTiled (final boolean performAction)
 Executes the "paste tiled" action. More...
 
boolean doRandFillAbove (final boolean performAction)
 Executes the "rand fill above" action. More...
 
boolean doRandFillAuto (final boolean performAction)
 Executes the "rand fill auto" action. More...
 
boolean doRandFillBelow (final boolean performAction)
 Executes the "rand fill below" action. More...
 
boolean doReplace (final boolean performAction)
 Executes the "replace" action. More...
 
boolean doSelectAll (final boolean performAction)
 Executes the "select all" action. More...
 
boolean doShift (final boolean performAction, @NotNull final Direction direction)
 Executes the "shift" action. More...
 
boolean doTileStretchingChange (final boolean performAction, final int heightValue, final boolean isAbsolute)
 Executes one of the "tile stretching clear/increase/decrease" actions. More...
 
boolean doTileStretchingChangeSet (final boolean performAction)
 Executes one of the "tile stretching" actions. More...
 
void fill (@NotNull final MapView< G, A, R > mapView, @NotNull final InsertionMode< G, A, R > insertionMode)
 "Fill" was selected from the Edit menu. More...
 
void fillRandom (@NotNull final MapView< G, A, R > mapView, @NotNull final InsertionMode< G, A, R > insertionMode)
 "RandomFill" was selected from the Edit menu. More...
 
MapView< G, A, R > getSelection ()
 Determine if the current map has a selection. More...
 
MapManagerListener< G, A, R > newMapManagerListener ()
 Creates a new MapManagerListener that refreshes the actions when the current map changes. More...
 
MapModelListener< G, A, R > newMapModelListener ()
 Creates a new MapModelListener that refreshes the actions when the map contents change. More...
 
void refreshMenus ()
 Enable/disable menu entries based on the current state. More...
 
void tileStretching (@NotNull final MapView< G, A, R > mapView, final int heightValue, final boolean isAbsolute, @Nullable final Integer[] subLayers)
 Performs one of the "tile stretching" actions. More...
 

Private Attributes

Action aClear
 Action called for "clear". More...
 
Action aCopy
 Action called for "copy". More...
 
Action aCut
 Action called for "cut". More...
 
Action aExpandEmptySelection
 Action called for "grow empty selection". More...
 
Action aFillAbove
 Action called for "fill above". More...
 
Action aFillAuto
 Action called for "fill". More...
 
Action aFillBelow
 Action called for "fill below". More...
 
Action aFind
 Action called for "find". More...
 
Action aFindNext
 Action called for "find next". More...
 
Action aFindPrev
 Action called for "find prev". More...
 
Action aFloodFill
 Action called for "flood fill". More...
 
Action aInvertSelection
 Action called for "invert selection". More...
 
Action aMassChange
 Action called for "mass change". More...
 
Action aPaste
 Action called for "paste". More...
 
Action aPasteTiled
 Action called for "paste tiled". More...
 
Action aRandFillAbove
 Action called for "random fill above". More...
 
Action aRandFillAuto
 Action called for "random fill". More...
 
Action aRandFillBelow
 Action called for "random fill below". More...
 
Action aReplace
 Action called for "replace". More...
 
Action aSelectAll
 Action called for "select all". More...
 
Action aShiftEast
 Action called for "shift east". More...
 
Action aShiftNorth
 Action called for "shift north". More...
 
Action aShiftNorthEast
 Action called for "shift north east". More...
 
Action aShiftNorthWest
 Action called for "shift north west". More...
 
Action aShiftSouth
 Action called for "shift south". More...
 
Action aShiftSouthEast
 Action called for "shift south east". More...
 
Action aShiftSouthWest
 Action called for "shift south west". More...
 
Action aShiftWest
 Action called for "shift west". More...
 
Action aTileStretchingClear
 Action called for "tile stretching -> clear Z". More...
 
Action aTileStretchingDecrease
 Action called for "tile stretching -> decrease Z". More...
 
Action aTileStretchingIncrease
 Action called for "tile stretching -> increase Z". More...
 
Action aTileStretchingSet
 Action called for "tile stretching -> set Z". More...
 
final CopyBuffer< G, A, R > copyBuffer
 The copy buffer instance. More...
 
MapControl< G, A, R > currentMapControl
 The last known active map, or. More...
 
MapView< G, A, R > currentMapView
 The last known active map view, or. More...
 
final FindDialogManager< G, A, R > findDialogManager
 The find dialog manager to use. More...
 
final InsertionModeSet< G, A, R > insertionModeSet
 The InsertionModeSet to use. More...
 
final MapGridListener mapGridListener
 The map grid listener used to detect map grid changes. More...
 
final MapViewSettings mapViewSettings
 The map view settings instance. More...
 
final MassChangeDialog massChangeDialog = new MassChangeDialog()
 The MassChangeDialog instance. More...
 
final ObjectChooser< G, A, R > objectChooser
 The ObjectChooser instance to use. More...
 
final JFrame parent
 The parent component for dialog windows. More...
 
final RandomFillDialog randomFillDialog = new RandomFillDialog()
 The RandomFillDialog instance. More...
 
final ReplaceDialogManager< G, A, R > replaceDialogManager
 The replace dialog manager to use. More...
 
final TileStretchingDialog tileStretchingDialog = new TileStretchingDialog()
 The TileStretchingDialog instance. More...
 

Detailed Description

Encapsulates actions and related functions.

Author
Andreas Kirschbaum

Definition at line 73 of file MainActions.java.

Constructor & Destructor Documentation

◆ MainActions()

net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MainActions ( @NotNull final FindDialogManager< G, A, R >  findDialogManager,
@NotNull final ReplaceDialogManager< G, A, R >  replaceDialogManager,
@NotNull final JFrame  parent,
@NotNull final MapViewSettings  mapViewSettings,
@NotNull final ArchetypeSet< G, A, R >  archetypeSet,
@NotNull final CopyBuffer< G, A, R >  copyBuffer,
@NotNull final ObjectChooser< G, A, R >  objectChooser,
@NotNull final MapManager< G, A, R >  mapManager,
@NotNull final InsertionModeSet< G, A, R >  insertionModeSet 
)

Create a new instance.

Parameters
findDialogManagerthe find dialog manager to use
replaceDialogManagerthe replace dialog manager to use
parentthe parent component for dialog windows
mapViewSettingsthe map view settings instance
archetypeSetthe archetype set
copyBufferthe copy buffer instance
objectChooserthe animation objects instance to use
mapManagerthe map manager instance
insertionModeSetthe insertion mode set to use

Definition at line 369 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.copyBuffer, net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.findDialogManager, net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertionModeSet, net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewSettings, net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapManagerListener(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapModelListener(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.objectChooser, net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parent, and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.replaceDialogManager.

+ Here is the call graph for this function:

Member Function Documentation

◆ activeMapViewChanged()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged ( @Nullable final MapView< G, A, R >  mapView)

This event handler is called when the current map view has changed.

Parameters
mapViewthe new map view or
null
if no opened map view exists

Implements net.sf.gridarta.gui.map.mapview.MapViewManagerListener< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.

Definition at line 1543 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

+ Here is the call graph for this function:

◆ clear()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.clear ( )

"Clear" was selected from the Edit menu.

Definition at line 598 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doClear().

+ Here is the call graph for this function:

◆ copy()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.copy ( )

"Copy" was selected from the Edit menu.

Definition at line 614 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCopy().

+ Here is the call graph for this function:

◆ cut()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.cut ( )

"Cut" was selected from the Edit menu.

Definition at line 606 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCut().

+ Here is the call graph for this function:

◆ doClear()

◆ doCopy()

◆ doCut()

◆ doExpandEmptySelection()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExpandEmptySelection ( final boolean  performAction)
private

Executes the "expand empty selection" action.

Parameters
performActionwhether the action should be performed
Returns
whether the action was or can be performed

Definition at line 1314 of file MainActions.java.

References net.sf.gridarta.model.mapgrid.SelectionMode.ADD, net.sf.gridarta.model.mapgrid.MapGrid.beginTransaction(), net.sf.gridarta.model.mapgrid.MapGrid.endTransaction(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapArchObject(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapControl(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapGrid(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapSquare(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelectedSquares(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelection(), net.sf.gridarta.model.baseobject.GameObjectContainer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isEmpty(), net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.isPointValid(), net.sf.gridarta.model.mapgrid.MapGrid.select(), and net.sf.gridarta.model.mapgrid.MapGrid.unSelect().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.expandEmptySelection(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doFillAbove()

◆ doFillAuto()

◆ doFillBelow()

◆ doFind()

◆ doFindNext()

◆ doFindPrev()

◆ doFloodFill()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFloodFill ( final boolean  performAction)
private

Executes the "flood fill" action.

Parameters
performActionwhether the action should be performed
Returns
whether the action was or can be performed

Definition at line 1188 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getLocation(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapControl(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapCursor(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), net.sf.gridarta.gui.panel.objectchooser.ObjectChooser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelections(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertionModeSet.

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.floodFill(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doInvertSelection()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doInvertSelection ( final boolean  performAction)
private

Executes the "invert selection" action.

Parameters
performActionwhether the action should be performed
Returns
whether the action was or can be performed

Definition at line 1297 of file MainActions.java.

References net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapGrid().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.invertSelection(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doMassChange()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doMassChange ( final boolean  performAction)
private

Executes the "mass change" actions.

Parameters
performActionwhether the action should be performed
Returns
whether the action was or can be performed

Definition at line 1207 of file MainActions.java.

References net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.beginTransaction(), net.sf.gridarta.model.mapmodel.MapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.endTransaction(), net.sf.gridarta.mainactions.MassChangeDialog.getArchNames(), net.sf.gridarta.mainactions.MassChangeDialog.getChanges(), net.sf.gridarta.mainactions.MassChangeDialog.getLayers(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapControl(), net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), net.sf.gridarta.mainactions.MassChangeDialog.getNames(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelectedSquares(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelection(), net.sf.gridarta.mainactions.MassChangeDialog.getSubLayers(), and net.sf.gridarta.mainactions.MassChangeDialog.showMassChangeDialog().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.massChange(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doPaste()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPaste ( final boolean  performAction)
private

◆ doPasteTiled()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPasteTiled ( final boolean  performAction)
private

Executes the "paste tiled" action.

Parameters
performActionwhether the action should be performed
Returns
whether the action was or can be performed

Definition at line 1017 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, net.sf.gridarta.model.mapcursor.MapCursor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getLocation(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapCursor(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapGrid(), net.sf.gridarta.model.mapgrid.MapGrid.getSelectedRec(), net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelectedSquares(), net.sf.gridarta.gui.copybuffer.CopyBuffer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isEmpty(), and net.sf.gridarta.gui.copybuffer.CopyBuffer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.pasteTiled().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.pasteTiled(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doRandFillAbove()

◆ doRandFillAuto()

◆ doRandFillBelow()

◆ doReplace()

◆ doSelectAll()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSelectAll ( final boolean  performAction)
private

◆ doShift()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift ( final boolean  performAction,
@NotNull final Direction  direction 
)
private

Executes the "shift" action.

Parameters
performActionwhether the action should be performed
directionthe direction to shift
Returns
whether the action was or can be performed

Definition at line 1052 of file MainActions.java.

References net.sf.gridarta.gui.misc.ShiftProcessor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.canShift(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapControl, net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertionModeSet, net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewSettings, and net.sf.gridarta.gui.misc.ShiftProcessor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shift().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftEast(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftNorth(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftNorthEast(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftNorthWest(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftSouth(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftSouthEast(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftSouthWest(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftWest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doTileStretchingChange()

boolean net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChange ( final boolean  performAction,
final int  heightValue,
final boolean  isAbsolute 
)
private

◆ doTileStretchingChangeSet()

◆ expandEmptySelection()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.expandEmptySelection ( )

Invoked when the user wants to expand the selection of empty map squares to surrounding empty map squares.

Definition at line 815 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExpandEmptySelection().

+ Here is the call graph for this function:

◆ fill()

◆ fillAbove()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.fillAbove ( )

"Fill above" was selected from the Edit menu.

Definition at line 742 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillAbove().

+ Here is the call graph for this function:

◆ fillAuto()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.fillAuto ( )

"Fill" was selected from the Edit menu.

Definition at line 734 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillAuto().

+ Here is the call graph for this function:

◆ fillBelow()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.fillBelow ( )

"Fill below" was selected from the Edit menu.

Definition at line 750 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillBelow().

+ Here is the call graph for this function:

◆ fillRandom()

◆ find()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.find ( )

"Find" was selected from the Edit menu.

Definition at line 702 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFind().

+ Here is the call graph for this function:

◆ findNext()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.findNext ( )

"Find next" was selected from the Edit menu.

Definition at line 710 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFindNext().

+ Here is the call graph for this function:

◆ findPrev()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.findPrev ( )

"Find previous" was selected from the Edit menu.

Definition at line 718 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFindPrev().

+ Here is the call graph for this function:

◆ floodFill()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.floodFill ( )

"Flood fill" was selected from the Edit menu.

Definition at line 782 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFloodFill().

+ Here is the call graph for this function:

◆ getSelection()

MapView<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelection ( )
private

Determine if the current map has a selection.

Returns
the map view if a selection exists, or
null
otherwise

Definition at line 860 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, and net.sf.gridarta.gui.map.mapview.MapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapGrid().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExpandEmptySelection(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillAbove(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillAuto(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillBelow(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doMassChange(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillAbove(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillAuto(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillBelow(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChange(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChangeSet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ invertSelection()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.invertSelection ( )

Invoked when the user wants to invert all selected squares from a map.

Definition at line 806 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doInvertSelection().

+ Here is the call graph for this function:

◆ mapViewClosing()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewClosing ( @NotNull final MapView< G, A, R >  mapView)

This event handler is called when a map view is to be closed.

Parameters
mapViewthe map view that is to be closed

Implements net.sf.gridarta.gui.map.mapview.MapViewManagerListener< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.

Definition at line 1554 of file MainActions.java.

◆ mapViewCreated()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewCreated ( @NotNull final MapView< G, A, R >  mapView)

This event handler is called when a map view was created.

Parameters
mapViewthe created map view

Implements net.sf.gridarta.gui.map.mapview.MapViewManagerListener< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.

Definition at line 1549 of file MainActions.java.

◆ massChange()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.massChange ( )

"Mass change" was selected from the Edit menu.

Definition at line 790 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doMassChange().

+ Here is the call graph for this function:

◆ newMapManagerListener()

MapManagerListener<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapManagerListener ( )
private

Creates a new MapManagerListener that refreshes the actions when the current map changes.

Returns
the map manager listener

Definition at line 391 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MainActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newMapModelListener()

MapModelListener<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapModelListener ( )
private

Creates a new MapModelListener that refreshes the actions when the map contents change.

Returns
the map model listener

Definition at line 424 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MainActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paste()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.paste ( )

"Paste" was selected from the Edit menu.

Definition at line 622 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPaste().

+ Here is the call graph for this function:

◆ pasteTiled()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.pasteTiled ( )

"Paste Tiled" was selected from the Edit menu.

Definition at line 630 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPasteTiled().

+ Here is the call graph for this function:

◆ randFillAbove()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.randFillAbove ( )

"Random fill above" was selected from the Edit menu.

Definition at line 766 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillAbove().

+ Here is the call graph for this function:

◆ randFillAuto()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.randFillAuto ( )

"Random fill" was selected from the Edit menu.

Definition at line 758 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillAuto().

+ Here is the call graph for this function:

◆ randFillBelow()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.randFillBelow ( )

"Random fill below" was selected from the Edit menu.

Definition at line 774 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillBelow().

+ Here is the call graph for this function:

◆ refreshMenus()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus ( )
private

Enable/disable menu entries based on the current state.

Definition at line 463 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doClear(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCopy(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCut(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExpandEmptySelection(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillAbove(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillAuto(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFillBelow(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFind(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFindNext(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFindPrev(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFloodFill(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doInvertSelection(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doMassChange(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPaste(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPasteTiled(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillAbove(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillAuto(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRandFillBelow(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doReplace(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSelectAll(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChange(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChangeSet(), net.sf.gridarta.model.direction.Direction.EAST, net.sf.gridarta.model.direction.Direction.NORTH, net.sf.gridarta.model.direction.Direction.NORTH_EAST, net.sf.gridarta.model.direction.Direction.NORTH_WEST, net.sf.gridarta.model.direction.Direction.SOUTH, net.sf.gridarta.model.direction.Direction.SOUTH_EAST, net.sf.gridarta.model.direction.Direction.SOUTH_WEST, and net.sf.gridarta.model.direction.Direction.WEST.

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapManagerListener(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapModelListener(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ replace()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.replace ( )

"Replace" was selected from the Edit menu.

Definition at line 726 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doReplace().

+ Here is the call graph for this function:

◆ selectAll()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.selectAll ( )

Invoked when the user wants to select all squares from a map.

Definition at line 798 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doSelectAll().

+ Here is the call graph for this function:

◆ setAction()

void net.sf.gridarta.mainactions.MainActions< 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.

Parameters
actionthe action instance
namethe name of the action

Implements net.sf.gridarta.utils.EditorAction.

Definition at line 1471 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refreshMenus().

+ Here is the call graph for this function:

◆ shiftEast()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftEast ( )

"Shift East" was selected from the Edit menu.

Definition at line 654 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.EAST.

+ Here is the call graph for this function:

◆ shiftNorth()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftNorth ( )

"Shift North" was selected from the Edit menu.

Definition at line 638 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.NORTH.

+ Here is the call graph for this function:

◆ shiftNorthEast()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftNorthEast ( )

"Shift North East" was selected from the Edit menu.

Definition at line 646 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.NORTH_EAST.

+ Here is the call graph for this function:

◆ shiftNorthWest()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftNorthWest ( )

"Shift North West" was selected from the Edit menu.

Definition at line 694 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.NORTH_WEST.

+ Here is the call graph for this function:

◆ shiftSouth()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftSouth ( )

"Shift South" was selected from the Edit menu.

Definition at line 670 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.SOUTH.

+ Here is the call graph for this function:

◆ shiftSouthEast()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftSouthEast ( )

"Shift South East" was selected from the Edit menu.

Definition at line 662 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.SOUTH_EAST.

+ Here is the call graph for this function:

◆ shiftSouthWest()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftSouthWest ( )

"Shift South West" was selected from the Edit menu.

Definition at line 678 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.SOUTH_WEST.

+ Here is the call graph for this function:

◆ shiftWest()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.shiftWest ( )

"Shift West" was selected from the Edit menu.

Definition at line 686 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.model.direction.Direction.WEST.

+ Here is the call graph for this function:

◆ tileStretching()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.tileStretching ( @NotNull final MapView< G, A, R >  mapView,
final int  heightValue,
final boolean  isAbsolute,
@Nullable final Integer []  subLayers 
)
private

◆ tileStretchingClear()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.tileStretchingClear ( )

Invoked when the user wants to clear tile stretching on the selected map squares.

Definition at line 833 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChange().

+ Here is the call graph for this function:

◆ tileStretchingDecrease()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.tileStretchingDecrease ( )

Invoked when the user wants to decrease tile stretching on the selected map squares.

Definition at line 851 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChange().

+ Here is the call graph for this function:

◆ tileStretchingIncrease()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.tileStretchingIncrease ( )

Invoked when the user wants to increase tile stretching on the selected map squares.

Definition at line 842 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChange().

+ Here is the call graph for this function:

◆ tileStretchingSet()

void net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.tileStretchingSet ( )

Invoked when the user wants to set tile stretching on the selected map squares.

Definition at line 824 of file MainActions.java.

References net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doTileStretchingChangeSet().

+ Here is the call graph for this function:

Member Data Documentation

◆ aClear

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aClear
private

Action called for "clear".

Definition at line 121 of file MainActions.java.

◆ aCopy

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aCopy
private

Action called for "copy".

Definition at line 133 of file MainActions.java.

◆ aCut

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aCut
private

Action called for "cut".

Definition at line 127 of file MainActions.java.

◆ aExpandEmptySelection

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aExpandEmptySelection
private

Action called for "grow empty selection".

Definition at line 283 of file MainActions.java.

◆ aFillAbove

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aFillAbove
private

Action called for "fill above".

Definition at line 229 of file MainActions.java.

◆ aFillAuto

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aFillAuto
private

Action called for "fill".

Definition at line 223 of file MainActions.java.

◆ aFillBelow

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aFillBelow
private

Action called for "fill below".

Definition at line 235 of file MainActions.java.

◆ aFind

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aFind
private

Action called for "find".

Definition at line 199 of file MainActions.java.

◆ aFindNext

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aFindNext
private

Action called for "find next".

Definition at line 205 of file MainActions.java.

◆ aFindPrev

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aFindPrev
private

Action called for "find prev".

Definition at line 211 of file MainActions.java.

◆ aFloodFill

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aFloodFill
private

Action called for "flood fill".

Definition at line 259 of file MainActions.java.

◆ aInvertSelection

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aInvertSelection
private

Action called for "invert selection".

Definition at line 277 of file MainActions.java.

◆ aMassChange

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aMassChange
private

Action called for "mass change".

Definition at line 265 of file MainActions.java.

◆ aPaste

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aPaste
private

Action called for "paste".

Definition at line 187 of file MainActions.java.

◆ aPasteTiled

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aPasteTiled
private

Action called for "paste tiled".

Definition at line 193 of file MainActions.java.

◆ aRandFillAbove

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aRandFillAbove
private

Action called for "random fill above".

Definition at line 247 of file MainActions.java.

◆ aRandFillAuto

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aRandFillAuto
private

Action called for "random fill".

Definition at line 241 of file MainActions.java.

◆ aRandFillBelow

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aRandFillBelow
private

Action called for "random fill below".

Definition at line 253 of file MainActions.java.

◆ aReplace

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aReplace
private

Action called for "replace".

Definition at line 217 of file MainActions.java.

◆ aSelectAll

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aSelectAll
private

Action called for "select all".

Definition at line 271 of file MainActions.java.

◆ aShiftEast

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftEast
private

Action called for "shift east".

Definition at line 151 of file MainActions.java.

◆ aShiftNorth

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftNorth
private

Action called for "shift north".

Definition at line 139 of file MainActions.java.

◆ aShiftNorthEast

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftNorthEast
private

Action called for "shift north east".

Definition at line 145 of file MainActions.java.

◆ aShiftNorthWest

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftNorthWest
private

Action called for "shift north west".

Definition at line 181 of file MainActions.java.

◆ aShiftSouth

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftSouth
private

Action called for "shift south".

Definition at line 163 of file MainActions.java.

◆ aShiftSouthEast

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftSouthEast
private

Action called for "shift south east".

Definition at line 157 of file MainActions.java.

◆ aShiftSouthWest

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftSouthWest
private

Action called for "shift south west".

Definition at line 169 of file MainActions.java.

◆ aShiftWest

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aShiftWest
private

Action called for "shift west".

Definition at line 175 of file MainActions.java.

◆ aTileStretchingClear

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aTileStretchingClear
private

Action called for "tile stretching -> clear Z".

Definition at line 295 of file MainActions.java.

◆ aTileStretchingDecrease

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aTileStretchingDecrease
private

Action called for "tile stretching -> decrease Z".

Definition at line 307 of file MainActions.java.

◆ aTileStretchingIncrease

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aTileStretchingIncrease
private

Action called for "tile stretching -> increase Z".

Definition at line 301 of file MainActions.java.

◆ aTileStretchingSet

Action net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aTileStretchingSet
private

Action called for "tile stretching -> set Z".

Definition at line 289 of file MainActions.java.

◆ copyBuffer

final CopyBuffer<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.copyBuffer
private

◆ currentMapControl

MapControl<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapControl
private

◆ currentMapView

MapView<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView
private

The last known active map view, or.

null

if no map is active.

Definition at line 337 of file MainActions.java.

Referenced by net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doClear(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCopy(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCut(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFind(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFindNext(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFindPrev(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doFloodFill(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPaste(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doPasteTiled(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doReplace(), net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doShift(), and net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getSelection().

◆ findDialogManager

final FindDialogManager<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.findDialogManager
private

◆ insertionModeSet

◆ mapGridListener

final MapGridListener net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapGridListener
private
Initial value:
= new MapGridListener() {
@Override
public void mapGridChanged(@NotNull final MapGridEvent e) {
}
@Override
public void mapGridResized(@NotNull final MapGridEvent e) {
}
}

The map grid listener used to detect map grid changes.

Definition at line 343 of file MainActions.java.

◆ mapViewSettings

◆ massChangeDialog

final MassChangeDialog net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.massChangeDialog = new MassChangeDialog()
private

The MassChangeDialog instance.

Definition at line 325 of file MainActions.java.

◆ objectChooser

final ObjectChooser<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.objectChooser
private

◆ parent

final JFrame net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parent
private

◆ randomFillDialog

final RandomFillDialog net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.randomFillDialog = new RandomFillDialog()
private

The RandomFillDialog instance.

Definition at line 313 of file MainActions.java.

◆ replaceDialogManager

final ReplaceDialogManager<G, A, R> net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.replaceDialogManager
private

◆ tileStretchingDialog

final TileStretchingDialog net.sf.gridarta.mainactions.MainActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.tileStretchingDialog = new TileStretchingDialog()
private

The TileStretchingDialog instance.

Definition at line 319 of file MainActions.java.


The documentation for this class was generated from the following file: