|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapServerObjects
Provides access to core objects contained within the map document.
This interface is not supported by optimized MapServer.
Method Summary | |
---|---|
void |
applyMapDescription(IMapDescription mapDescription,
IImageDisplay mapDisplay)
Applies the current state of the map description to the map server object. |
ILayer |
getLayer(String mapName,
int layerID)
The layer specified by the map name and layer ID. |
IMap |
getMap(String mapName)
The map corresponding to the specified map name. |
IPageLayout |
getPageLayout()
The page layout object for the current map document. |
Picture |
getThumbnail()
The thumbnail stored in the map document. |
void |
refreshServerObjects()
Updates the server info based on the current state of the underlying fine-grained objects. |
Method Detail |
---|
IMap getMap(String mapName) throws IOException, AutomationException
mapName
- The mapName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayer getLayer(String mapName, int layerID) throws IOException, AutomationException
mapName
- The mapName (in)layerID
- The layerID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPageLayout getPageLayout() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Picture getThumbnail() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void refreshServerObjects() throws IOException, AutomationException
Use RefreshServerObjects when you have made changes to the fine-grained ArcObjects and want to apply them to the MapServer object. Keep in mind that this will change the default state of the MapServer object. In order to get the updated MapDescription, you have to call GetServerInfo on IMapServer2 again.
Any custom graphics (IMapDescription2 or IPageDescription) set previous to the RefreshServerObjects call will be lost. You will need to repeat the code for the custom graphics.
RefreshServerObjects does not refresh the extent on IPageDescription . Therefore, if you have zoomed to a particular extent of the page layout using the fine-grained ArcObjects (IActiveView) and you want to apply this extent to the PageDescription, you have to do this manually.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void applyMapDescription(IMapDescription mapDescription, IImageDisplay mapDisplay) throws IOException, AutomationException
Use ApplyMapDescription to apply changes made in IMapDescription2 to the map server object. ApplyMapDescription will not apply any custom graphics (IMapDescription2 or IPageDescription) to the map server object. See the following example on how to apply custom graphics to the map server object.
mapDescription
- A reference to a com.esri.arcgis.carto.IMapDescription (in)mapDisplay
- A reference to a com.esri.arcgis.carto.IImageDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |