|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMap
The part of the model that represents a map.
A Map consists of a ContextModel, a ViewportModel and a LayerManager
Responsibilities:
Method Summary | |
---|---|
void |
addMapCompositionListener(IMapCompositionListener listener)
Adds a IMapCompositionListener to this map. |
void |
addMapListener(IMapListener listener)
Adds a MapListener to this map. |
void |
executeASyncWithoutUndo(MapCommand command)
Executes a MapCommand asynchronously. |
void |
executeSyncWithoutUndo(MapCommand command)
Executes a MapCommand synchronously. |
java.lang.String |
getAbstract()
Returns the map's abstract |
double |
getAspectRatio(IProgressMonitor monitor)
Returns the Aspect ratio of the map. |
IBlackboard |
getBlackboard()
Returns a blackboard for the map. |
ReferencedEnvelope |
getBounds(IProgressMonitor monitor)
Gets the Envelope that indicates the maximum bounding box of the map. |
IEditManager |
getEditManager()
Returns the EditManager for the current map. |
URI |
getID()
Returns a unique identifier for a map. |
LayerFactory |
getLayerFactory()
Returns the layer factory used to create layers for this map. |
java.util.List<ILayer> |
getMapLayers()
Returns the list of Layers in the map. |
IRenderManager |
getRenderManager()
Returns the RenderManager for the current map. |
IViewportModel |
getViewportModel()
Returns the Viewport model for this map. |
void |
removeMapCompositionListener(IMapCompositionListener listener)
Removes a MapListener from this map. |
void |
removeMapListener(IMapListener listener)
Removes a MapListener from this map. |
void |
sendCommandASync(MapCommand command)
Executes a MapCommand asynchronously with the calling thread. |
void |
sendCommandSync(MapCommand command)
Executes a MapCommand synchronously. |
Methods inherited from interface net.refractions.udig.project.IProjectElement |
---|
getName, getProject |
Method Detail |
---|
LayerFactory getLayerFactory()
IViewportModel getViewportModel()
java.lang.String getAbstract()
ReferencedEnvelope getBounds(IProgressMonitor monitor) throws java.io.IOException
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.
java.io.IOException
double getAspectRatio(IProgressMonitor monitor)
IEditManager getEditManager()
IRenderManager getRenderManager()
java.util.List<ILayer> getMapLayers()
IBlackboard getBlackboard()
URI getID()
void sendCommandSync(MapCommand command)
command
- the EditCommandto execute.void sendCommandASync(MapCommand command)
command
- the EditCommandto execute.void executeSyncWithoutUndo(MapCommand command)
command
- the EditCommandto execute.void executeASyncWithoutUndo(MapCommand command)
command
- the EditCommandto execute.void addMapListener(IMapListener listener)
listener
- Listener to be addedMapEvent.MapEventType
void removeMapListener(IMapListener listener)
listener
- Listener to be removedvoid addMapCompositionListener(IMapCompositionListener listener)
listener
- Listener to be addedMapEvent.MapEventType
void removeMapCompositionListener(IMapCompositionListener listener)
listener
- Listener to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |