Package net.sf.gridarta.action
Class LightVisibleAction
- java.lang.Object
-
- net.sf.gridarta.action.LightVisibleAction
-
- All Implemented Interfaces:
EditorAction
public class LightVisibleAction extends java.lang.Object implements EditorAction
AnEditorActionthat toggles whether map lighting is visible.
-
-
Constructor Summary
Constructors Constructor Description LightVisibleAction(@NotNull MapViewSettings mapViewSettings)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLightVisible()Action method for "light visible".voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.voidsetLightVisible(boolean lightVisible)Sets whether the light of the current map should be visible.
-
-
-
Constructor Detail
-
LightVisibleAction
public LightVisibleAction(@NotNull @NotNull MapViewSettings mapViewSettings)Creates a new instance.- Parameters:
mapViewSettings- the map view settings instance to use
-
-
Method Detail
-
isLightVisible
@ActionMethod public boolean isLightVisible()
Action method for "light visible".- Returns:
trueif the light is visible, orfalseif the light is invisible
-
setLightVisible
@ActionMethod public void setLightVisible(boolean lightVisible)
Sets whether the light of the current map should be visible.- Parameters:
lightVisible- new visibility of light in current map,trueif the light should be visible,falseif invisible- See Also:
isLightVisible()
-
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
-
-