com.esri.arcgis.arcmapui
Interface IMxApplication2

All Superinterfaces:
Serializable
All Known Implementing Classes:
Application, Application, IMxApplication2Proxy

public interface IMxApplication2
extends Serializable

Provides access to members that control the Mx Application.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 void copyToClipboard()
          Copies the current view to the clipboard.
 void export()
          Exports the current document.
 IAppDisplay getDisplay()
          The application display.
 IPaper getPaper()
          The current paper settings.
 IPrinter getPrinter()
          The current printer settings.
 ISelectionEnvironment getSelectionEnvironment()
          The selection environment.
 boolean isPauseDrawing()
          Pause display updates.
 void setPauseDrawing(boolean flag)
          Pause display updates.
 void setPrinterByRef(IPrinter printer)
          The current printer settings.
 

Method Detail

setPrinterByRef

void setPrinterByRef(IPrinter printer)
                     throws IOException,
                            AutomationException
The current printer settings.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
printer - A reference to a com.esri.arcgis.output.IPrinter (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPrinter

IPrinter getPrinter()
                    throws IOException,
                           AutomationException
The current printer settings.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
A reference to a com.esri.arcgis.output.IPrinter
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPaper

IPaper getPaper()
                throws IOException,
                       AutomationException
The current paper settings.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
A reference to a com.esri.arcgis.output.IPaper
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDisplay

IAppDisplay getDisplay()
                       throws IOException,
                              AutomationException
The application display.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
A reference to a com.esri.arcgis.display.IAppDisplay
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelectionEnvironment

ISelectionEnvironment getSelectionEnvironment()
                                              throws IOException,
                                                     AutomationException
The selection environment.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
A reference to a com.esri.arcgis.carto.ISelectionEnvironment
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

export

void export()
            throws IOException,
                   AutomationException
Exports the current document.

Remarks

Calling this method launches the Export dialog. Supported export formats for the document are: EMF, EPS, PDF, AI, SVG, BMP, JPEG, PNG, GIF, and TIFF.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

copyToClipboard

void copyToClipboard()
                     throws IOException,
                            AutomationException
Copies the current view to the clipboard.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPauseDrawing

void setPauseDrawing(boolean flag)
                     throws IOException,
                            AutomationException
Pause display updates.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
flag - The flag (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isPauseDrawing

boolean isPauseDrawing()
                       throws IOException,
                              AutomationException
Pause display updates.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
The flag
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.