Adds a IMapCompositionListener to this map. A given listener will only be added once.
Events are fired when the layers of the Map change: added, removed or reordered.
Parameters: listener - Listener to be added See Also: net.refractions.udig.project.MapEvent.MapEventType
Adds a MapListener to this map. A given listener will only be added once.
Events are only fired if the attributes of the Map class are change. For example
name, ViewportModel, Bounds, etc...
Parameters: listener - Listener to be added See Also: net.refractions.udig.project.MapEvent.MapEventType
Returns a blackboard for the map. The blackboard is used by various plugins in order to store
data and collaborate.
A blackboard used for collaboration among various plugins.
getBounds
public ReferencedEnvelope getBounds(IProgressMonitor monitor) throws IOException(Code)
Gets the Envelope that indicates the maximum bounding box of the map.
The bounds returned are in Lat Long and each time the method is called a new object is
returned. Therefore the object can be modified as desired without affecting the model.
Note: this is a constant for a given map. It is related to the size of the map data, and is
not dependent on the viewport.
WARNING This may block.
The Envelope in Lat Long that indicates the maximum bounding box of the map. throws: IOException -
Returns the list of Layers in the map. The layers are in zorder. The layer at position 0 is
that first layer rendered (The bottom layer in the image); This list is immutable.
An immutable list containing all the Map's layers.
Executes a
asynchronously with the calling thread.
All commands are ran in a single thread, this is required so that undo/redo
makes sense.
Parameters: command - the to execute.
Executes a
synchronously. This method blocks.
All commands are ran in a single thread, this is required so that undo/redo
makes sense.
Parameters: command - the to execute.