public class ViewAction
extends javax.swing.AbstractAction
NamedGameObjectMatcher
.Constructor and Description |
---|
ViewAction(@NotNull MapViewSettings mapViewSettings,
@NotNull NamedGameObjectMatcher matcher)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(@NotNull java.awt.event.ActionEvent e) |
@NotNull ViewAction |
clone() |
@NotNull java.awt.Component |
getCheckBoxMenuItem()
Returns the menu item for this action.
|
@NotNull java.lang.String |
getName()
Returns the name for sorting the menu entries.
|
void |
updateAction()
Update the action's state to match the current edit type settings.
|
public ViewAction(@NotNull @NotNull MapViewSettings mapViewSettings, @NotNull @NotNull NamedGameObjectMatcher matcher)
mapViewSettings
- the map view settings instancematcher
- the matcher@NotNull public @NotNull java.lang.String getName()
public final void updateAction()
public void actionPerformed(@NotNull @NotNull java.awt.event.ActionEvent e)
@NotNull public @NotNull java.awt.Component getCheckBoxMenuItem()
@NotNull public @NotNull ViewAction clone() throws java.lang.CloneNotSupportedException
clone
in class javax.swing.AbstractAction
java.lang.CloneNotSupportedException