|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double
ucar.unidata.geoloc.ProjectionRect
public class ProjectionRect
Bounding box for ProjectionPoint's. This is a subclass of java.awt.geom.Rectangle2D.Double. Note that getX() getY() really means getMinX(), getMinY(), rather than "upper left point" of the rectangle.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
|---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
| Field Summary |
|---|
| Fields inherited from class java.awt.geom.Rectangle2D.Double |
|---|
height, width, x, y |
| Fields inherited from class java.awt.geom.Rectangle2D |
|---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
| Constructor Summary | |
|---|---|
ProjectionRect()
default constructor, initialized to center (0,0) and width (10000, 10000) |
|
ProjectionRect(double x1,
double y1,
double x2,
double y2)
construct a MapArea from any two opposite corner points |
|
ProjectionRect(java.awt.geom.Rectangle2D r)
Copy Constructor |
|
| Method Summary | |
|---|---|
ProjectionPoint |
getLowerLeftPoint()
Get the Lower Right Point (same as getMinPoint) |
ProjectionPoint |
getLowerRightPoint()
Get the Lower Right Point |
ProjectionPoint |
getMaxPoint()
Get the maximum corner of the bounding box. |
ProjectionPoint |
getMinPoint()
Get the minimum corner of the bounding box. |
ProjectionPoint |
getUpperLeftPoint()
Get the Upper Left Point |
ProjectionPoint |
getUpperRightPoint()
Get the Upper Left Point (same as getMaxPoint) |
void |
setHeight(double h)
set Y height |
void |
setWidth(double w)
set X width |
void |
setX(double x)
set minimum X |
void |
setY(double y)
set minimum Y |
java.lang.String |
toString()
Get a String representation of this object. |
| Methods inherited from class java.awt.geom.Rectangle2D.Double |
|---|
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect |
| Methods inherited from class java.awt.geom.Rectangle2D |
|---|
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union |
| Methods inherited from class java.awt.geom.RectangularShape |
|---|
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectionRect()
public ProjectionRect(java.awt.geom.Rectangle2D r)
r - rectangle to copy
public ProjectionRect(double x1,
double y1,
double x2,
double y2)
x1 - x coord of any corner of the bounding boxy1 - y coord of the same corner as x1x2 - x coord of opposite corner from x1,y1y2 - y coord of same corner as x2| Method Detail |
|---|
public ProjectionPoint getLowerRightPoint()
public ProjectionPoint getUpperRightPoint()
public ProjectionPoint getLowerLeftPoint()
public ProjectionPoint getUpperLeftPoint()
public ProjectionPoint getMinPoint()
public ProjectionPoint getMaxPoint()
public java.lang.String toString()
toString in class java.awt.geom.Rectangle2D.Doublepublic void setX(double x)
x - minimum xpublic void setY(double y)
y - minimum ypublic void setWidth(double w)
w - x widthpublic void setHeight(double h)
h - Y height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||