|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.Envelope2D
public final class Envelope2D
An axis parallel 2-dimensional rectangle.
| Constructor Summary | |
|---|---|
Envelope2D()
|
|
Envelope2D(double _xmin,
double _ymin,
double _xmax,
double _ymax)
|
|
| Method Summary | |
|---|---|
void |
centerAt(double x,
double y)
|
void |
centerAt(Point c)
|
int |
clipLine(com.esri.core.geometry.Point2D p1,
com.esri.core.geometry.Point2D p2)
|
static Envelope2D |
construct(double _xmin,
double _ymin,
double _xmax,
double _ymax)
|
boolean |
contains(double x,
double y)
|
boolean |
contains(Envelope2D other)
Returns True if the envelope contains the other envelope (boundary inclusive). |
boolean |
contains(Point p)
|
boolean |
contains(com.esri.core.geometry.Point2D p)
|
boolean |
equals(Object _other)
|
double |
getArea()
|
com.esri.core.geometry.Point2D |
getCenter()
Gets the center point of the envelope. |
double |
getCenterX()
|
double |
getCenterY()
|
double |
getHeight()
|
Envelope2D |
getInflated(double dx,
double dy)
|
double |
getLength()
|
Point |
getLowerLeft()
|
Point |
getLowerRight()
|
Point |
getUpperLeft()
|
Point |
getUpperRight()
|
double |
getWidth()
|
int |
hashCode()
|
void |
inflate(double dx,
double dy)
|
boolean |
intersect(Envelope2D other)
Checks if this envelope intersects the other. |
boolean |
isEmpty()
|
boolean |
isIntersecting(Envelope2D other)
Checks if this envelope intersects the other. |
boolean |
isIntersectingNE(Envelope2D other)
Checks if this envelope intersects the other assuming neither one is empty. |
boolean |
isValid()
Returns True if this envelope is valid (empty, or has xmin less or equal to xmax, or ymin less or equal to ymax). |
void |
merge(double x,
double y)
|
void |
merge(Envelope2D other)
|
void |
merge(com.esri.core.geometry.Point2D pt)
|
void |
merge(com.esri.core.geometry.Point3D pt)
|
void |
mergeNE(double x,
double y)
Merges a point with this envelope without checking if the envelope is empty. |
void |
move(double dx,
double dy)
Moves the Envelope by given distance. |
void |
normalize()
|
void |
offset(double dx,
double dy)
|
void |
queryCenter(com.esri.core.geometry.Point2D center)
|
com.esri.core.geometry.Point2D |
queryCorner(int index)
Queries a corner of the envelope. |
void |
queryCorners(com.esri.core.geometry.Point2D[] corners)
Queries corners into a given array. |
void |
queryCornersReversed(com.esri.core.geometry.Point2D[] corners)
Queries corners into a given array in reversed order. |
void |
queryLowerLeft(com.esri.core.geometry.Point2D pt)
|
void |
queryLowerRight(com.esri.core.geometry.Point2D pt)
|
void |
queryUpperLeft(com.esri.core.geometry.Point2D pt)
|
void |
queryUpperRight(com.esri.core.geometry.Point2D pt)
|
void |
reaspect(double arWidth,
double arHeight)
|
void |
scale(double f)
|
void |
setCoords(double _x,
double _y)
|
void |
setCoords(double _xmin,
double _ymin,
double _xmax,
double _ymax)
|
void |
setCoords(Envelope1D xinterval,
Envelope1D yinterval)
|
void |
setCoords(Envelope2D envSrc)
|
void |
setCoords(com.esri.core.geometry.Point2D pt)
|
void |
setCoords(com.esri.core.geometry.Point2D center,
double width,
double height)
|
void |
setEmpty()
|
void |
setFromPoints(com.esri.core.geometry.Point2D[] points)
Sets the envelope from the array of points. |
void |
setFromPoints(com.esri.core.geometry.Point2D[] points,
int count)
|
void |
setInfinite()
|
void |
zoom(double factorX,
double factorY)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Envelope2D()
public Envelope2D(double _xmin,
double _ymin,
double _xmax,
double _ymax)
| Method Detail |
|---|
public static Envelope2D construct(double _xmin,
double _ymin,
double _xmax,
double _ymax)
public void setCoords(double _x,
double _y)
public void setCoords(double _xmin,
double _ymin,
double _xmax,
double _ymax)
public void setCoords(com.esri.core.geometry.Point2D center,
double width,
double height)
public void setCoords(com.esri.core.geometry.Point2D pt)
public void setCoords(Envelope2D envSrc)
public Envelope2D getInflated(double dx,
double dy)
public void setFromPoints(com.esri.core.geometry.Point2D[] points)
public void setEmpty()
public void setInfinite()
public boolean isEmpty()
public void setCoords(Envelope1D xinterval,
Envelope1D yinterval)
public void merge(double x,
double y)
public void mergeNE(double x,
double y)
public void merge(com.esri.core.geometry.Point2D pt)
public void merge(com.esri.core.geometry.Point3D pt)
public void merge(Envelope2D other)
public void inflate(double dx,
double dy)
public void scale(double f)
public void zoom(double factorX,
double factorY)
public boolean isIntersecting(Envelope2D other)
public boolean isIntersectingNE(Envelope2D other)
public boolean intersect(Envelope2D other)
public com.esri.core.geometry.Point2D queryCorner(int index)
index - Indicates a corner of the envelope.
0 => lower left or (xmin, ymin)
1 => upper left or (xmin, ymax)
2 => upper right or (xmax, ymax)
3 => lower right or (xmax, ymin)
public void queryCorners(com.esri.core.geometry.Point2D[] corners)
public void queryCornersReversed(com.esri.core.geometry.Point2D[] corners)
public double getArea()
public double getLength()
public void setFromPoints(com.esri.core.geometry.Point2D[] points,
int count)
public void reaspect(double arWidth,
double arHeight)
public double getCenterX()
public double getCenterY()
public double getWidth()
public double getHeight()
public void move(double dx,
double dy)
public void centerAt(double x,
double y)
public void offset(double dx,
double dy)
public void normalize()
public void queryLowerLeft(com.esri.core.geometry.Point2D pt)
public void queryLowerRight(com.esri.core.geometry.Point2D pt)
public void queryUpperLeft(com.esri.core.geometry.Point2D pt)
public void queryUpperRight(com.esri.core.geometry.Point2D pt)
public boolean isValid()
public com.esri.core.geometry.Point2D getCenter()
public void queryCenter(com.esri.core.geometry.Point2D center)
public void centerAt(Point c)
public Point getLowerLeft()
public Point getUpperLeft()
public Point getLowerRight()
public Point getUpperRight()
public boolean contains(Point p)
public boolean contains(com.esri.core.geometry.Point2D p)
public boolean contains(double x,
double y)
public boolean contains(Envelope2D other)
public boolean equals(Object _other)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int clipLine(com.esri.core.geometry.Point2D p1,
com.esri.core.geometry.Point2D p2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||