|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.MapReader
public class MapReader
The MapReader component provides programmatic access to the contents of a map document.
Constructor Summary | |
---|---|
MapReader()
Constructs a MapReader using ArcGIS Engine. |
|
MapReader(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MapReader theMapReader = (MapReader) obj; |
Method Summary | |
---|---|
void |
close()
Clears out all of the map objects in memory. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IPropertySet |
getDocumentInfo()
A set of name-value pairs for properties set for the map document (mxd only). |
IMap |
getMap(int index)
The map object at the specified index. |
int |
getMapCount()
The number of maps (data frames) in the document. |
IPageLayout |
getPageLayout()
The PageLayout object. |
Picture |
getThumbnail()
The thumbnail stored in the map document. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isAccessInternalObjects()
Indicates whether the internal objects of the map can be exposed to external clients. |
void |
open(String filePath)
Opens an mxd or pmf file stored at the specified path. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public MapReader() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MapReader(Object obj) throws IOException
MapReader theMapReader = (MapReader) obj;
obj
to MapReader
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void open(String filePath) throws IOException, AutomationException
open
in interface IMapReader
filePath
- The filePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void close() throws IOException, AutomationException
close
in interface IMapReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMapCount() throws IOException, AutomationException
getMapCount
in interface IMapReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap getMap(int index) throws IOException, AutomationException
getMap
in interface IMapReader
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPageLayout getPageLayout() throws IOException, AutomationException
getPageLayout
in interface IMapReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Picture getThumbnail() throws IOException, AutomationException
getThumbnail
in interface IMapReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getDocumentInfo() throws IOException, AutomationException
getDocumentInfo
in interface IMapReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAccessInternalObjects() throws IOException, AutomationException
isAccessInternalObjects
in interface IMapReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 |