|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.Page
public class Page
The On Screen Page.
Constructor Summary | |
---|---|
Page()
Constructs a Page using ArcGIS Engine. |
|
Page(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Page thePage = (Page) obj; |
Method Summary | |
---|---|
void |
addIPageEventsListener(IPageEvents theListener)
addIPageEventsListener. |
boolean |
applies(Object pUnk)
Indicates if the receiver can apply the given object at any given time. |
Object |
apply(Object newObject)
Applies the given property to the receiver and returns the old object. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
boolean |
canApply(Object pUnk)
Indicates if the receiver can apply the given object at that particular moment. |
void |
drawBackground(IDisplay display)
Draw the page background. |
void |
drawBorder(IDisplay display)
Draw the page border. |
void |
drawPaper(IDisplay display,
IColor eraseColor)
Draw the paper. |
void |
drawPrintableArea(IDisplay display)
Draw the printable area. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
IBackground |
getBackground()
The page background. |
IColor |
getBackgroundColor()
The page color. |
IBorder |
getBorder()
The page border. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
Object |
getCurrent(Object pUnk)
The object currently being used. |
void |
getDeviceBounds(IPrinter printer,
short currentPage,
double overlap,
short resolution,
IEnvelope deviceBounds)
Return the printer page size in device units. |
int |
getFormID()
The Page form. |
short |
getOrientation()
The Page orientation. |
void |
getPageBounds(IPrinter printer,
short currentPage,
double overlap,
IEnvelope pageBounds)
Return the page size in page units. |
int |
getPageToPrinterMapping()
The page to printer mapping. |
IEnvelope |
getPrintableBounds()
The printable bounds. |
IShadow |
getShadow()
Frame shadow used by this element. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getUnits()
The units used for the page and all associated coordinates. |
int |
hashCode()
the hashcode for this object |
IBackground |
IFrameProperties_getBackground()
Frame background used by this element. |
boolean |
isDelayEvents()
Indicates if the page stops firing IPageEvents until the flag is set to false. |
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. |
boolean |
isPrintableAreaVisible()
Indicates if the printable area is visible. |
boolean |
isStretchGraphicsWithPage()
Indicates if graphics should stretch with the page when the page size changes. |
void |
load(IStream pstm)
load |
void |
printerChanged(IPrinter printer)
Called by PageLayout when printer changes. |
void |
printerPageCount(IPrinter printer,
double overlap,
short[] pageCount)
The number of printer pages spanned by the page. |
void |
putCustomSize(double width,
double height)
The size of the page in page units. |
void |
querySize(double[] width,
double[] height)
The size of the page in page units. |
void |
readExternal(ObjectInput in)
|
void |
removeIPageEventsListener(IPageEvents theListener)
removeIPageEventsListener. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setBackground(IBackground background)
The page background. |
void |
setBackgroundColor(IColor color)
The page color. |
void |
setBorder(IBorder border)
The page border. |
void |
setDelayEvents(boolean delayEvents)
Indicates if the page stops firing IPageEvents until the flag is set to false. |
void |
setFormID(int formID)
The Page form. |
void |
setIsPrintableAreaVisible(boolean isPrintableAreaVisible)
Indicates if the printable area is visible. |
void |
setOrientation(short orientation)
The Page orientation. |
void |
setPageToPrinterMapping(int mode)
The page to printer mapping. |
void |
setShadow(IShadow shadow)
Frame shadow used by this element. |
void |
setStretchGraphicsWithPage(boolean stretchGraphicsWithPage)
Indicates if graphics should stretch with the page when the page size changes. |
void |
setUnits(int units)
The units used for the page and all associated coordinates. |
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 Page() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic Page(Object obj) throws IOException
Page thePage = (Page) obj;
obj
to Page
.
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 addIPageEventsListener(IPageEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IPageEvents interface.
IOException
- If there are communications problems.public void removeIPageEventsListener(IPageEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IPageEvents interface.
IOException
- If there are communications problems.public int getFormID() throws IOException, AutomationException
getFormID
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFormID(int formID) throws IOException, AutomationException
setFormID
in interface IPage
formID
- A com.esri.arcgis.carto.esriPageFormID constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getOrientation() throws IOException, AutomationException
getOrientation
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOrientation(short orientation) throws IOException, AutomationException
setOrientation
in interface IPage
orientation
- The orientation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getUnits() throws IOException, AutomationException
getUnits
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUnits(int units) throws IOException, AutomationException
setUnits
in interface IPage
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getPrintableBounds() throws IOException, AutomationException
getPrintableBounds
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isPrintableAreaVisible() throws IOException, AutomationException
isPrintableAreaVisible
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIsPrintableAreaVisible(boolean isPrintableAreaVisible) throws IOException, AutomationException
setIsPrintableAreaVisible
in interface IPage
isPrintableAreaVisible
- The isPrintableAreaVisible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isStretchGraphicsWithPage() throws IOException, AutomationException
isStretchGraphicsWithPage
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStretchGraphicsWithPage(boolean stretchGraphicsWithPage) throws IOException, AutomationException
setStretchGraphicsWithPage
in interface IPage
stretchGraphicsWithPage
- The stretchGraphicsWithPage (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IColor getBackgroundColor() throws IOException, AutomationException
getBackgroundColor
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBackgroundColor(IColor color) throws IOException, AutomationException
setBackgroundColor
in interface IPage
color
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBorder getBorder() throws IOException, AutomationException
getBorder
in interface IFrameProperties
getBorder
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBorder(IBorder border) throws IOException, AutomationException
setBorder
in interface IFrameProperties
setBorder
in interface IPage
border
- A reference to a com.esri.arcgis.carto.IBorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBackground getBackground() throws IOException, AutomationException
getBackground
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBackground(IBackground background) throws IOException, AutomationException
setBackground
in interface IFrameProperties
setBackground
in interface IPage
background
- A reference to a com.esri.arcgis.carto.IBackground (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDelayEvents() throws IOException, AutomationException
isDelayEvents
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDelayEvents(boolean delayEvents) throws IOException, AutomationException
setDelayEvents
in interface IPage
delayEvents
- The delayEvents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getPageToPrinterMapping() throws IOException, AutomationException
getPageToPrinterMapping
in interface IPage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPageToPrinterMapping(int mode) throws IOException, AutomationException
setPageToPrinterMapping
in interface IPage
mode
- A com.esri.arcgis.carto.esriPageToPrinterMapping constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void querySize(double[] width, double[] height) throws IOException, AutomationException
querySize
in interface IPage
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 void putCustomSize(double width, double height) throws IOException, AutomationException
putCustomSize
in interface IPage
width
- The width (in)height
- The height (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void printerPageCount(IPrinter printer, double overlap, short[] pageCount) throws IOException, AutomationException
printerPageCount
in interface IPage
printer
- A reference to a com.esri.arcgis.output.IPrinter (in)overlap
- The overlap (in)pageCount
- The pageCount (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getPageBounds(IPrinter printer, short currentPage, double overlap, IEnvelope pageBounds) throws IOException, AutomationException
getPageBounds
in interface IPage
printer
- A reference to a com.esri.arcgis.output.IPrinter (in)currentPage
- The currentPage (in)overlap
- The overlap (in)pageBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getDeviceBounds(IPrinter printer, short currentPage, double overlap, short resolution, IEnvelope deviceBounds) throws IOException, AutomationException
getDeviceBounds
in interface IPage
printer
- A reference to a com.esri.arcgis.output.IPrinter (in)currentPage
- The currentPage (in)overlap
- The overlap (in)resolution
- The resolution (in)deviceBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void drawPaper(IDisplay display, IColor eraseColor) throws IOException, AutomationException
drawPaper
in interface IPage
display
- A reference to a com.esri.arcgis.display.IDisplay (in)eraseColor
- A reference to a com.esri.arcgis.display.IColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void drawBackground(IDisplay display) throws IOException, AutomationException
drawBackground
in interface IPage
display
- A reference to a com.esri.arcgis.display.IDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void drawPrintableArea(IDisplay display) throws IOException, AutomationException
drawPrintableArea
in interface IPage
display
- A reference to a com.esri.arcgis.display.IDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void drawBorder(IDisplay display) throws IOException, AutomationException
drawBorder
in interface IPage
display
- A reference to a com.esri.arcgis.display.IDisplay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void printerChanged(IPrinter printer) throws IOException, AutomationException
printerChanged
in interface IPage
printer
- A reference to a com.esri.arcgis.output.IPrinter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBackground IFrameProperties_getBackground() throws IOException, AutomationException
IFrameProperties_getBackground
in interface IFrameProperties
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IShadow getShadow() throws IOException, AutomationException
getShadow
in interface IFrameProperties
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShadow(IShadow shadow) throws IOException, AutomationException
setShadow
in interface IFrameProperties
shadow
- A reference to a com.esri.arcgis.carto.IShadow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean applies(Object pUnk) throws IOException, AutomationException
Applies indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
applies
in interface IPropertySupport
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canApply(Object pUnk) throws IOException, AutomationException
CanApply indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
canApply
in interface IPropertySupport
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCurrent(Object pUnk) throws IOException, AutomationException
getCurrent
in interface IPropertySupport
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object apply(Object newObject) throws IOException, AutomationException
Apply will apply the specified object to the current object. For instance, I might apply a Color object to my RectangleElement. When I execute Apply, the object I replace (the old object) is returned.
Use the Applies and CanApply methods to determine if an Apply can be used on an object.
apply
in interface IPropertySupport
newObject
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints
in interface IConnectionPointContainer
ppEnum
- A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint
in interface IConnectionPointContainer
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP
- A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
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 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 |