Lines Matching refs:height
35 * in the coordinate space, its width, and its height.
38 * <code>height</code> are <code>public</code> fields. The constructors
40 * one, do not prevent setting a negative value for width or height.
43 * A {@code Rectangle} whose width or height is exactly zero has location
54 * A {@code Rectangle} whose width or height is negative has neither
76 * negative width and height or it should use the first point in the set
102 * The values stored into the {@link #width} and {@link #height} dimension
153 * The height of the <code>Rectangle</code>.
160 public int height;
183 * height are both zero.
197 this(r.x, r.y, r.width, r.height);
203 * {@code (x,y)} and whose width and height
208 * @param height the height of the <code>Rectangle</code>
211 public Rectangle(int x, int y, int width, int height) {
215 this.height = height;
221 * height are specified by the arguments of the same name.
223 * @param height the height of the <code>Rectangle</code>
225 public Rectangle(int width, int height) {
226 this(0, 0, width, height);
232 * whose width and height are specified by the
237 * width and height of the <code>Rectangle</code>
240 this(p.x, p.y, d.width, d.height);
245 * specified <code>Point</code>, and whose width and height are both zero.
255 * (0, 0) and whose width and height are specified
257 * @param d a <code>Dimension</code>, specifying width and height
260 this(0, 0, d.width, d.height);
291 * Returns the height of the bounding <code>Rectangle</code> in
293 * @return the height of the bounding <code>Rectangle</code>.
296 return height;
314 return new Rectangle(x, y, width, height);
322 return new Rectangle(x, y, width, height);
337 setBounds(r.x, r.y, r.width, r.height);
344 * and <code>height</code>.
353 * @param height the new height for this <code>Rectangle</code>
358 public void setBounds(int x, int y, int width, int height) {
359 reshape(x, y, width, height);
365 * and {@code height}.
375 * @param height the new height of the specified rectangle
377 public void setRect(double x, double y, double width, double height) {
402 if (height >= 0) height += y-newy;
403 newh = clip(height, height >= 0);
424 * and <code>height</code>.
431 * @param height the new height for this <code>Rectangle</code>
436 public void reshape(int x, int y, int width, int height) {
440 this.height = height;
561 if (height >= 0) {
562 height += newv - Integer.MIN_VALUE;
571 if (height >= 0) {
572 height += newv - Integer.MAX_VALUE;
573 if (height < 0) height = Integer.MAX_VALUE;
595 return new Dimension(width, height);
610 setSize(d.width, d.height);
615 * width and height.
620 * @param height the new height for this <code>Rectangle</code>
625 public void setSize(int width, int height) {
626 resize(width, height);
631 * width and height.
634 * @param height the new height for this <code>Rectangle</code>
639 public void resize(int width, int height) {
641 this.height = height;
684 return contains(r.x, r.y, r.width, r.height);
695 * @param H the height of the <code>Rectangle</code>
704 int h = this.height;
755 int h = this.height;
785 int th = this.height;
787 int rh = r.height;
825 long ty2 = ty1; ty2 += this.height;
827 long ry2 = ry1; ry2 += r.height;
867 long ty2 = this.height;
878 long ry2 = r.height;
913 * width and height equal to zero.
932 if ((width | height) < 0) {
935 this.width = this.height = 0;
941 long y2 = this.height;
964 * {@code Point} and width and height equal to zero.
1011 long ty2 = this.height;
1013 reshape(r.x, r.y, r.width, r.height);
1016 long ry2 = r.height;
1052 * and a height of {@code (height + 2v)}.
1059 * values of {@code width} and {@code height} grow
1069 long y1 = this.height;
1123 return (width <= 0) || (height <= 0);
1148 if (this.height <= 0) {
1152 } else if (y > this.y + (double) this.height) {
1189 * same upper-left corner, width, and height as
1202 (height == r.height));
1214 return getClass().getName() + "[x=" + x + ",y=" + y + ",width=" + width + ",height=" + height + "]";