 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.match;
22 import java.awt.event.ActionEvent;
23 import java.util.ArrayList;
24 import java.util.Collections;
25 import java.util.List;
26 import javax.swing.AbstractAction;
27 import javax.swing.Action;
28 import org.jetbrains.annotations.NotNull;
47 private final List<GameObjectMatcherToggleAction>
actions =
new ArrayList<>();
82 return Collections.unmodifiableList(
actions);
108 private final Iterable<? extends GameObjectMatcherToggleAction>
actions;
121 action.setSelected(
false);
130 }
catch (
final CloneNotSupportedException ex) {
131 throw new AssertionError(ex);
214 }
catch (
final CloneNotSupportedException ex) {
215 throw new AssertionError(ex);
final Iterable<? extends GameObjectMatcherToggleAction > actions
The actions to reset.
void actionPerformed(@NotNull final ActionEvent e)
Action getResetAction()
Gets the reset action.
Interface for classes that match GameObjects.
final MutableOrGameObjectMatcher mutableOrGameObjectMatcher
The MutableOrGameObjectMatcher that is manipulated by the actions.
static final long serialVersionUID
The serial version UID.
static final long serialVersionUID
The serial version UID.
A GameObjectMatcher that delegates to other.
GameObjectMatcherToggleAction(@NotNull final GameObjectMatcher gameObjectMatcher, @NotNull final MutableOrGameObjectMatcher mutableOrArchObjectMatcher)
Creates a new instance.
void setSelected(final boolean selected)
Sets the selected state.
Action addArchObjectMatcher(@NotNull final GameObjectMatcher gameObjectMatcher)
Adds a GameObjectMatcher.
final Action resetAction
The reset action.
void removeArchObjectMatcher(@NotNull final GameObjectMatcher gameObjectMatcher)
Removes a GameObjectMatcher.
void addArchObjectMatcher(@NotNull final GameObjectMatcher gameObjectMatcher)
Adds a GameObjectMatcher.
final GameObjectMatcher gameObjectMatcher
The GameObjectMatcher to add / remove.
ResetAction(@NotNull final Iterable<? extends GameObjectMatcherToggleAction > actions)
Creates a new instance.
List<? extends Action > getAllActions()
Gets all actions.
GameObjectMatcherToggleAction clone()
final MutableOrGameObjectMatcher mutableOrArchObjectMatcher
A MutableOrGameObjectMatcher to add / remove {} to.
boolean selected
Selected state.
final List< GameObjectMatcherToggleAction > actions
The actions.
void actionPerformed(@NotNull final ActionEvent e)
boolean isSelected()
Gets the selected state.
An Action to toggle a GameObjectMatcher within a {}.
Manages GameObjectMatchers.
ViewGameObjectMatcherManager(@NotNull final MutableOrGameObjectMatcher mutableOrGameObjectMatcher)
Creates a new instance.