Package | Description |
---|---|
net.sf.gridarta.action | |
net.sf.gridarta.actions | |
net.sf.gridarta.gui.mainwindow | |
net.sf.gridarta.gui.map |
Base classes for rendering maps.
|
net.sf.gridarta.gui.map.event | |
net.sf.gridarta.gui.map.mapview | |
net.sf.gridarta.gui.map.test | |
net.sf.gridarta.gui.mapfiles | |
net.sf.gridarta.gui.mapimagecache | |
net.sf.gridarta.gui.misc | |
net.sf.gridarta.gui.panel.gameobjectattributes | |
net.sf.gridarta.gui.panel.pickmapchooser |
Classes implementing the pickmap chooser.
|
net.sf.gridarta.gui.panel.tools |
This package handles tools for manipulating maps.
|
net.sf.gridarta.mainactions | |
net.sf.gridarta.model.mapcontrol | |
net.sf.gridarta.model.mapmanager | |
net.sf.gridarta.plugin.parameter | |
net.sf.gridarta.var.atrinik.model.mapcontrol | |
net.sf.gridarta.var.crossfire.model.mapcontrol | |
net.sf.gridarta.var.daimonin.model.mapcontrol |
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
ValidateMapAction.currentMapControl
The last known active map, or
null if no map is active. |
Modifier and Type | Method and Description |
---|---|
private MapControl<G,A,R> |
AttachTiledMaps.loadMapControl(MapModel<G,A,R> mapModel,
String path)
Loads an adjacent
MapControl , ignoring any (I/O-)errors. |
Modifier and Type | Method and Description |
---|---|
boolean |
ExitConnectorActions.doExitConnect(boolean performAction,
MapControl<G,A,R> mapControl,
Point targetLocation)
Executes the "exit connect" action.
|
boolean |
ExitConnectorActions.doExitCopy(boolean performAction,
MapControl<G,A,R> mapControl,
Point location)
Executes the "exit copy" action.
|
boolean |
ExitConnectorActions.doExitPaste(boolean performAction,
MapControl<G,A,R> mapControl,
Point targetLocation)
Executes the "exit paste" action.
|
Modifier and Type | Method and Description |
---|---|
private void |
AttachTiledMaps.fillAdjacentMaps(List<MapControl<G,A,R>> mapControls)
Fills missing adjacent map slots.
|
private void |
AttachTiledMaps.loadAdjacentMaps(MapModel<G,A,R> mapModel,
Collection<MapControl<G,A,R>> mapControls,
String[] tilePaths)
Loads adjacent map files by "filling" them by checking the "side" path
links of the loaded ones.
|
private void |
AttachTiledMaps.saveAdjacentMaps(Iterable<MapControl<G,A,R>> mapControls)
Saves adjacent maps.
|
private void |
AttachTiledMaps.updateTilePaths(MapModel<G,A,R> mapModel,
List<MapControl<G,A,R>> mapControls,
String[] tilePaths,
File mapsDirectory)
Updates map tile paths to match the loaded maps.
|
private void |
AttachTiledMaps.validateMapSizes(MapModel<G,A,R> mapModel,
Iterable<MapControl<G,A,R>> mapControls)
Validates all links to check that attached maps have matching
width/height.
|
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
GameObjectTextEditorTab.currentMapControl
Last known active map.
|
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
MapFileActions.currentMapControl
The currently tracked map, or
null if no map is tracked. |
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
MouseOpEvent.mapControl
The map control for this event.
|
Modifier and Type | Method and Description |
---|---|
MapControl<G,A,R> |
MouseOpEvent.getMapControl() |
Modifier and Type | Field and Description |
---|---|
private MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapView.mapControl
The controller of this view.
|
private MapControl<G,A,R> |
DefaultMapView.mapControl
The controller of this view.
|
Modifier and Type | Field and Description |
---|---|
private Map<MapControl<G,A,R>,MapViews<G,A,R>> |
MapViewsManager.mapViews
All existing
MapViews . |
Modifier and Type | Method and Description |
---|---|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapView.getMapControl()
Return the controller of this view.
|
MapControl<G,A,R> |
MapView.getMapControl()
Return the controller of this view.
|
MapControl<G,A,R> |
DefaultMapView.getMapControl()
Return the controller of this view.
|
Modifier and Type | Method and Description |
---|---|
void |
MapViewsManager.addMapViewsListener(MapControl<G,A,R> mapControl,
MapViewsListener<G,A,R> listener)
Adds a
MapViewsListener to be notified of events. |
MapView<G,A,R> |
MapViewsManager.getMapViewFrame(MapControl<G,A,R> mapControl)
Returns the last used view of a
MapControl . |
Iterator<MapView<G,A,R>> |
MapViewsManager.getMapViewIterator(MapControl<G,A,R> mapControl)
|
int |
MapViewsManager.getMapViews(MapControl<G,A,R> mapControl)
Returns the number of views of a
MapControl . |
private MapViews<G,A,R> |
MapViewsManager.getMapViewsInt(MapControl<G,A,R> mapControl)
Returns the
MapViews instance for a MapControl . |
private static String |
DefaultMapView.getWindowTitle(MapControl<?,?,?> mapControl,
int number,
PathManager pathManager)
Returns the title for the map window.
|
MapView<G,A,R> |
DefaultMapViewFactory.newMapView(MapControl<G,A,R> mapControl,
Point viewPosition,
int viewCounter)
Creates a new map view instance for a map control.
|
MapView<G,A,R> |
MapViewFactory.newMapView(MapControl<G,A,R> mapControl,
Point viewPosition,
int viewCounter)
Creates a new map view instance for a map control.
|
MapView<G,A,R> |
MapViewsManager.newMapView(MapControl<G,A,R> mapControl,
Point viewPosition,
Point centerSquare)
Creates a new map view.
|
MapView<G,A,R> |
MapViews.newMapView(MapControl<G,A,R> mapControl,
Point viewPosition,
Point centerSquare,
MapViewFactory<G,A,R> mapViewFactory)
Creates a new
MapView . |
MapView<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapViewFactory.newMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
Point viewPosition,
int viewCounter)
Creates a new map view instance for a map control.
|
void |
MapViewsManager.removeMapViewsListener(MapControl<G,A,R> mapControl,
MapViewsListener<G,A,R> listener)
Removes a
MapViewsListener to be notified of events. |
void |
MapViewsManager.repaintAllViews(MapControl<G,A,R> mapControl)
Repaints all
MapViews of a MapControl . |
Constructor and Description |
---|
DefaultMapView(MapControl<G,A,R> mapControl,
int number,
PathManager pathManager,
MapGrid mapGrid,
MapCursor<G,A,R> mapCursor,
AbstractMapRenderer<G,A,R> renderer,
Point viewPosition,
int xScrollDistance,
int yScrollDistance)
Create a new instance.
|
TestMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
MapGrid mapGrid,
MapCursor<TestGameObject,TestMapArchObject,TestArchetype> mapCursor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static MapView<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlCreatorUtils.newMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Creates a new
MapView instance. |
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
MapFile.pickmap
The
MapControl instance representing the map file, or
null if the map file is not loaded. |
Modifier and Type | Method and Description |
---|---|
MapControl<G,A,R> |
MapFile.getPickmap()
Returns the
MapControl representing this pickmap. |
Modifier and Type | Method and Description |
---|---|
void |
MapFolder.firePickmapReverted(MapFile<G,A,R> mapFile,
MapControl<G,A,R> oldPickmap)
Notifies all listeners about a reverted pickmap.
|
void |
MapFolderListener.pickmapReverted(MapFile<G,A,R> mapFile,
MapControl<G,A,R> oldPickmap)
A pickmap has been reverted to the contents of its underlying file.
|
Modifier and Type | Method and Description |
---|---|
void |
MapFolder.getUnsavedPickmaps(Collection<MapControl<G,A,R>> unsavedPickmaps)
Returns all unsaved
MapFiles in this folder. |
void |
MapFolderTree.getUnsavedPickmaps(Collection<MapControl<G,A,R>> unsavedMaps)
Returns all unsaved map controls of this model.
|
void |
MapFile.getUnsavedPickmaps(Collection<MapControl<G,A,R>> unsavedPickmaps)
Returns this pickmap if it has been loaded and is modified.
|
Modifier and Type | Field and Description |
---|---|
private Map<MapControl<G,A,R>,SoftReference<MapRenderer>> |
MapImageCache.mapRendererReferences
Maps
MapControl instance to MapRenderer which is only
used to get images. |
Modifier and Type | Method and Description |
---|---|
private Image |
MapImageCache.getOrCreate(MapControl<G,A,R> mapControl,
ImageType imageType)
Returns an icon or preview
Image for a given map. |
Image |
MapImageCache.getOrCreateIcon(MapControl<G,A,R> mapControl)
Returns an icon
Image for a given map. |
Image |
MapImageCache.getOrCreatePreview(MapControl<G,A,R> mapControl)
Returns a preview
Image for a given map. |
private MapRenderer |
MapImageCache.getRenderer(MapControl<G,A,R> mapControl)
Returns a
MapRenderer for a map. |
void |
MapImageCacheListener.iconChanged(MapControl<G,A,R> mapControl)
Called whenever the icon of a map has changed.
|
private Image |
MapImageCache.updateCaches(File mapFile,
MapControl<G,A,R> mapControl,
ImageType imageType)
Updates the cached icon and preview
Images for one map
file. |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultFileControl.confirmSaveChanges(MapControl<G,A,R> mapControl)
Asks the user whether to save changes of a map.
|
void |
DefaultFileControl.reportSaveError(MapControl<G,A,R> mapControl,
String message)
Reports an error while saving a map file to the user.
|
boolean |
DefaultFileControl.save(MapControl<G,A,R> mapControl)
Save one map.
|
boolean |
DefaultFileControl.saveAs(MapControl<G,A,R> mapControl)
Asks the user for a filename, then saves the map.
|
private File |
DefaultFileControl.saveMapAs(MapControl<G,A,R> mapControl)
Displays a "save as" dialog.
|
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
GameObjectAttributesControl.currentMapControl
Last known active map.
|
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
PickmapChooserControl.currentPickmapControl
The current active pickmap on top.
|
Modifier and Type | Field and Description |
---|---|
private Map<MapControl<G,A,R>,MapModelListener<G,A,R>> |
PickmapChooserModel.mapModelListeners
Maps
MapControl instance to attached PickmapChooserModel.PickmapChooserMapModelListener . |
Modifier and Type | Method and Description |
---|---|
private void |
PickmapChooserModel.addMapModelListener(MapControl<G,A,R> mapControl)
Tracks a
MapControl instance for changes. |
private void |
PickmapChooserModel.removeMapModelListener(MapControl<G,A,R> mapControl)
Stops tracking a
MapControl instance for changes. |
int |
PickmapChooserModel.revertMapFile(MapControl<G,A,R> oldPickmap,
MapFile<G,A,R> mapFile)
Reverts a map file.
|
private void |
PickmapChooserView.revertPickmap(MapFile<G,A,R> mapFile,
MapControl<G,A,R> oldPickmap)
Called when a pickmap in the model has been reverted.
|
Modifier and Type | Method and Description |
---|---|
private void |
DeletionTool.deleteArch(Point mapLoc,
MapControl<G,A,R> mapControl)
Delete an arch.
|
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
MainActions.currentMapControl
The last known active map, or
null if no map is active. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultMapControl<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
Implements map models.
|
Modifier and Type | Method and Description |
---|---|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlCreator.newMapControl(File mapFile,
String mapName,
Size2D mapSize)
Creates a new map control.
|
MapControl<G,A,R> |
MapControlFactory.newMapControl(List<G> objects,
A mapArchObject,
File file)
Create a new map control instance.
|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlFactory.newMapControl(List<TestGameObject> objects,
TestMapArchObject mapArchObject,
File file)
Create a new map control instance.
|
MapControl<G,A,R> |
MapControlFactory.newPickmapControl(List<G> objects,
A mapArchObject,
File file)
Create a new pickmap map control instance.
|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlFactory.newPickmapControl(List<TestGameObject> objects,
TestMapArchObject mapArchObject,
File file)
Create a new pickmap map control instance.
|
Modifier and Type | Field and Description |
---|---|
private MapControl<G,A,R> |
AbstractMapManager.currentMapControl
The current top map we are working with.
|
Modifier and Type | Field and Description |
---|---|
private List<MapControl<G,A,R>> |
AbstractMapManager.mapControls
All open maps.
|
Modifier and Type | Method and Description |
---|---|
protected MapControl<G,A,R> |
DefaultPickmapManager.createMapControl(List<G> objects,
A mapArchObject,
File file)
Creates a new
MapControl instance. |
protected abstract MapControl<G,A,R> |
AbstractMapManager.createMapControl(List<G> objects,
A mapArchObject,
File file)
Creates a new
MapControl instance. |
protected MapControl<G,A,R> |
DefaultMapManager.createMapControl(List<G> objects,
A mapArchObject,
File file)
Creates a new
MapControl instance. |
MapControl<G,A,R> |
AbstractMapManager.getCurrentMap()
Returns the current top map we are working with.
|
MapControl<G,A,R> |
MapManager.getCurrentMap()
Returns the current map.
|
MapControl<G,A,R> |
AbstractMapManager.getOpenMap()
Returns one open map.
|
MapControl<G,A,R> |
MapManager.getOpenMap()
Returns one open map.
|
MapControl<G,A,R> |
AbstractMapManager.newMap(List<G> objects,
A mapArchObject,
File file,
boolean interactive)
Creates a new map control without view.
|
MapControl<G,A,R> |
MapManager.newMap(List<G> objects,
A mapArchObject,
File file,
boolean interactive)
Creates a new map control without view.
|
MapControl<G,A,R> |
AbstractMapManager.openMapFile(File file,
boolean interactive)
Loads a map file.
|
MapControl<G,A,R> |
MapManager.openMapFile(File file,
boolean interactive)
Loads a map file.
|
Modifier and Type | Method and Description |
---|---|
List<MapControl<G,A,R>> |
AbstractMapManager.getOpenedMaps()
Returns all opened maps.
|
List<MapControl<G,A,R>> |
MapManager.getOpenedMaps()
Returns all opened maps.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractMapManager.closeMap(MapControl<G,A,R> mapControl)
Closes the given map, ignoring modified status.
|
void |
MapManager.closeMap(MapControl<G,A,R> mapControl)
Closes the given map, ignoring modified status.
|
boolean |
FileControl.confirmSaveChanges(MapControl<G,A,R> mapControl)
Asks the user whether to save changes of a map.
|
boolean |
TestFileControl.confirmSaveChanges(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Asks the user whether to save changes of a map.
|
void |
MapManagerListener.currentMapChanged(MapControl<G,A,R> mapControl)
This event handler is called when the current map has changed.
|
void |
MapManagerListener.mapClosed(MapControl<G,A,R> mapControl)
This event handler is called when a map has been closed.
|
void |
MapManagerListener.mapClosing(MapControl<G,A,R> mapControl)
This event handler is called when a map is to be closed.
|
void |
MapManagerListener.mapCreated(MapControl<G,A,R> mapControl,
boolean interactive)
This event handler is called when a map was created.
|
void |
AbstractMapManager.release(MapControl<G,A,R> mapControl)
Releases a
MapControl instance. |
void |
MapManager.release(MapControl<G,A,R> mapControl)
Releases a
MapControl instance. |
void |
FileControl.reportSaveError(MapControl<G,A,R> mapControl,
String message)
Reports an error while saving a map file to the user.
|
void |
TestFileControl.reportSaveError(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
String message)
Reports an error while saving a map file to the user.
|
void |
AbstractMapManager.revert(MapControl<G,A,R> mapControl)
Reverts one map.
|
void |
MapManager.revert(MapControl<G,A,R> mapControl)
Reverts one map.
|
boolean |
FileControl.save(MapControl<G,A,R> mapControl)
Save one map.
|
boolean |
TestFileControl.save(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Save one map.
|
boolean |
FileControl.saveAs(MapControl<G,A,R> mapControl)
Asks the user for a filename, then saves the map.
|
boolean |
TestFileControl.saveAs(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Asks the user for a filename, then saves the map.
|
void |
AbstractMapManager.setCurrentMap(MapControl<G,A,R> mapControl)
Sets the given map as the current one.
|
void |
MapManager.setCurrentMap(MapControl<G,A,R> mapControl)
Sets the given map as the current one.
|
Modifier and Type | Method and Description |
---|---|
MapControl<G,A,R> |
MapParameter.getValue()
Returns the current value of the parameter.
|
Modifier and Type | Method and Description |
---|---|
MapControl<GameObject,MapArchObject,Archetype> |
DefaultMapControlFactory.newMapControl(List<GameObject> objects,
MapArchObject mapArchObject,
File file)
Create a new map control instance.
|
MapControl<GameObject,MapArchObject,Archetype> |
DefaultMapControlFactory.newPickmapControl(List<GameObject> objects,
MapArchObject mapArchObject,
File file)
Create a new pickmap map control instance.
|
Modifier and Type | Method and Description |
---|---|
MapControl<GameObject,MapArchObject,Archetype> |
DefaultMapControlFactory.newMapControl(List<GameObject> objects,
MapArchObject mapArchObject,
File file)
Create a new map control instance.
|
MapControl<GameObject,MapArchObject,Archetype> |
DefaultMapControlFactory.newPickmapControl(List<GameObject> objects,
MapArchObject mapArchObject,
File file)
Create a new pickmap map control instance.
|
Modifier and Type | Method and Description |
---|---|
MapControl<GameObject,MapArchObject,Archetype> |
DefaultMapControlFactory.newMapControl(List<GameObject> objects,
MapArchObject mapArchObject,
File file)
Create a new map control instance.
|
MapControl<GameObject,MapArchObject,Archetype> |
DefaultMapControlFactory.newPickmapControl(List<GameObject> objects,
MapArchObject mapArchObject,
File file)
Create a new pickmap map control instance.
|
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.