 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.exitconnector;
22 import java.util.Collection;
23 import java.util.Objects;
24 import java.util.concurrent.CopyOnWriteArrayList;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
37 private final Collection<ExitConnectorModelListener>
listeners =
new CopyOnWriteArrayList<>();
Stores information needed by the exit connector.
void addExitConnectorModelListener(@NotNull final ExitConnectorModelListener listener)
Adds an ExitConnectorModelListener to be notified of changes.
Stores information about a remembered exit location.
String exitArchetypeName
The archetype to insert when creating new exit game objects.
abstract boolean loadPasteExitName()
Returns the stored attribute value for pasteExitName.
boolean autoCreateExit
Whether exit game objects should be auto-created when needed.
abstract void saveAutoCreateExit(boolean autoCreateExit)
Sets the stored attribute value for isAutoCreateExit().
boolean isAutoCreateExit()
Returns whether exit game objects should be auto-created when needed.
final Collection< ExitConnectorModelListener > listeners
The listeners to notify.
ExitLocation exitLocation
Whether an exit has been remembered.
abstract void savePasteExitName(boolean pasteExitName)
Sets the stored attribute value for pasteExitName.
boolean pasteExitName
Whether the exit's name should be set when pasted.
String getExitArchetypeName()
Returns the archetype name when creating exit game objects.
abstract String loadExitArchetypeName()
Returns the stored attribute value for exitArchetypeName.
void setAutoCreateExit(final boolean autoCreateExit)
Sets whether exit game objects should be auto-created when needed.
abstract boolean loadAutoCreateExit()
Returns the stored attribute value for autoCreateExit.
boolean isPasteExitName()
Returns whether the exit name should be updated.
void setPasteExitName(final boolean pasteExitName)
Sets whether the exit name should be updated.
ExitLocation getExitLocation()
Returns the remembered exit location.
void setExitLocation(@Nullable final ExitLocation exitLocation)
Sets the remembered exit location.
void setExitArchetypeName(@NotNull final String exitArchetypeName)
Sets the archetype name for creating exit game objects.
Stores information needed by the exit connector.
abstract void saveExitArchetypeName(@NotNull String exitArchetypeName)
Sets the stored attribute value for setExitArchetypeName(String).
Interface for listeners interested in ExitConnectorModel related events.
void removeExitConnectorModelListener(@NotNull final ExitConnectorModelListener listener)
Removes an ExitConnectorModelListener to be notified of changes.