|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.geometry.IGeometryProxy
com.esri.arcgis.geometry.IEnvelopeProxy
Provides access to methods and properties of envelopes.
| Field Summary | |
static java.lang.Class |
targetClass
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF |
| Constructor Summary | |
|
IEnvelopeProxy()
For internal use only |
|
IEnvelopeProxy(java.lang.Object obj)
|
protected |
IEnvelopeProxy(java.lang.Object obj,
java.lang.String iid)
|
|
IEnvelopeProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
|
protected |
IEnvelopeProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
|
| Method Summary | |
void |
addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
Adds a Java object to be a listener for a specific kind of event generated by the COM object. |
void |
centerAt(IPoint p)
Moves this envelope so it is centered at p. |
void |
defineFromPoints(int count,
IPoint points)
Defines the envelope to cover all the points. |
void |
expand(double dx,
double dy,
boolean asRatio)
Moves the X and Y coordinates of the sides toward or away from each other. |
void |
expandM(double dm,
boolean asRatio)
Moves the measure of the sides toward or away from each other. |
void |
expandZ(double dz,
boolean asRatio)
Moves the Z attribute of the sides toward or away from each other. |
double |
getDepth()
The depth of the envelope. |
double |
getHeight()
The height of the envelope. |
IPoint |
getLowerLeft()
The lower left corner. |
IPoint |
getLowerRight()
The lower right corner. |
double |
getMMax()
The maximum measure value in the area of the envelope. |
double |
getMMin()
The minimum measure value in the area of the envelope. |
IPoint |
getUpperLeft()
The upper left corner. |
IPoint |
getUpperRight()
The upper right corner. |
double |
getWidth()
The width of the envelope. |
double |
getXMax()
The position of the right side. |
double |
getXMin()
The position of the left side. |
double |
getYMax()
The position of the top. |
double |
getYMin()
The position of the bottom. |
double |
getZMax()
The maximum Z value in the area of the envelope. |
double |
getZMin()
The minimum Z value in the area of the envelope. |
void |
intersect(IEnvelope inEnvelope)
Adjusts to include only the area also included by inEnvelope. |
void |
offset(double x,
double y)
Moves the sides x units horizontally and y units vertically. |
void |
offsetM(double m)
Moves the sides m units. |
void |
offsetZ(double z)
Moves the sides z units. |
void |
putCoords(double xMin,
double yMin,
double xMax,
double yMax)
Constructs an envelope from the coordinate values of lower, left and upper, right corners. |
void |
queryCoords(double[] xMin,
double[] yMin,
double[] xMax,
double[] yMax)
Returns the coordinates of lower, left and upper, right corners. |
void |
removeListener(java.lang.String iidStr,
java.lang.Object theListener)
Removes a Java object as a listener to events generated by a COM object. |
void |
setDepth(double depth)
The depth of the envelope. |
void |
setHeight(double height)
The height of the envelope. |
void |
setLowerLeft(IPoint lowerLeft)
The lower left corner. |
void |
setLowerRight(IPoint lowerRight)
The lower right corner. |
void |
setMMax(double mMax)
The maximum measure value in the area of the envelope. |
void |
setMMin(double mMin)
The minimum measure value in the area of the envelope. |
void |
setUpperLeft(IPoint upperLeft)
The upper left corner. |
void |
setUpperRight(IPoint upperRight)
The upper right corner. |
void |
setWidth(double width)
The width of the envelope. |
void |
setXMax(double xMax)
The position of the right side. |
void |
setXMin(double xMin)
The position of the left side. |
void |
setYMax(double yMax)
The position of the top. |
void |
setYMin(double yMin)
The position of the bottom. |
void |
setZMax(double zMax)
The maximum Z value in the area of the envelope. |
void |
setZMin(double zMin)
The minimum Z value in the area of the envelope. |
void |
union(IEnvelope inEnvelope)
Adjusts to overlap inEnvelope. |
| Methods inherited from class com.esri.arcgis.geometry.IGeometryProxy |
geoNormalize, geoNormalizeFromLongitude, getDimension, getEnvelope, getGeometryType, getSpatialReference, isEmpty, project, queryEnvelope, setEmpty, setSpatialReferenceByRef, snapToSpatialReference |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.geometry.IGeometry |
geoNormalize, geoNormalizeFromLongitude, getDimension, getEnvelope, getGeometryType, getSpatialReference, isEmpty, project, queryEnvelope, setEmpty, setSpatialReferenceByRef, snapToSpatialReference |
| Field Detail |
public static final java.lang.Class targetClass
| Constructor Detail |
public IEnvelopeProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
throws java.net.UnknownHostException,
java.io.IOException
public IEnvelopeProxy()
public IEnvelopeProxy(java.lang.Object obj)
throws java.io.IOException
protected IEnvelopeProxy(java.lang.Object obj,
java.lang.String iid)
throws java.io.IOException
protected IEnvelopeProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
throws java.io.IOException
| Method Detail |
public void addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
throws java.io.IOException
Dispatch
addListener in class IGeometryProxyjava.io.IOException
public void removeListener(java.lang.String iidStr,
java.lang.Object theListener)
throws java.io.IOException
Dispatch
removeListener in class IGeometryProxyjava.io.IOException
public double getWidth()
throws java.io.IOException,
AutomationException
IEnvelopeThe Width of an Envelope is the horizonal span. The Width = XMax - XMin. Used to get or set the Width of a non-empty Envelope. If used to set the Width, the LowerLeft and UpperLeft points are preserved and the LowerRight and UpperRight points are repositioned accordingly.

getWidth in interface IEnvelopeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setWidth(double width)
throws java.io.IOException,
AutomationException
IEnvelope
setWidth in interface IEnvelopewidth - The width (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getHeight()
throws java.io.IOException,
AutomationException
IEnvelopeThe Height of an Envelope is the vertical span. The Height = YMax - YMin. Used to get or set the Height of a non-empty Envelope. If used to set the Height, the LowerLeft and LowerRight points are preserved and the UpperLeft and UpperRight points are repositioned accordingly.

getHeight in interface IEnvelopeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDepth(double depth)
throws java.io.IOException,
AutomationException
IEnvelope
setDepth in interface IEnvelopedepth - The depth (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getDepth()
throws java.io.IOException,
AutomationException
IEnvelopeThe Depth of an Envelope is the range of Z values. The Depth = ZMax - ZMin. Used to get or set the Depth of a non-empty Envelope. The Envelope must be ZAware and have non-NaN Zs set.

getDepth in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHeight(double height)
throws java.io.IOException,
AutomationException
IEnvelope
setHeight in interface IEnvelopeheight - The height (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPoint getLowerLeft()
throws java.io.IOException,
AutomationException
IEnvelope
getLowerLeft in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLowerLeft(IPoint lowerLeft)
throws java.io.IOException,
AutomationException
IEnvelope
setLowerLeft in interface IEnvelopelowerLeft - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPoint getUpperLeft()
throws java.io.IOException,
AutomationException
IEnvelope
Returns or sets the UpperLeft point of an Envelope .

getUpperLeft in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUpperLeft(IPoint upperLeft)
throws java.io.IOException,
AutomationException
IEnvelope
setUpperLeft in interface IEnvelopeupperLeft - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPoint getUpperRight()
throws java.io.IOException,
AutomationException
IEnvelope
getUpperRight in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUpperRight(IPoint upperRight)
throws java.io.IOException,
AutomationException
IEnvelope
setUpperRight in interface IEnvelopeupperRight - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPoint getLowerRight()
throws java.io.IOException,
AutomationException
IEnvelope
getLowerRight in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLowerRight(IPoint lowerRight)
throws java.io.IOException,
AutomationException
IEnvelope
setLowerRight in interface IEnvelopelowerRight - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public double getXMin()
throws java.io.IOException,
AutomationException
IEnvelopeXMin is the left side coordinate of the envelope.
Setting Xmin to a value larger than Xmax will reverse Xmin and Xmax. Use PutCoords to avoid this behavior.

getXMin in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setXMin(double xMin)
throws java.io.IOException,
AutomationException
IEnvelope
setXMin in interface IEnvelopexMin - The xMin (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getYMin()
throws java.io.IOException,
AutomationException
IEnvelopeYMin is the bottom coordinate of the envelope.
Setting Ymin to a value larger than Ymax will reverse Ymin and Ymax. Use PutCoords to avoid this behavior.

getYMin in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setYMin(double yMin)
throws java.io.IOException,
AutomationException
IEnvelope
setYMin in interface IEnvelopeyMin - The yMin (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public double getXMax()
throws java.io.IOException,
AutomationException
IEnvelopeXMax is the right side coordinate of the envelope.
Setting Xmax to a value smaller than Xmin will reverse Xmin and Xmax. Use PutCoords to avoid this behavior.

getXMax in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setXMax(double xMax)
throws java.io.IOException,
AutomationException
IEnvelope
setXMax in interface IEnvelopexMax - The xMax (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getYMax()
throws java.io.IOException,
AutomationException
IEnvelopeYMax is the top coordinate of the envelope.
Setting Ymax to a value smaller than Ymin will reverse Ymin and Ymax. Use PutCoords to avoid this behavior.

getYMax in interface IEnvelopeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setYMax(double yMax)
throws java.io.IOException,
AutomationException
IEnvelope
setYMax in interface IEnvelopeyMax - The yMax (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public double getMMin()
throws java.io.IOException,
AutomationException
IEnvelopeMMin is the minimum M value for the object owning the envelope.
getMMin in interface IEnvelopeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setMMin(double mMin)
throws java.io.IOException,
AutomationException
IEnvelope
setMMin in interface IEnvelopemMin - The mMin (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getMMax()
throws java.io.IOException,
AutomationException
IEnvelopeMMax is the maximum M value for the object owning the envelope.
getMMax in interface IEnvelopeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setMMax(double mMax)
throws java.io.IOException,
AutomationException
IEnvelope
setMMax in interface IEnvelopemMax - The mMax (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getZMin()
throws java.io.IOException,
AutomationException
IEnvelopeZMin defines the lower elevation boundary of the envelope.

getZMin in interface IEnvelopejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZMin(double zMin)
throws java.io.IOException,
AutomationException
IEnvelope
setZMin in interface IEnvelopezMin - The zMin (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public double getZMax()
throws java.io.IOException,
AutomationException
IEnvelopeZMax defines the upper elevation boundary of the envelope.

getZMax in interface IEnvelopeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setZMax(double zMax)
throws java.io.IOException,
AutomationException
IEnvelope
setZMax in interface IEnvelopezMax - The zMax (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void union(IEnvelope inEnvelope)
throws java.io.IOException,
AutomationException
IEnvelopeSets the Envelope equal to the union of the base Envelope and the input Envelope. The XMin and YMin of the resulting Envelope is the minimum XMin and YMin respectively between the base and input Envelopes, and the XMax and YMax of the resulting Envelope is the maximum XMax and YMax respectively between the base and input Envelopes.

union in interface IEnvelopeinEnvelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void intersect(IEnvelope inEnvelope)
throws java.io.IOException,
AutomationException
IEnvelopeSets the Envelope equal to the intersection of the base Envelope and the input Envelope. The XMin and YMin of the resulting Envelope is the maximum XMin and YMin respectively between the base and input Envelopes, and the XMax and YMax of the resulting Envelope is the minimum XMax and YMax respectively between the base and input Envelopes. If the resulting XMin > XMax, or YMin > YMax, then the Envelope is Empty (and all XMin, XMax, YMin, and YMax are undefined.).

intersect in interface IEnvelopeinEnvelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void offset(double x,
double y)
throws java.io.IOException,
AutomationException
IEnvelopeOffset moves the position of the Envelope. A positive X value will shift the Envelope to the right and a negative value to the left. A positive Y value will shift the Envelope up and a negative value down. The Width and Height of the Envelope remain unchanged. Only the XMin, YMin, XMax, and YMax are changed.
The new position of the Envelope is as follows:
new XMin= old XMin + X
new YMin = old YMin + Y
new XMax = old XMax + X
new YMax = old YMax + Y

offset in interface IEnvelopex - The x (in)y - The y (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void offsetZ(double z)
throws java.io.IOException,
AutomationException
IEnvelopeOffsetZ shifts the Z attributes of the Envelope. The Depth remains unchanged.
new ZMin = old ZMin + Z
new ZMax = old ZMax + Z
offsetZ in interface IEnvelopez - The z (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void offsetM(double m)
throws java.io.IOException,
AutomationException
IEnvelopeOffsetM shifts the M values for the Envelope. None of the other properties are changed.
new MMin = old MMin + M
new MMax = old MMax + M
offsetM in interface IEnvelopem - The m (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void expand(double dx,
double dy,
boolean asRatio)
throws java.io.IOException,
AutomationException
IEnvelopeExpand scales the size of the Envelope. If asRatio = FALSE, the expansion is additive. If asRatio = TRUE, the expansion is multiplicative. XMin = XMin - dx
YMin = YMin - dy
XMax = XMax + dx
YMax = YMax + dy
XMin = (XMin - dx*Width)/2
YMin = (YMin - dy*Height)/2
XMax = (XMax + dx*Width)/2
YMax = (YMax + dy*Height)/2
The Envelope remains centered at the same position.

expand in interface IEnvelopedx - The dx (in)dy - The dy (in)asRatio - The asRatio (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void expandZ(double dz,
boolean asRatio)
throws java.io.IOException,
AutomationException
IEnvelopeExpandZ scales the Z attributes of the Envelope. If asRatio = FALSE, the scaling is additive (ZMin = ZMin - dz, ZMax = ZMax + dz). If asRatio = TRUE, the scaling is multiplicative (ZMin = ZMin - dz*Depth/2, ZMax = ZMax + dz*Depth/2)
expandZ in interface IEnvelopedz - The dz (in)asRatio - The asRatio (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void expandM(double dm,
boolean asRatio)
throws java.io.IOException,
AutomationException
IEnvelopeExpandM scales the M attributes of the Envelope. If asRatio = FALSE, the scaling is additive (MMin = MMin - dm, MMax = MMax + dm). If asRatio = TRUE, the scaling is multiplicative (MMin = MMin - dm*(MMax - MMin)/2, MMax = MMax + dm*(MMax - MMin)/2).
expandM in interface IEnvelopedm - The dm (in)asRatio - The asRatio (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void defineFromPoints(int count,
IPoint points)
throws java.io.IOException,
AutomationException
IEnvelopeDefines this Envelope from an array of Points. The XMin, YMin, XMax, and YMax correspond to the minimum X value, minimum Y value, maximum X value, and maximum Y value respectively of the the Points in the array.
This is similar to getting the Envelope of a Multipoint.
Note: It is also possible to define a degenerate point Envelope by passing a single Point as an argument. The IPoint parameter accepts both a single IPoint object and an array of IPoints. To use an array, pass the desired starting element of the array as the input argument.
defineFromPoints in interface IEnvelopecount - The count (in)points - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void putCoords(double xMin,
double yMin,
double xMax,
double yMax)
throws java.io.IOException,
AutomationException
IEnvelopeDefines an Envelope given the XMin, YMin, XMax, and YMax. If XMin > XMax or if YMin > YMax, the created Envelope uses the input values, but properly reassigns the Min and Max values.

putCoords in interface IEnvelopexMin - The xMin (in)yMin - The yMin (in)xMax - The xMax (in)yMax - The yMax (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryCoords(double[] xMin,
double[] yMin,
double[] xMax,
double[] yMax)
throws java.io.IOException,
AutomationException
IEnvelopeReturns the XMin, YMin, XMax, and YMax values for the Envelope. These values can also be used to recreate the Envelope using PutCoords.
queryCoords in interface IEnvelopexMin - The xMin (out: use single element array)yMin - The yMin (out: use single element array)xMax - The xMax (out: use single element array)yMax - The yMax (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void centerAt(IPoint p)
throws java.io.IOException,
AutomationException
IEnvelopeMoves the Envelope so that the center point of the Envelope is at the given input point. The Width, Height, and other properties of the Envelope remain unchanged (only the XMin, XMax, YMin, and YMax are altered).
The Center Point occurs at: ((XMin + XMax) / 2, (YMin + YMax) / 2).
centerAt in interface IEnvelopep - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||