|
Gridarta Editor
|
An EditorAction that toggles whether map lighting is visible. More...
Inheritance diagram for net.sf.gridarta.action.LightVisibleAction:
Collaboration diagram for net.sf.gridarta.action.LightVisibleAction:Public Member Functions | |
| boolean | isLightVisible () |
| Action method for "light visible". More... | |
| LightVisibleAction (@NotNull final MapViewSettings mapViewSettings) | |
| Creates a new instance. More... | |
| void | setAction (@NotNull final Action action, @NotNull final String name) |
| Sets the Action instance for this editor action. More... | |
| void | setLightVisible (final boolean lightVisible) |
| Sets whether the light of the current map should be visible. More... | |
Private Member Functions | |
| boolean | doLightVisible (final boolean performAction, final boolean lightVisible) |
| Executes the "light visible" action. More... | |
| void | updateAction () |
| Updates the action's state. More... | |
Private Attributes | |
| ToggleAction | action |
| The ToggleAction associated with this editor action. More... | |
| final MapViewSettings | mapViewSettings |
| The MapViewSettings instance to use. More... | |
| final MapViewSettingsListener | mapViewSettingsListener |
| The MapViewSettingsListener attached to mapViewSettings. More... | |
An EditorAction that toggles whether map lighting is visible.
Definition at line 35 of file LightVisibleAction.java.
| net.sf.gridarta.action.LightVisibleAction.LightVisibleAction | ( | @NotNull final MapViewSettings | mapViewSettings | ) |
Creates a new instance.
| mapViewSettings | the map view settings instance to use |
Definition at line 96 of file LightVisibleAction.java.
References net.sf.gridarta.model.mapviewsettings.MapViewSettings.addMapViewSettingsListener(), and net.sf.gridarta.action.LightVisibleAction.mapViewSettings.
Here is the call graph for this function:
|
private |
Executes the "light visible" action.
| performAction | whether the action should be performed |
| lightVisible | whether the light should be visible; ignored unless performAction |
Definition at line 135 of file LightVisibleAction.java.
References net.sf.gridarta.model.mapviewsettings.MapViewSettings.setLightVisible().
Referenced by net.sf.gridarta.action.LightVisibleAction.isLightVisible(), net.sf.gridarta.action.LightVisibleAction.setLightVisible(), and net.sf.gridarta.action.LightVisibleAction.updateAction().
Here is the call graph for this function:
Here is the caller graph for this function:| boolean net.sf.gridarta.action.LightVisibleAction.isLightVisible | ( | ) |
Action method for "light visible".
Definition at line 107 of file LightVisibleAction.java.
References net.sf.gridarta.action.LightVisibleAction.doLightVisible(), and net.sf.gridarta.model.mapviewsettings.MapViewSettings.isLightVisible().
Referenced by net.sf.gridarta.action.LightVisibleAction.updateAction().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.action.LightVisibleAction.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 123 of file LightVisibleAction.java.
| void net.sf.gridarta.action.LightVisibleAction.setLightVisible | ( | final boolean | lightVisible | ) |
Sets whether the light of the current map should be visible.
| lightVisible | new visibility of light in current map, true false |
Definition at line 118 of file LightVisibleAction.java.
References net.sf.gridarta.action.LightVisibleAction.doLightVisible().
Here is the call graph for this function:
|
private |
Updates the action's state.
Definition at line 146 of file LightVisibleAction.java.
References net.sf.gridarta.action.LightVisibleAction.doLightVisible(), and net.sf.gridarta.action.LightVisibleAction.isLightVisible().
Here is the call graph for this function:
|
private |
The ToggleAction associated with this editor action.
Set to
if no action is associated.
Definition at line 48 of file LightVisibleAction.java.
|
private |
The MapViewSettings instance to use.
Definition at line 41 of file LightVisibleAction.java.
Referenced by net.sf.gridarta.action.LightVisibleAction.LightVisibleAction().
|
private |
The MapViewSettingsListener attached to mapViewSettings.
Definition at line 55 of file LightVisibleAction.java.