public class LightVisibleAction extends java.lang.Object implements EditorAction
EditorAction that toggles whether map lighting is visible.| Constructor and Description |
|---|
LightVisibleAction(@NotNull MapViewSettings mapViewSettings)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLightVisible()
Action method for "light visible".
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
void |
setLightVisible(boolean lightVisible)
Sets whether the light of the current map should be visible.
|
public LightVisibleAction(@NotNull
@NotNull MapViewSettings mapViewSettings)
mapViewSettings - the map view settings instance to use@ActionMethod public boolean isLightVisible()
true if the light is visible, or false if the
light is invisible@ActionMethod public void setLightVisible(boolean lightVisible)
lightVisible - new visibility of light in current map, true
if the light should be visible, false if invisibleisLightVisible()public void setAction(@NotNull
@NotNull javax.swing.Action action,
@NotNull
@NotNull java.lang.String name)
EditorActionAction instance for this editor action.setAction in interface EditorActionaction - the action instancename - the name of the action