|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.coverage.raster.geom.RasterRect
public class RasterRect
Simple data structure for a raster rectangle. Stores upper-left pixel coordinate and width and height.
| Field Summary | |
|---|---|
int |
height
The height in pixel. |
int |
width
The width in pixel. |
int |
x
The x pixel position. |
int |
y
The y pixel position. |
| Constructor Summary | |
|---|---|
RasterRect()
Creates a new RasterRect with position 0, 0 and size 0, 0. |
|
RasterRect(int x,
int y,
int width,
int height)
Creates a new RasterRect |
|
RasterRect(Rectangle rect)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
static RasterRect |
intersection(RasterRect first,
RasterRect second)
Create an intersection of the given RasterRects, if the given rasterects do not intersect, null will be returned. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int x
public int y
public int width
public int height
| Constructor Detail |
|---|
public RasterRect(int x,
int y,
int width,
int height)
x - upper-left pixely - upper-left pixelwidth - width of rectangleheight - height of rectanglepublic RasterRect()
public RasterRect(Rectangle rect)
rect - to copy data of.| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Object
public static final RasterRect intersection(RasterRect first,
RasterRect second)
first - second -
null if the given rectangles do not intersect.
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||