public class ViewAction
extends javax.swing.AbstractAction
NamedGameObjectMatcher
.Constructor and Description |
---|
ViewAction(MapViewSettings mapViewSettings,
NamedGameObjectMatcher matcher)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.lang.Object |
clone() |
java.awt.Component |
getCheckBoxMenuItem()
Returns the menu item for this action.
|
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 MapViewSettings mapViewSettings, @NotNull NamedGameObjectMatcher matcher)
mapViewSettings
- the map view settings instancematcher
- the matcher@NotNull public java.lang.String getName()
public final void updateAction()
public void actionPerformed(@NotNull java.awt.event.ActionEvent e)
@NotNull public java.awt.Component getCheckBoxMenuItem()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class javax.swing.AbstractAction
java.lang.CloneNotSupportedException