public class ProjectionRect extends Rectangle2D.Double implements Serializable
Rectangle2D.Double, Rectangle2D.Float
height, width, x, y
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
Constructor and Description |
---|
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(Rectangle2D r)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
String |
toString()
Get a String representation of this object.
|
String |
toString2() |
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
public ProjectionRect()
public ProjectionRect(Rectangle2D r)
r
- rectangle to copypublic 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 x2public ProjectionPoint getLowerRightPoint()
public ProjectionPoint getUpperRightPoint()
public ProjectionPoint getLowerLeftPoint()
public ProjectionPoint getUpperLeftPoint()
public ProjectionPoint getMinPoint()
public ProjectionPoint getMaxPoint()
public String toString()
toString
in class Rectangle2D.Double
public String toString2()
public 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 heightCopyright © 1999–2015 UCAR/Unidata. All rights reserved.