 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map.viewaction;
22 import java.awt.Component;
23 import java.awt.event.ActionEvent;
24 import javax.swing.AbstractAction;
25 import javax.swing.AbstractButton;
26 import javax.swing.JCheckBoxMenuItem;
29 import net.
sf.japi.swing.action.ActionBuilder;
30 import net.
sf.japi.swing.action.ActionBuilderFactory;
31 import org.jetbrains.annotations.NotNull;
49 private static final ActionBuilder
ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder(
"net.sf.gridarta");
82 name = matcher.getName();
String getName()
Returns the name for sorting the menu entries.
Action to manage one edit type represented by one {}.
final int editType
The managed edit type.
Base package of all Gridarta classes.
final void updateAction()
Update the action's state to match the current edit type settings.
void actionPerformed(@NotNull final ActionEvent e)
Container for settings that affect the rendering of maps.
Decorates an arbitrary GameObjectMatcher with a localized name that is suitable for the user interfac...
Classes related to matching {GameObjects}, so called { net.sf.gridarta.model.match....
static final ActionBuilder ACTION_BUILDER
Action Builder to create Actions.
boolean isEditType(int editType)
Get information on the current state of edit type.
ViewAction(@NotNull final MapViewSettings mapViewSettings, @NotNull final NamedGameObjectMatcher matcher)
Creates a new instance.
final String name
The name for sorting the menu entries.
Component getCheckBoxMenuItem()
Returns the menu item for this action.
final AbstractButton checkBoxMenuItem
The menu item for this action.
final MapViewSettings mapViewSettings
The map view settings instance.
static final long serialVersionUID
The serial version UID.
void toggleEditType(int editType)
Toggle an edit type.