Lines Matching defs:width

35  * in the coordinate space, its width, and its height.
37 * A <code>Rectangle</code> object's <code>width</code> and
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
144 * The width of the <code>Rectangle</code>.
150 public int width;
182 * is at (0,&nbsp;0) in the coordinate space, and whose width and
197 this(r.x, r.y, r.width, r.height);
203 * {@code (x,y)} and whose width and height
207 * @param width the width of the <code>Rectangle</code>
211 public Rectangle(int x, int y, int width, int height) {
214 this.width = width;
220 * is at (0,&nbsp;0) in the coordinate space, and whose width and
222 * @param width the width 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,&nbsp;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);
282 * Returns the width of the bounding <code>Rectangle</code> in
284 * @return the width of the bounding <code>Rectangle</code>.
287 return width;
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);
343 * <code>x</code>, <code>y</code>, <code>width</code>,
352 * @param width the new width for this <code>Rectangle</code>
358 public void setBounds(int x, int y, int width, int height) {
359 reshape(x, y, width, height);
364 * which encompass the specified {@code x}, {@code y}, {@code width},
374 * @param width the width of the specified rectangle
377 public void setRect(double x, double y, double width, double height) {
383 // rectangle even with both x & width set to MAX_VALUE.
385 // is non-existant so we should use a width < 0.
392 if (width >= 0) width += x-newx;
393 neww = clip(width, width >= 0);
423 * <code>x</code>, <code>y</code>, <code>width</code>,
430 * @param width the new width for this <code>Rectangle</code>
436 public void reshape(int x, int y, int width, int height) {
439 this.width = width;
521 // Only adjust width if it was valid (>= 0).
522 if (width >= 0) {
524 // newv+width, but we may move newv to prevent
529 // width += newv; newv = MIN_VALUE; width -= newv;
530 width += newv - Integer.MIN_VALUE;
531 // width may go negative if the right edge went past
542 if (width >= 0) {
544 // width += newv; newv = MAX_VALUE; width -= newv;
545 width += newv - Integer.MAX_VALUE;
548 if (width < 0) width = Integer.MAX_VALUE;
595 return new Dimension(width, height);
610 setSize(d.width, d.height);
615 * width and height.
619 * @param width the new width for this <code>Rectangle</code>
625 public void setSize(int width, int height) {
626 resize(width, height);
631 * width and height.
633 * @param width the new width for this <code>Rectangle</code>
639 public void resize(int width, int height) {
640 this.width = width;
684 return contains(r.x, r.y, r.width, r.height);
694 * @param W the width of the <code>Rectangle</code>
703 int w = this.width;
754 int w = this.width;
784 int tw = this.width;
786 int rw = r.width;
824 long tx2 = tx1; tx2 += this.width;
826 long rx2 = rx1; rx2 += r.width;
866 long tx2 = this.width;
877 long rx2 = r.width;
913 * width and height equal to zero.
932 if ((width | height) < 0) {
935 this.width = this.height = 0;
940 long x2 = this.width;
964 * {@code Point} and width and height equal to zero.
1010 long tx2 = this.width;
1013 reshape(r.x, r.y, r.width, r.height);
1015 long rx2 = r.width;
1051 * width of {@code (width + 2h)},
1059 * values of {@code width} and {@code height} grow
1068 long x1 = this.width;
1080 // Final width must remain negative so subtract x0 before
1095 // we want to leave the width negative since the result
1123 return (width <= 0) || (height <= 0);
1141 if (this.width <= 0) {
1145 } else if (x > this.x + (double) this.width) {
1189 * same upper-left corner, width, and height as
1201 (width == r.width) &&
1214 return getClass().getName() + "[x=" + x + ",y=" + y + ",width=" + width + ",height=" + height + "]";