Go to the documentation of this file.
20 package net.sf.gridarta.gui.mapfiles;
23 import java.io.IOException;
24 import java.util.Collection;
25 import java.util.regex.Pattern;
36 import org.jetbrains.annotations.NotNull;
37 import org.jetbrains.annotations.Nullable;
102 private final Object
sync =
new Object();
113 public PickmapState(@NotNull
final MapFolder<G, A, R> mapFolder, @NotNull
final String
name, @NotNull
final MapReaderFactory<G, A> mapReaderFactory, @NotNull
final MapManager<G, A, R> pickmapManager, @NotNull
final MapViewsManager<G, A, R> mapViewsManager)
throws InvalidNameException {
151 synchronized (
sync) {
164 synchronized (
sync) {
174 synchronized (
sync) {
190 synchronized (
sync) {
206 synchronized (
sync) {
217 public void remove(
final boolean deleteFile) {
226 public void save() throws IOException {
238 public void revert() throws IOException {
240 if (oldPickmap !=
null) {
void release(@NotNull MapControl< G, A, R > mapControl)
static boolean isValidPickmapName(@NotNull final CharSequence name)
void removePickmap(@NotNull final PickmapState< G, A, R > pickmapState, final boolean deleteFile)
final MapReaderFactory< G, A > mapReaderFactory
List< G > getGameObjects()
MapView< G, A, R > getMapView()
final MapFolder< G, A, R > mapFolder
void getUnsavedPickmaps(@NotNull final Collection< MapControl< G, A, R >> unsavedPickmaps)
MapView< G, A, R > pickmapView
void closeView(@NotNull final MapView< G, A, R > mapView)
final MapViewsManager< G, A, R > mapViewsManager
PickmapState(@NotNull final MapFolder< G, A, R > mapFolder, @NotNull final String name, @NotNull final MapReaderFactory< G, A > mapReaderFactory, @NotNull final MapManager< G, A, R > pickmapManager, @NotNull final MapViewsManager< G, A, R > mapViewsManager)
MapControl< G, A, R > getPickmap()
MapReader< G, A > newMapReader(@NotNull File file)
MapControl< G, A, R > newMap(@Nullable List< G > objects, @NotNull A mapArchObject, @Nullable MapFile mapFile, boolean interactive)
final MapManager< G, A, R > pickmapManager
MapControl< G, A, R > pickmap
static final Pattern PATTERN_VALID_PICKMAP_NAME
void firePickmapReverted(@NotNull final PickmapState< G, A, R > pickmapState, @NotNull final MapControl< G, A, R > oldPickmap)
MapModel< G, A, R > getMapModel()
MapView< G, A, R > newMapView(@NotNull final MapControl< G, A, R > mapControl, @Nullable final Point viewPosition)