01: /*
02: * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
03: * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
04: * under the terms of the GNU Lesser General Public License as published by the Free Software
05: * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
06: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
07: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
08: */
09: package net.refractions.udig.project.command;
10:
11: import net.refractions.udig.project.IMap;
12: import net.refractions.udig.project.internal.Map;
13:
14: /**
15: * A command specific to modifying the state of a map.
16: *
17: * @author Jesse
18: * @since 1.0.0
19: */
20: public interface MapCommand extends Command {
21:
22: /**
23: * Called when before the command is executed. API mutable?throw unsupportedexception?
24: * @param map The map executing the command.
25: * @uml.property name="map"
26: */
27: public void setMap(IMap map);
28:
29: /**
30: * Returns the map if called during execute (or undo command is an undoable command)
31: *
32: * API mutable?
33: *
34: * @return the map if called during execute (or undo command is an undoable command)
35: */
36: public Map getMap();
37: }
|