![]() |
Gridarta Editor
|
The location of a map file with a map directory. More...
Public Member Functions | |
boolean | equals (@Nullable final Object obj) |
File | getFile () |
Returns a File for this map file. More... | |
AbsoluteMapPath | getMapPath () |
Returns the map path within getMapsDir(). More... | |
File | getMapsDir () |
Returns the base directory this map file is part of. More... | |
MapPath | getRelativeMapFileTo (@NotNull final MapFile mapFile) throws DifferentMapBaseException |
Returns a map path of an another map file relative to this map file. More... | |
int | hashCode () |
MapFile (@NotNull final File mapsDir) | |
Creates a new instance for the maps directory. More... | |
MapFile (@NotNull final MapFile parent, @NotNull final MapPath mapPath) | |
Creates a new instance. More... | |
MapFile (@NotNull final MapFile parent, @NotNull final String name) | |
Creates a new instance for a child of a parent map file. More... | |
String | toString () |
Private Attributes | |
final AbsoluteMapPath | mapPath |
The absolute map path within mapsDir. More... | |
final File | mapsDir |
The maps directory this map file is part of. More... | |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
The serial version UID. More... | |
The location of a map file with a map directory.
Definition at line 31 of file MapFile.java.
net.sf.gridarta.model.mapmodel.MapFile.MapFile | ( | @NotNull final File | mapsDir | ) |
Creates a new instance for the maps directory.
mapsDir | the maps directory |
Definition at line 54 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.MapFile.mapPath, and net.sf.gridarta.model.mapmodel.MapFile.mapsDir.
Referenced by net.sf.gridarta.model.mapmodel.MapFile.equals().
net.sf.gridarta.model.mapmodel.MapFile.MapFile | ( | @NotNull final MapFile | parent, |
@NotNull final String | name | ||
) |
Creates a new instance for a child of a parent map file.
parent | the parent map file |
name | the name of the child |
Definition at line 64 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.MapFile.mapPath, net.sf.gridarta.model.mapmodel.MapFile.mapsDir, and name.
net.sf.gridarta.model.mapmodel.MapFile.MapFile | ( | @NotNull final MapFile | parent, |
@NotNull final MapPath | mapPath | ||
) |
Creates a new instance.
parent | the parent map file |
mapPath | the map path |
Definition at line 74 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.MapPathUtils.append(), net.sf.gridarta.model.mapmodel.MapFile.mapPath, and net.sf.gridarta.model.mapmodel.MapFile.mapsDir.
boolean net.sf.gridarta.model.mapmodel.MapFile.equals | ( | @Nullable final Object | obj | ) |
Definition at line 122 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.AbsoluteMapPath.equals(), net.sf.gridarta.model.mapmodel.MapFile.MapFile(), net.sf.gridarta.model.mapmodel.MapFile.mapPath, and net.sf.gridarta.model.mapmodel.MapFile.mapsDir.
Referenced by net.sf.gridarta.model.exitconnector.ExitLocation.equals(), net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapFile(), net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >.openMapFile(), and net.sf.gridarta.gui.mapmenu.MapMenuUtils.removeMap().
File net.sf.gridarta.model.mapmodel.MapFile.getFile | ( | ) |
Returns a File for this map file.
Definition at line 102 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.AbsoluteMapPath.getPath(), net.sf.gridarta.model.mapmodel.MapFile.mapPath, and net.sf.gridarta.model.mapmodel.MapFile.mapsDir.
Referenced by net.sf.gridarta.gui.mapmenu.MapMenuAction.actionPerformed(), net.sf.gridarta.gui.map.renderer.ImageCreator2< G, A, R >.createImage(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.createMaps(), net.sf.gridarta.gui.map.maptilepane.AbstractMapTilePane< net.sf.gridarta.var.daimonin.model.gameobject.GameObject, net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject, net.sf.gridarta.var.daimonin.model.archetype.Archetype >.createTilePanels(), net.sf.gridarta.gui.map.mapactions.MapActions< G, A, R >.doCreateTile(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect(), net.sf.gridarta.gui.map.MapFileActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doReloadMap(), net.sf.gridarta.gui.panel.pickmapchooser.PickmapChooserControl<?, ?, ?>.doRevertPickmap(), net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >.getLocalMapDir(), net.sf.gridarta.gui.mapimagecache.MapImageCache<?, ?, ?>.getOrCreate(), net.sf.gridarta.model.index.MapsIndexer< G, A, R >.indexPendingMaps(), net.sf.gridarta.gui.dialog.plugin.parameter.MapPathParameterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MapPathParameterView(), net.sf.gridarta.gui.panel.pickmapchooser.PickmapChooserView< G, A, R >.newPickmap(), net.sf.gridarta.gui.misc.DefaultFileControl< G, A, R >.reportSaveError(), net.sf.gridarta.model.mapmanager.AbstractMapManager< G, A, R >.revert(), net.sf.gridarta.gui.misc.DefaultFileControl< G, A, R >.save(), net.sf.gridarta.actions.AttachTiledMaps< G, A, R >.saveAdjacentMaps(), net.sf.gridarta.gui.mapmenu.MapMenu.saveEntries(), net.sf.gridarta.gui.misc.DefaultFileControl< G, A, R >.saveMapAs(), net.sf.gridarta.model.mapmodel.MapFileTest.testGetFile1(), net.sf.gridarta.model.mapcontrol.DefaultMapControlTest.testSave1(), net.sf.gridarta.model.mapcontrol.DefaultMapControlTest.testSaveAs1(), net.sf.gridarta.gui.mapmenu.MapMenuAction.update(), net.sf.gridarta.actions.AttachTiledMaps< G, A, R >.updateTilePaths(), and net.sf.gridarta.gui.mapmenu.MapMenuEntryTreeCellRenderer.visit().
AbsoluteMapPath net.sf.gridarta.model.mapmodel.MapFile.getMapPath | ( | ) |
Returns the map path within getMapsDir().
Definition at line 93 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.MapFile.mapPath.
Referenced by net.sf.gridarta.model.index.MapsIndexerTest.assertEquals(), net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.doOpenInClient(), net.sf.gridarta.gui.dialog.exportmap.ExportMapAsImageDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ExportMapAsImageDialog(), net.sf.gridarta.gui.dialog.gomap.MapListCellRenderer.getListCellRendererComponent(), net.sf.gridarta.model.maplocation.MapLocation.getMapPath(), net.sf.gridarta.gui.map.mapview.DefaultMapView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getWindowTitle(), net.sf.gridarta.model.maplocation.MapLocation.newAbsoluteMapLocation(), net.sf.gridarta.plugin.parameter.MapPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setFile(), net.sf.gridarta.plugin.parameter.PluginParameterCodecTest.testMapFromXml3(), net.sf.gridarta.model.mapmodel.MapFileTest.testNew1(), net.sf.gridarta.model.mapmodel.MapFileTest.testNew2(), net.sf.gridarta.model.mapmodel.MapFileTest.testNew3(), net.sf.gridarta.model.exitconnector.ExitLocation.updateExitObject(), and net.sf.gridarta.gui.mapmenu.MapMenuEntryTreeCellRenderer.visit().
File net.sf.gridarta.model.mapmodel.MapFile.getMapsDir | ( | ) |
Returns the base directory this map file is part of.
Definition at line 84 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.MapFile.mapsDir.
Referenced by net.sf.gridarta.model.index.MapsIndexerTest.assertEquals(), net.sf.gridarta.gui.dialog.exportmap.ExportMapAsImageDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ExportMapAsImageDialog(), net.sf.gridarta.gui.dialog.plugin.parameter.MapPathParameterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MapPathParameterView(), net.sf.gridarta.plugin.parameter.MapPathParameter< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setFile(), net.sf.gridarta.model.mapmodel.MapFileTest.testNew1(), net.sf.gridarta.model.mapmodel.MapFileTest.testNew2(), and net.sf.gridarta.model.mapmodel.MapFileTest.testNew3().
MapPath net.sf.gridarta.model.mapmodel.MapFile.getRelativeMapFileTo | ( | @NotNull final MapFile | mapFile | ) | throws DifferentMapBaseException |
Returns a map path of an another map file relative to this map file.
mapFile | the other map file |
DifferentMapBaseException | if the two map files do not have the same maps directory |
Definition at line 114 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.MapFile.mapPath, and net.sf.gridarta.model.mapmodel.MapFile.mapsDir.
Referenced by net.sf.gridarta.model.mapmodel.MapFileTest.testGetRelativeMapFile1(), and net.sf.gridarta.model.mapmodel.MapFileTest.testGetRelativeMapFile2().
int net.sf.gridarta.model.mapmodel.MapFile.hashCode | ( | ) |
Definition at line 131 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.AbsoluteMapPath.hashCode(), net.sf.gridarta.model.mapmodel.MapFile.mapPath, and net.sf.gridarta.model.mapmodel.MapFile.mapsDir.
Referenced by net.sf.gridarta.model.exitconnector.ExitLocation.hashCode().
String net.sf.gridarta.model.mapmodel.MapFile.toString | ( | ) |
Definition at line 136 of file MapFile.java.
References net.sf.gridarta.model.mapmodel.MapFile.mapPath, and net.sf.gridarta.model.mapmodel.AbsoluteMapPath.toString().
|
private |
The absolute map path within mapsDir.
Definition at line 48 of file MapFile.java.
Referenced by net.sf.gridarta.model.mapmodel.MapFile.equals(), net.sf.gridarta.model.mapmodel.MapFile.getFile(), net.sf.gridarta.model.mapmodel.MapFile.getMapPath(), net.sf.gridarta.model.mapmodel.MapFile.getRelativeMapFileTo(), net.sf.gridarta.model.mapmodel.MapFile.hashCode(), net.sf.gridarta.model.mapmodel.MapFile.MapFile(), and net.sf.gridarta.model.mapmodel.MapFile.toString().
|
private |
The maps directory this map file is part of.
Definition at line 42 of file MapFile.java.
Referenced by net.sf.gridarta.model.mapmodel.MapFile.equals(), net.sf.gridarta.model.mapmodel.MapFile.getFile(), net.sf.gridarta.model.mapmodel.MapFile.getMapsDir(), net.sf.gridarta.model.mapmodel.MapFile.getRelativeMapFileTo(), net.sf.gridarta.model.mapmodel.MapFile.hashCode(), and net.sf.gridarta.model.mapmodel.MapFile.MapFile().
|
staticprivate |
The serial version UID.
Definition at line 36 of file MapFile.java.