Lines Matching defs:Region

37  * A rectangular Region is allowed to have a null band list in which
63 public class Region {
68 * Immutable Region.
70 private static final class ImmutableRegion extends Region {
83 public static final Region EMPTY_REGION = new ImmutableRegion(0, 0, 0, 0);
84 public static final Region WHOLE_REGION = new ImmutableRegion(
156 protected Region(int lox, int loy, int hix, int hiy) {
164 * Returns a Region object covering the pixels which would be
175 public static Region getInstance(Shape s, AffineTransform at) {
180 * Returns a Region object covering the pixels which would be
186 * Note that only the bounds of the specified Region are used to
187 * restrict the resulting Region.
190 * resulting Region with devBounds must be performed in a
193 * @param devBounds a non-null Region specifying some bounds to
201 public static Region getInstance(Region devBounds,
208 * Returns a Region object covering the pixels which would be
217 * Note that only the bounds of the specified Region are used to
218 * restrict the resulting Region.
221 * resulting Region with devBounds must be performed in a
224 * @param devBounds a non-null Region specifying some bounds to
234 public static Region getInstance(Region devBounds, boolean normalize,
250 Region r = Region.getInstance(box);
259 * Returns a Region object with a rectangle of interest specified
265 public static Region getInstance(Rectangle r) {
266 return Region.getInstanceXYWH(r.x, r.y, r.width, r.height);
270 * Returns a Region object with a rectangle of interest specified
276 public static Region getInstanceXYWH(int x, int y, int w, int h) {
277 return Region.getInstanceXYXY(x, y, dimAdd(x, w), dimAdd(y, h));
281 * Returns a Region object with a rectangle of interest specified
287 public static Region getInstance(int box[]) {
288 return new Region(box[0], box[1], box[2], box[3]);
292 * Returns a Region object with a rectangle of interest specified
298 public static Region getInstanceXYXY(int lox, int loy, int hix, int hiy) {
299 return new Region(lox, loy, hix, hiy);
374 * Returns a Region object that represents the same list of rectangles as
375 * the current Region object, scaled by the specified sx, sy factors.
377 public Region getScaledRegion(final double sx, final double sy) {
389 Region ret = new Region(tlox, tloy, thix, thiy);
447 * Returns a Region object that represents the same list of
448 * rectangles as the current Region object, translated by
451 public Region getTranslatedRegion(int dx, int dy) {
466 Region ret = new Region(tlox, tloy, thix, thiy);
488 private Region getSafeTranslatedRegion(int dx, int dy) {
493 Region ret = new Region(tlox, tloy, thix, thiy);
550 * Returns a Region object that represents the intersection of
554 public Region getIntersection(Rectangle r) {
559 * Returns a Region object that represents the intersection of
563 public Region getIntersectionXYWH(int x, int y, int w, int h) {
568 * Returns a Region object that represents the intersection of
572 public Region getIntersectionXYXY(int lox, int loy, int hix, int hiy) {
576 Region ret = new Region((lox < this.lox) ? this.lox : lox,
587 * Returns a Region object that represents the intersection of this
588 * object with the specified Region object.
590 * If {@code A} and {@code B} are both Region Objects and
596 * Region object if no clipping occurs.
598 public Region getIntersection(Region r) {
605 Region ret = new Region((r.lox < this.lox) ? this.lox : r.lox,
616 * Returns a Region object that represents the union of this
617 * object with the specified Region object.
619 * If {@code A} and {@code B} are both Region Objects and
625 * Region object if no augmentation occurs.
627 public Region getUnion(Region r) {
634 Region ret = new Region((r.lox > this.lox) ? this.lox : r.lox,
643 * Returns a Region object that represents the difference of the
644 * specified Region object subtracted from this object.
646 * If {@code A} and {@code B} are both Region Objects and
652 * Region object if no clipping occurs.
654 public Region getDifference(Region r) {
661 Region ret = new Region(this.lox, this.loy, this.hix, this.hiy);
667 * Returns a Region object that represents the exclusive or of this
668 * object with the specified Region object.
670 * If {@code A} and {@code B} are both Region Objects and
676 * Region object if either is empty.
678 public Region getExclusiveOr(Region r) {
685 Region ret = new Region((r.lox > this.lox) ? this.lox : r.lox,
697 private void filterSpans(Region ra, Region rb, int flags) {
842 * Returns a Region object that represents the bounds of the
844 * Region object.
847 * and this Region is rectangular.
849 public Region getBoundsIntersection(Rectangle r) {
854 * Returns a Region object that represents the bounds of the
859 * and this Region is rectangular.
861 public Region getBoundsIntersectionXYWH(int x, int y, int w, int h) {
866 * Returns a Region object that represents the bounds of the
871 * and this Region is rectangular.
873 public Region getBoundsIntersectionXYXY(int lox, int loy,
882 return new Region((lox < this.lox) ? this.lox : lox,
889 * Returns a Region object that represents the intersection of
890 * this object with the bounds of the specified Region object.
893 * Region object if no clipping occurs and the Regions are
896 public Region getBoundsIntersection(Region r) {
903 return new Region((r.lox < this.lox) ? this.lox : r.lox,
1032 * Returns the lowest X coordinate in the Region.
1039 * Returns the lowest Y coordinate in the Region.
1046 * Returns the highest X coordinate in the Region.
1053 * Returns the highest Y coordinate in the Region.
1060 * Returns the width of this Region clipped to the range (0 - MAX_INT).
1072 * Returns the height of this Region clipped to the range (0 - MAX_INT).
1084 * Returns true iff this Region encloses no area.
1091 * Returns true iff this Region represents a single simple
1099 * Returns true iff this Region contains the specified coordinate.
1126 * Returns true iff this Region lies inside the indicated
1135 * Returns true iff this Region lies inside the indicated
1145 * Quickly checks if this Region lies inside the specified
1146 * Region object.
1148 * This method will return false if the specified Region
1151 public boolean isInsideQuickCheck(Region r) {
1158 * Quickly checks if this Region intersects the specified
1173 * Quickly checks if this Region intersects the specified
1174 * Region object.
1180 public boolean intersectsQuickCheck(Region r) {
1186 * Quickly checks if this Region surrounds the specified
1187 * Region object.
1189 * This method will return false if this Region object is
1192 public boolean encompasses(Region r) {
1199 * Quickly checks if this Region surrounds the specified
1202 * This method will return false if this Region object is
1210 * Quickly checks if this Region surrounds the specified
1213 * This method will return false if this Region object is
1233 * Clips the indicated bbox array to the bounds of this Region.
1281 sb.append("Region[[");
1319 if (!(o instanceof Region)) {
1322 Region r = (Region) o;