|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.MapDocument
public class MapDocument
COM Class 'MapDocument'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'
Description 'The MapDocument coclass is used to read and write map document files.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
| Field Summary |
|---|
| Fields inherited from interface com.esri.arcgis.carto.IMapDocument |
|---|
IID, IID5366451c_a001_4179_b8cb_e8f014628a44, xxDummy |
| Fields inherited from interface com.esri.arcgis.system.IDocumentVersion |
|---|
IID, IIDecc43c55_0148_4ec1_bf87_b9a183c5dc98, xxDummy |
| Fields inherited from interface com.esri.arcgis.carto.IDocumentInfo |
|---|
IID, IIDd3e5c54e_2a84_11d4_9ff2_00c04f6bc78e, xxDummy |
| Fields inherited from interface com.esri.arcgis.carto.IDocumentInfo2 |
|---|
IID, IIDd3e5c54f_2a84_11d4_9ff2_00c04f6bc78e, xxDummy |
| Fields inherited from interface com.esri.arcgis.carto.IDocumentPreview |
|---|
IID, IIDefe86eff_4c92_47b8_af1b_2d7ded932e24, xxDummy |
| Constructor Summary | |
|---|---|
MapDocument()
Constructs a MapDocument using ArcGIS Engine. |
|
MapDocument(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MapDocument theMapDocument = (MapDocument) obj; |
|
| Method Summary | |
|---|---|
void |
close()
Close the map document. |
void |
createPreview()
Creates a thumbnail preview of the document. |
void |
deletePreview()
Deletes the thumbnail preview of the document. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
esri_new(java.lang.String sDocument)
Creates and opens a new map document in preparation for the contents to be retrieve or updated. |
IActiveView |
getActiveView()
The ActiveView of the map document. |
java.lang.String |
getAuthor()
The author of the document. |
java.lang.String |
getCategory()
The category of the document. |
static java.lang.String |
getClsid()
getClsid. |
java.lang.String |
getComments()
Comments for the document. |
java.lang.String |
getCredits()
The credits of the document. |
java.lang.Object |
getDateExported()
Date the document was last exported. |
java.lang.Object |
getDatePrinted()
Date the document was last printed. |
java.lang.Object |
getDateSaved()
Date the document was last saved. |
java.lang.String |
getDocumentFilename()
The map document filename that the MapDocument coclass is linked to. |
java.lang.String |
getDocumentTitle()
The title of the document. |
int |
getDocumentType()
The type of map document currently loaded in the object. |
int |
getDocumentVersion()
Indicates if the version of the map document is compatible with the current version of software. |
java.lang.String |
getFolder()
The folder of the document. |
java.lang.String |
getHyperlinkBase()
The hyperlink base of the document. |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Deprecated. Internal use only. |
java.lang.String |
getKeywords()
The keywords for the document. |
ILayer |
getLayer(int mapIndex,
int layerIndex)
The Layer object at the specified index for the specified map. |
IMap |
getMap(int mapIndex)
The Map object at the specified index. |
int |
getMapCount()
The number of Map objects contained within the map document. |
java.lang.String |
getName()
The name of the document. |
IPageLayout |
getPageLayout()
The PageLayout object. |
java.lang.String |
getPath()
The path of the document. |
IPrinter |
getPrinter()
The printer object. |
java.lang.String |
getSubject()
The subject of the document. |
IPicture |
getThumbnail()
The thumbnail stored in the map document. |
void |
getVersionInfo(boolean[] versionInfoMissing,
int[] lMajor,
int[] lMinor,
int[] lRevision,
int[] lBuild)
Retrieve the detailed version information of the map document. |
int |
hashCode()
the hashcode for this object |
boolean |
isHasPreviewSaved()
Indicates the presence of a thumbnail preview in the document. |
boolean |
isHasPreviewToSave()
Indicates the presence of a thumbnail preview to be saved with the document. |
boolean |
isMapDocument(java.lang.String sDocument)
Indicates if the map document is a valid map document. |
boolean |
isPasswordProtected(java.lang.String sDocument)
Indicates if the map document is protected by a passsword. |
boolean |
isPresent(java.lang.String sDocument)
Indicates if the map document is present. |
boolean |
isReadOnly(java.lang.String sDocument)
Indicates if the map document is read only. |
boolean |
isRelativePaths()
Indicates if relative path is used when the document is saved. |
boolean |
isRestricted(java.lang.String sDocument)
Indicates if the use of the map document is restricted to certain applications. |
boolean |
isSavePreview()
Indicates if a preview of the document is saved when the document is saved. |
boolean |
isUsesRelativePaths()
Indicates if the data in the map document is referenced using relative paths. |
void |
open(java.lang.String sDocument,
java.lang.String bsPassword)
Open the map document in preparation for the contents to be retrieve or updated. |
void |
release()
Release a MapDocument. |
void |
replaceContents(IMxdContents pObject)
Replace the contents of the map document. |
void |
save(boolean bUseRelativePaths,
boolean bCreateThumnbail)
Save the contents of the map document to the bound file. |
void |
saveAs(java.lang.String sDocument,
boolean bUseRelativePaths,
boolean bCreateThumnbail)
Save the contents of the map document to the specified file name. |
void |
setActiveView(IActiveView pActiveView)
Set the ActiveView content of the map document. |
void |
setAuthor(java.lang.String author)
The author of the document. |
void |
setCategory(java.lang.String category)
The category of the document. |
void |
setComments(java.lang.String comments)
Comments for the document. |
void |
setCredits(java.lang.String credits)
The credits of the document. |
void |
setDocumentTitle(java.lang.String title)
The title of the document. |
void |
setDocumentVersion(int docVersion)
The version of the document to save. |
void |
setHyperlinkBase(java.lang.String path)
The hyperlink base of the document. |
void |
setKeywords(java.lang.String keywords)
The keywords for the document. |
void |
setRelativePaths(boolean useRelativePaths)
Indicates if relative path is used when the document is saved. |
void |
setSavePreview(boolean savePreview)
Indicates if a preview of the document is saved when the document is saved. |
void |
setSubject(java.lang.String subject)
The subject of the document. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapDocument()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public MapDocument(java.lang.Object obj)
throws java.io.IOException
MapDocument theMapDocument = (MapDocument) obj;
obj to MapDocument.
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
|---|
public static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefpublic void release()
release in interface com.esri.arcgis.interop.RemoteObjRef
public boolean isMapDocument(java.lang.String sDocument)
throws java.io.IOException,
AutomationException
isMapDocument in interface IMapDocumentsDocument - The sDocument (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPresent(java.lang.String sDocument)
throws java.io.IOException,
AutomationException
isPresent in interface IMapDocumentsDocument - The sDocument (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isReadOnly(java.lang.String sDocument)
throws java.io.IOException,
AutomationException
isReadOnly in interface IMapDocumentsDocument - The sDocument (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isRestricted(java.lang.String sDocument)
throws java.io.IOException,
AutomationException
isRestricted in interface IMapDocumentsDocument - The sDocument (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPasswordProtected(java.lang.String sDocument)
throws java.io.IOException,
AutomationException
isPasswordProtected in interface IMapDocumentsDocument - The sDocument (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_new(java.lang.String sDocument)
throws java.io.IOException,
AutomationException
esri_new in interface IMapDocumentsDocument - The sDocument (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void open(java.lang.String sDocument,
java.lang.String bsPassword)
throws java.io.IOException,
AutomationException
open in interface IMapDocumentsDocument - The sDocument (in)bsPassword - The bsPassword (in, optional, pass if not required)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getDocumentFilename()
throws java.io.IOException,
AutomationException
getDocumentFilename in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDocumentType()
throws java.io.IOException,
AutomationException
getDocumentType in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUsesRelativePaths()
throws java.io.IOException,
AutomationException
isUsesRelativePaths in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDocumentVersion()
throws java.io.IOException,
AutomationException
getDocumentVersion in interface IMapDocumentgetDocumentVersion in interface IDocumentVersionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPageLayout getPageLayout()
throws java.io.IOException,
AutomationException
getPageLayout in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IActiveView getActiveView()
throws java.io.IOException,
AutomationException
getActiveView in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMapCount()
throws java.io.IOException,
AutomationException
getMapCount in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMap getMap(int mapIndex)
throws java.io.IOException,
AutomationException
getMap in interface IMapDocumentmapIndex - The mapIndex (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILayer getLayer(int mapIndex,
int layerIndex)
throws java.io.IOException,
AutomationException
getLayer in interface IMapDocumentmapIndex - The mapIndex (in)layerIndex - The layerIndex (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPrinter getPrinter()
throws java.io.IOException,
AutomationException
getPrinter in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPicture getThumbnail()
throws java.io.IOException,
AutomationException
getThumbnail in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void close()
throws java.io.IOException,
AutomationException
close in interface IMapDocumentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getVersionInfo(boolean[] versionInfoMissing,
int[] lMajor,
int[] lMinor,
int[] lRevision,
int[] lBuild)
throws java.io.IOException,
AutomationException
getVersionInfo in interface IMapDocumentversionInfoMissing - The versionInfoMissing (in/out: use single element array)lMajor - The lMajor (in/out: use single element array)lMinor - The lMinor (in/out: use single element array)lRevision - The lRevision (in/out: use single element array)lBuild - The lBuild (in/out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void replaceContents(IMxdContents pObject)
throws java.io.IOException,
AutomationException
replaceContents in interface IMapDocumentpObject - A reference to a com.esri.arcgis.carto.IMxdContents (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setActiveView(IActiveView pActiveView)
throws java.io.IOException,
AutomationException
setActiveView in interface IMapDocumentpActiveView - A reference to a com.esri.arcgis.carto.IActiveView (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(boolean bUseRelativePaths,
boolean bCreateThumnbail)
throws java.io.IOException,
AutomationException
save in interface IMapDocumentbUseRelativePaths - The bUseRelativePaths (in, optional, pass true if not required)bCreateThumnbail - The bCreateThumnbail (in, optional, pass true if not required)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveAs(java.lang.String sDocument,
boolean bUseRelativePaths,
boolean bCreateThumnbail)
throws java.io.IOException,
AutomationException
saveAs in interface IMapDocumentsDocument - The sDocument (in)bUseRelativePaths - The bUseRelativePaths (in, optional, pass true if not required)bCreateThumnbail - The bCreateThumnbail (in, optional, pass true if not required)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDocumentVersion(int docVersion)
throws java.io.IOException,
AutomationException
setDocumentVersion in interface IDocumentVersiondocVersion - A com.esri.arcgis.system.esriArcGISVersion constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getDocumentTitle()
throws java.io.IOException,
AutomationException
getDocumentTitle in interface IDocumentInfogetDocumentTitle in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDocumentTitle(java.lang.String title)
throws java.io.IOException,
AutomationException
setDocumentTitle in interface IDocumentInfosetDocumentTitle in interface IDocumentInfo2title - The title (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getSubject()
throws java.io.IOException,
AutomationException
getSubject in interface IDocumentInfogetSubject in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSubject(java.lang.String subject)
throws java.io.IOException,
AutomationException
setSubject in interface IDocumentInfosetSubject in interface IDocumentInfo2subject - The subject (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getAuthor()
throws java.io.IOException,
AutomationException
getAuthor in interface IDocumentInfogetAuthor in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAuthor(java.lang.String author)
throws java.io.IOException,
AutomationException
setAuthor in interface IDocumentInfosetAuthor in interface IDocumentInfo2author - The author (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getCategory()
throws java.io.IOException,
AutomationException
getCategory in interface IDocumentInfogetCategory in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCategory(java.lang.String category)
throws java.io.IOException,
AutomationException
setCategory in interface IDocumentInfosetCategory in interface IDocumentInfo2category - The category (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getComments()
throws java.io.IOException,
AutomationException
getComments in interface IDocumentInfogetComments in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setComments(java.lang.String comments)
throws java.io.IOException,
AutomationException
setComments in interface IDocumentInfosetComments in interface IDocumentInfo2comments - The comments (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getKeywords()
throws java.io.IOException,
AutomationException
getKeywords in interface IDocumentInfogetKeywords in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setKeywords(java.lang.String keywords)
throws java.io.IOException,
AutomationException
setKeywords in interface IDocumentInfosetKeywords in interface IDocumentInfo2keywords - The keywords (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getHyperlinkBase()
throws java.io.IOException,
AutomationException
getHyperlinkBase in interface IDocumentInfogetHyperlinkBase in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHyperlinkBase(java.lang.String path)
throws java.io.IOException,
AutomationException
setHyperlinkBase in interface IDocumentInfosetHyperlinkBase in interface IDocumentInfo2path - The path (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSavePreview()
throws java.io.IOException,
AutomationException
isSavePreview in interface IDocumentInfoisSavePreview in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSavePreview(boolean savePreview)
throws java.io.IOException,
AutomationException
setSavePreview in interface IDocumentInfosetSavePreview in interface IDocumentInfo2savePreview - The savePreview (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getCredits()
throws java.io.IOException,
AutomationException
getCredits in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCredits(java.lang.String credits)
throws java.io.IOException,
AutomationException
setCredits in interface IDocumentInfo2credits - The credits (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isRelativePaths()
throws java.io.IOException,
AutomationException
isRelativePaths in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRelativePaths(boolean useRelativePaths)
throws java.io.IOException,
AutomationException
setRelativePaths in interface IDocumentInfo2useRelativePaths - The useRelativePaths (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getName()
throws java.io.IOException,
AutomationException
getName in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getPath()
throws java.io.IOException,
AutomationException
getPath in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getFolder()
throws java.io.IOException,
AutomationException
getFolder in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.Object getDateSaved()
throws java.io.IOException,
AutomationException
getDateSaved in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.Object getDatePrinted()
throws java.io.IOException,
AutomationException
getDatePrinted in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.Object getDateExported()
throws java.io.IOException,
AutomationException
getDateExported in interface IDocumentInfo2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void createPreview()
throws java.io.IOException,
AutomationException
createPreview in interface IDocumentPreviewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deletePreview()
throws java.io.IOException,
AutomationException
deletePreview in interface IDocumentPreviewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasPreviewSaved()
throws java.io.IOException,
AutomationException
isHasPreviewSaved in interface IDocumentPreviewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasPreviewToSave()
throws java.io.IOException,
AutomationException
isHasPreviewToSave in interface IDocumentPreviewjava.io.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 | ||||||||