com.esri.arcgis.carto
Class PrintAndExport

java.lang.Object
  extended by com.esri.arcgis.carto.PrintAndExport
All Implemented Interfaces:
IPrintAndExport, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class PrintAndExport
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IPrintAndExport

COM Class 'PrintAndExport'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'Print And Export component.' 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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.carto.IPrintAndExport
IID, IID40a1760a_5439_4d26_b29d_0f0827a946f4, xxDummy
 
Constructor Summary
PrintAndExport()
          Constructs a PrintAndExport using ArcGIS Engine.
PrintAndExport(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
PrintAndExport thePrintAndExport = (PrintAndExport) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 void export(IActiveView pActiveView, IExport pExport, double resolution, boolean clip2GraphicExtent, ITrackCancel pTrackCancel)
          Export the specified view.
 void exportPages(IActiveView pActiveView, IExportPDF pPDFExport, IPrintAndExportPageOptions options, double resolution, ITrackCancel pTrackCancel)
          Export the specified pages.
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getPageCount(IActiveView activeView)
          The data driven pages count.
 IRow getPageRow(IActiveView activeView, java.lang.String pageName)
          The row that defines the specified data driven page.
 IEnumBSTR getPrinterNames()
          The names of available printers.
 int hashCode()
          the hashcode for this object
 void print(IActiveView pActiveView, IPrinter pPrinter, IPage pPage, int pageID, int resRatio, ITrackCancel pTrackCancel)
          Print the specified view.
 void printPages(IActiveView pActiveView, IPrinter pPrinter, IPage pPage, IPrintAndExportPageOptions options, int resRatio, ITrackCancel pTrackCancel)
          Print the specified pages.
 void release()
          Release a PrintAndExport.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintAndExport

public PrintAndExport()
               throws java.io.IOException,
                      java.net.UnknownHostException
Constructs a PrintAndExport using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

PrintAndExport

public PrintAndExport(java.lang.Object obj)
               throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
PrintAndExport thePrintAndExport = (PrintAndExport) obj;

Construct a PrintAndExport using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to PrintAndExport.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a PrintAndExport.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getPrinterNames

public IEnumBSTR getPrinterNames()
                          throws java.io.IOException,
                                 AutomationException
The names of available printers.

Specified by:
getPrinterNames in interface IPrintAndExport
Returns:
A reference to a com.esri.arcgis.system.IEnumBSTR
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPageRow

public IRow getPageRow(IActiveView activeView,
                       java.lang.String pageName)
                throws java.io.IOException,
                       AutomationException
The row that defines the specified data driven page.

Specified by:
getPageRow in interface IPrintAndExport
Parameters:
activeView - A reference to a com.esri.arcgis.carto.IActiveView (in)
pageName - The pageName (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRow
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPageCount

public int getPageCount(IActiveView activeView)
                 throws java.io.IOException,
                        AutomationException
The data driven pages count.

Specified by:
getPageCount in interface IPrintAndExport
Parameters:
activeView - A reference to a com.esri.arcgis.carto.IActiveView (in)
Returns:
The pPageCount
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

printPages

public void printPages(IActiveView pActiveView,
                       IPrinter pPrinter,
                       IPage pPage,
                       IPrintAndExportPageOptions options,
                       int resRatio,
                       ITrackCancel pTrackCancel)
                throws java.io.IOException,
                       AutomationException
Print the specified pages.

Specified by:
printPages in interface IPrintAndExport
Parameters:
pActiveView - A reference to a com.esri.arcgis.carto.IActiveView (in)
pPrinter - A reference to a com.esri.arcgis.output.IPrinter (in)
pPage - A reference to a com.esri.arcgis.carto.IPage (in)
options - A reference to a com.esri.arcgis.output.IPrintAndExportPageOptions (in)
resRatio - The resRatio (in, optional, pass 0 if not required)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in, optional, pass 0 if not required)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

print

public void print(IActiveView pActiveView,
                  IPrinter pPrinter,
                  IPage pPage,
                  int pageID,
                  int resRatio,
                  ITrackCancel pTrackCancel)
           throws java.io.IOException,
                  AutomationException
Print the specified view.

Specified by:
print in interface IPrintAndExport
Parameters:
pActiveView - A reference to a com.esri.arcgis.carto.IActiveView (in)
pPrinter - A reference to a com.esri.arcgis.output.IPrinter (in)
pPage - A reference to a com.esri.arcgis.carto.IPage (in)
pageID - The pageID (in, optional, pass 1 if not required)
resRatio - The resRatio (in, optional, pass 0 if not required)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in, optional, pass 0 if not required)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportPages

public void exportPages(IActiveView pActiveView,
                        IExportPDF pPDFExport,
                        IPrintAndExportPageOptions options,
                        double resolution,
                        ITrackCancel pTrackCancel)
                 throws java.io.IOException,
                        AutomationException
Export the specified pages.

Specified by:
exportPages in interface IPrintAndExport
Parameters:
pActiveView - A reference to a com.esri.arcgis.carto.IActiveView (in)
pPDFExport - A reference to a com.esri.arcgis.output.IExportPDF (in)
options - A reference to a com.esri.arcgis.output.IPrintAndExportPageOptions (in)
resolution - The resolution (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

export

public void export(IActiveView pActiveView,
                   IExport pExport,
                   double resolution,
                   boolean clip2GraphicExtent,
                   ITrackCancel pTrackCancel)
            throws java.io.IOException,
                   AutomationException
Export the specified view.

Specified by:
export in interface IPrintAndExport
Parameters:
pActiveView - A reference to a com.esri.arcgis.carto.IActiveView (in)
pExport - A reference to a com.esri.arcgis.output.IExport (in)
resolution - The resolution (in)
clip2GraphicExtent - The clip2GraphicExtent (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.