|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.output.EmfPrinter
public class EmfPrinter
Class used to print maps with the EMF (Windows Enhanced Metafile) Printer Driver.
Constructor Summary | |
---|---|
EmfPrinter()
Constructs a EmfPrinter using ArcGIS Engine. |
|
EmfPrinter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. EmfPrinter theEmfPrinter = (EmfPrinter) obj; |
Method Summary | |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
cleanup()
Cleanup should clean all temporary files, free used memory, etc... |
boolean |
doesDriverSupportPrinter(String printerName)
Indicates if the Printer Name passed into function is supported by the IPrinter Driver. |
void |
endMapDocument()
End map document. |
void |
endPage()
Finalize current page output. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
finishPrinting()
Finish up Printing. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getDriverName()
The name of Windows Printer Driver. |
String |
getFileExtension()
File Extension associated with the Printer Driver. |
String |
getFilter()
Filter used in CFileDialog. |
String |
getName()
Name of the IPrinter Driver. |
IPaper |
getPaper()
The IPaper interface. |
IEnvelope |
getPrintableBounds()
The area of the printer page that can be printed on. |
String |
getPrintToFile()
The name of file if saving to Disk. |
short |
getResolution()
The Printer Driver Resolution. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getSpoolFileName()
The Spool File Name which shows up in the Print Manager. |
int |
getUnits()
The units for PaperSize and PrintableBounds. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
void |
load(IStream pstm)
load |
void |
queryPaperSize(double[] width,
double[] height)
Returns Page Size for Printer. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setPaperByRef(IPaper paper)
The IPaper interface. |
void |
setPrintToFile(String fileName)
The name of file if saving to Disk. |
void |
setResolution(short res)
The Printer Driver Resolution. |
void |
setSpoolFileName(String spoolFileName)
The Spool File Name which shows up in the Print Manager. |
void |
setStepProgressor(IStepProgressor rhs1)
Updates a Progress Bar is set. |
void |
setTrackCancel(ITrackCancel rhs1)
Reacts to a Cancel. |
void |
startMapDocument()
Begin map document. |
int |
startPage(IEnvelope pixelBounds,
int hDcPrinter)
Start new page output. |
int |
startPrinting(IEnvelope pixelBounds,
int hDcPrinter)
Initialize Printing. |
boolean |
verifyDriverSettings()
Indicates if the Printer Driver should validate Printer Driver's local settings. |
void |
writeExternal(ObjectOutput out)
|
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 EmfPrinter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic EmfPrinter(Object obj) throws IOException
EmfPrinter theEmfPrinter = (EmfPrinter) obj;
obj
to EmfPrinter
.
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 String getName() throws IOException, AutomationException
getName
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFilter() throws IOException, AutomationException
getFilter
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFileExtension() throws IOException, AutomationException
getFileExtension
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPrintToFile(String fileName) throws IOException, AutomationException
setPrintToFile
in interface IPrinter
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPrintToFile() throws IOException, AutomationException
getPrintToFile
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDriverName() throws IOException, AutomationException
getDriverName
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpoolFileName(String spoolFileName) throws IOException, AutomationException
setSpoolFileName
in interface IPrinter
spoolFileName
- The spoolFileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSpoolFileName() throws IOException, AutomationException
getSpoolFileName
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setResolution(short res) throws IOException, AutomationException
setResolution
in interface IPrinter
res
- The res (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getResolution() throws IOException, AutomationException
getResolution
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStepProgressor(IStepProgressor rhs1) throws IOException, AutomationException
setStepProgressor
in interface IPrinter
rhs1
- A reference to a com.esri.arcgis.system.IStepProgressor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPaperByRef(IPaper paper) throws IOException, AutomationException
setPaperByRef
in interface IPrinter
paper
- A reference to a com.esri.arcgis.output.IPaper (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPaper getPaper() throws IOException, AutomationException
getPaper
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryPaperSize(double[] width, double[] height) throws IOException, AutomationException
queryPaperSize
in interface IPrinter
width
- The width (out: use single element array)height
- The height (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getPrintableBounds() throws IOException, AutomationException
getPrintableBounds
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getUnits() throws IOException, AutomationException
getUnits
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean verifyDriverSettings() throws IOException, AutomationException
verifyDriverSettings
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean doesDriverSupportPrinter(String printerName) throws IOException, AutomationException
doesDriverSupportPrinter
in interface IPrinter
printerName
- The printerName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int startPrinting(IEnvelope pixelBounds, int hDcPrinter) throws IOException, AutomationException
The StartPrinting method returns a long that represents the hDC (Windows GDI Device Context handle) of the printer object. After this method is called, the printer object is ready to receive GDI draw instructions directed to its hDC.
startPrinting
in interface IPrinter
pixelBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)hDcPrinter
- The hDcPrinter (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void finishPrinting() throws IOException, AutomationException
finishPrinting
in interface IPrinter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startMapDocument() throws IOException, AutomationException
startMapDocument
in interface IPrinterMPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int startPage(IEnvelope pixelBounds, int hDcPrinter) throws IOException, AutomationException
startPage
in interface IPrinterMPage
pixelBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)hDcPrinter
- The hDcPrinter (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void endPage() throws IOException, AutomationException
endPage
in interface IPrinterMPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void endMapDocument() throws IOException, AutomationException
endMapDocument
in interface IPrinterMPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
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.public void cleanup() throws IOException, AutomationException
cleanup
in interface IOutputCleanup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTrackCancel(ITrackCancel rhs1) throws IOException, AutomationException
setTrackCancel
in interface ITrackCancelSetup
rhs1
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |