From: <aki...@us...> - 2006-12-23 15:14:36
|
Revision: 1226 http://svn.sourceforge.net/gridarta/?rev=1226&view=rev Author: akirschbaum Date: 2006-12-23 07:14:35 -0800 (Sat, 23 Dec 2006) Log Message: ----------- Add getMapCursor() to common MapControl interface. Modified Paths: -------------- trunk/crossfire/src/cfeditor/map/MapControl.java trunk/daimonin/src/daieditor/map/MapControl.java trunk/src/app/net/sf/gridarta/map/MapControl.java Modified: trunk/crossfire/src/cfeditor/map/MapControl.java =================================================================== --- trunk/crossfire/src/cfeditor/map/MapControl.java 2006-12-23 15:14:13 UTC (rev 1225) +++ trunk/crossfire/src/cfeditor/map/MapControl.java 2006-12-23 15:14:35 UTC (rev 1226) @@ -298,6 +298,7 @@ return mapModel; } + /** {@inheritDoc} */ public MapCursor getMapCursor() { assert mapViewFrame != null; return mapViewFrame.getBasicView().getMapCursor(); Modified: trunk/daimonin/src/daieditor/map/MapControl.java =================================================================== --- trunk/daimonin/src/daieditor/map/MapControl.java 2006-12-23 15:14:13 UTC (rev 1225) +++ trunk/daimonin/src/daieditor/map/MapControl.java 2006-12-23 15:14:35 UTC (rev 1226) @@ -382,6 +382,7 @@ return mapModel; } + /** {@inheritDoc} */ public MapCursor getMapCursor() { assert mapViewFrame != null; return mapViewFrame.getBasicView().getMapCursor(); Modified: trunk/src/app/net/sf/gridarta/map/MapControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/map/MapControl.java 2006-12-23 15:14:13 UTC (rev 1225) +++ trunk/src/app/net/sf/gridarta/map/MapControl.java 2006-12-23 15:14:35 UTC (rev 1226) @@ -1,6 +1,8 @@ package net.sf.gridarta.map; import java.awt.Point; +import net.sf.gridarta.gui.map.MapCursor; +import org.jetbrains.annotations.NotNull; /** * Currently nothing more than a marker interface for unification. @@ -30,4 +32,10 @@ */ boolean isPointValid(final Point pos); + /** + * Return the map cursor of this map. + * @return the map cursor of this map + */ + @NotNull MapCursor getMapCursor(); + } // interface MapControl This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |