/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicTextAreaUI.java | 187 public int getBaseline(JComponent c, int width, int height) { argument 188 super.getBaseline(c, width, height); 195 height = height - insets.top - insets.bottom; 199 insets.right, height); 298 * @param height the height >= 0 300 public void setSize(float width, float height) { argument 304 super.setSize(width, height);
|
H A D | BasicTextFieldUI.java | 117 public int getBaseline(JComponent c, int width, int height) { argument 118 super.getBaseline(c, width, height); 122 height = height - insets.top - insets.bottom; 123 if (height > 0) { 127 if (height != vspan) { 128 int slop = height - vspan; 134 height); 213 if (bounds.height != vspan) { 214 int slop = bounds.height [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalScrollBarUI.java | 162 g.drawLine( 0, 0, 0, trackBounds.height - 1 ); 163 g.drawLine( trackBounds.width - 2, 0, trackBounds.width - 2, trackBounds.height - 1 ); 164 g.drawLine( 2, trackBounds.height - 1, trackBounds.width - 1, trackBounds.height - 1); 169 g.drawLine( 1, 1, 1, trackBounds.height - 2 ); 172 int y = thumbRect.y + thumbRect.height - trackBounds.y; 176 g.drawLine( trackBounds.width - 1, 0, trackBounds.width - 1, trackBounds.height - 1 ); 178 MetalUtils.drawDisabledBorder(g, 0, 0, trackBounds.width, trackBounds.height ); 191 trackBounds.height += 2; 197 g.drawLine( 0, 2, 0, trackBounds.height 397 setThumbBounds(int x, int y, int width, int height) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthButtonUI.java | 188 public int getBaseline(JComponent c, int width, int height) { argument 192 if (width < 0 || height < 0) { 194 "Width and height must be >= 0"); 208 viewRect.height = height - (i.bottom + viewRect.y); 223 textRect.height);
|
H A D | SynthProgressBarUI.java | 153 public int getBaseline(JComponent c, int width, int height) { argument 154 super.getBaseline(c, width, height); 161 return (height - metrics.getAscent() - metrics.getDescent()) / 2 + 245 int x = 0, y = 0, width = 0, height = 0; 256 height = pBar.getHeight() 269 height = (int)(percentComplete * (pBar.getHeight() 272 y = pBar.getHeight() - pBarInsets.bottom - height 285 height = boxRect.height - progressPadding - progressPadding; 295 g.clipRect(x, y, width, height); [all...] |
H A D | SynthScrollPaneUI.java | 117 vpBorder.paintBorder(scrollpane, g, r.x, r.y, r.width, r.height); 247 int width, int height) { 257 height); 246 paintBorder(Component c, Graphics g, int x, int y, int width, int height) argument
|
H A D | SynthSpinnerUI.java | 389 /* Force the editors height to be a multiple of 2 391 editorD.height = ((editorD.height + 1) / 2) * 2; 393 Dimension size = new Dimension(editorD.width, editorD.height); 397 size.height += insets.top + insets.bottom; 405 private void setBounds(Component c, int x, int y, int width, int height) { argument 407 c.setBounds(x, y, width, height);
|
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | DefaultHighlighter.java | 67 a.height -= insets.top + insets.bottom; 144 if (lhi.width > 0 && lhi.height > 0) { 145 component.repaint(lhi.x, lhi.y, lhi.width, lhi.height); 176 maxY = Math.max(maxY, info.y + info.height); 239 if (lhi.width > 0 && lhi.height > 0) { 240 component.repaint(lhi.x, lhi.y, lhi.width, lhi.height); 244 lhi.width = lhi.height = 0; 423 g.fillRect(r.x, r.y, r.width, r.height); 427 g.fillRect(p0.x, p0.y, p0ToMarginWidth, p0.height); 428 if ((p0.y + p0.height) ! 580 int height; field in class:DefaultHighlighter.LayeredHighlightInfo [all...] |
H A D | PlainView.java | 267 // try and paint them. Since all of the lines are the same height 272 int heightBelow = (alloc.y + alloc.height) - (clip.y + clip.height); 279 linesTotal = alloc.height / fontHeight; 280 if (alloc.height % fontHeight != 0) { 364 lineArea.height = metrics.getHeight(); 391 } else if (y > alloc.y + alloc.height) { 486 * @param height the height >= 0 488 public void setSize(float width, float height) { argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | CSSBorder.java | 205 int x, int y, int width, int height) { 218 int intHeight = height - (widths[TOP] + widths[BOTTOM]); 300 int end = (xAxis ? r.width : r.height); 312 int height = xAxis ? r.height : length; 314 g.fillRect(x, y, width, height); 328 int length = Math.max(r.height / 3, 1); 347 int length = r.height * factor; 385 int length = Math.max(r.height / 2, 1); 204 paintBorder(Component c, Graphics g, int x, int y, int width, int height) argument
|
H A D | FrameView.java | 52 float height; field in class:FrameView
|
H A D | HiddenTagView.java | 301 int width, int height) { 306 x, y + height - circleR); 307 g.drawArc(x, y + height - circleD - 1, 311 g.drawLine(x + circleR, y + height - 1, 312 x + width - tagSize, y + height - 1); 315 x + width - 1, y + height / 2); 316 g.drawLine(x + width - tagSize, y + height, 317 x + width - 1, y + height / 2); 332 int width, int height) { 337 x + width - 1, y + height 300 paintBorder(Component c, Graphics g, int x, int y, int width, int height) argument 331 paintBorder(Component c, Graphics g, int x, int y, int width, int height) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/awt/image/ |
H A D | ByteBandedRaster.java | 65 /** A cached copy of minY + height for use in bounds checks. */ 135 this.maxY = minY + height; 271 * @param height Height of the pixel rectangle. 324 * @param height Height of the pixel rectangle. 372 * @param height Height of the pixel rectangle. 445 int height = inRaster.getHeight(); 447 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) { 452 setDataElements(dstOffX, dstOffY, width, height, inRaster); 464 * @param height The number of pixels to store vertically 468 int width, int height, 467 setDataElements(int dstX, int dstY, int width, int height, Raster inRaster) argument 646 createWritableChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument 701 createChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument [all...] |
H A D | ByteComponentRaster.java | 76 /** A cached copy of minY + height for use in bounds checks. */ 156 this.maxY = minY + height; 303 * @param height Height of the pixel rectangle. 356 * @param height Height of the pixel rectangle. 419 * @param height Height of the pixel rectangle. 494 int height = inRaster.getHeight(); 496 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) { 501 setDataElements(dstOffX, dstOffY, width, height, inRaster); 513 * @param height The number of pixels to store vertically 517 int width, int height, 516 setDataElements(int dstX, int dstY, int width, int height, Raster inRaster) argument 769 createChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument 798 createWritableChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument [all...] |
H A D | ByteInterleavedRaster.java | 76 /** A cached copy of minY + height for use in bounds checks. */ 193 this.maxY = minY + height; 355 * @param height Height of the pixel rectangle. 380 * @param height Height of the pixel rectangle. 441 * @param height Height of the pixel rectangle. 574 int height = inRaster.getHeight(); 576 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) { 582 width, height, inRaster); 598 * @param height The number of pixels to store vertically 603 int width, int height, 601 setDataElements(int dstX, int dstY, int srcX, int srcY, int width, int height, Raster inRaster) argument 1205 createChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument 1234 createWritableChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument [all...] |
H A D | BytePackedRaster.java | 73 /** A cached copy of minY + height for use in bounds checks. */ 155 this.maxY = minY + height; 310 * @param height Height of the pixel rectangle. 362 * @param height Height of the pixel rectangle. 387 * @param height Height of the pixel rectangle. 546 int height = inRaster.getHeight(); 548 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) { 554 width, height, 571 * @param height The number of pixels to store vertically 576 int width, int height, 574 setDataElements(int dstX, int dstY, int srcX, int srcY, int width, int height, BytePackedRaster inRaster) argument 1267 createChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument 1295 createWritableChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument [all...] |
H A D | IntegerComponentRaster.java | 91 /** A cached copy of minY + height for use in bounds checks. */ 170 this.maxY = minY + height; 313 * @param height Height of the pixel rectangle. 397 int height = inRaster.getHeight(); 399 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) { 403 setDataElements(dstOffX, dstOffY, width, height, inRaster); 415 * @param height The number of pixels to store vertically 419 int width, int height, 422 if (width <= 0 || height <= 0) { 456 for (int startY=0; startY < height; start 418 setDataElements(int dstX, int dstY, int width, int height, Raster inRaster) argument 544 createWritableChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument 598 createChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument [all...] |
H A D | ShortBandedRaster.java | 63 /** A cached copy of minY + height for use in bounds checks. */ 133 this.maxY = minY + height; 266 * @param height Height of the pixel rectangle. 319 * @param height Height of the pixel rectangle. 367 * @param height Height of the pixel rectangle. 441 int height = inRaster.getHeight(); 443 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) { 448 setDataElements(dstOffX, dstOffY, width, height, inRaster); 460 * @param height The number of pixels to store vertically 464 int width, int height, 463 setDataElements(int dstX, int dstY, int width, int height, Raster inRaster) argument 644 createWritableChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument 700 createChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument [all...] |
H A D | ShortComponentRaster.java | 76 /** A cached copy of minY + height for use in bounds checks. */ 156 this.maxY = minY + height; 302 * @param height Height of the pixel rectangle. 355 * @param height Height of the sample rectangle. 418 * @param height Height of the pixel rectangle. 491 int height = inRaster.getHeight(); 493 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) { 498 setDataElements(dstOffX, dstOffY, width, height, inRaster); 510 * @param height The number of pixels to store vertically 514 int width, int height, 513 setDataElements(int dstX, int dstY, int width, int height, Raster inRaster) argument 704 createChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument 733 createWritableChild(int x, int y, int width, int height, int x0, int y0, int[] bandList) argument [all...] |
H A D | ToolkitImage.java | 81 private int height = -1; field in class:ToolkitImage 119 * Return the height of the original image source. 120 * If the height isn't known, then the image is reconstructed. 129 return height; 133 * Return the height of the original image source. 134 * If the height isn't known, then the ImageObserver object will be 147 return height; 253 height = h;
|
/openjdk7/jdk/src/share/classes/sun/font/ |
H A D | FontDesignMetrics.java | 74 * theoretical square whose dimensions are the full body height of the 114 // height, ascent, descent, leading are reported to the client 136 private transient int height = -1; field in class:FontDesignMetrics 394 height = -1; 568 // for leading, ascent & descent sum to height. 579 // height is calculated as the sum of two separately rounded up values 581 // pass to drawString etc and we need to ensure that the height has enough 585 if (height < 0) { 586 height = getAscent() + (int)(roundingUpValue + descent + leading); 588 return height; [all...] |
/openjdk7/jdk/src/share/classes/java/awt/geom/ |
H A D | Rectangle2D.java | 100 * The height of this <code>Rectangle2D</code>. 104 public float height; field in class:Rectangle2D.Float 124 * @param h the height of the newly constructed 161 return (double) height; 169 return (width <= 0.0f) || (height <= 0.0f); 181 * @param h the height of this <code>Rectangle2D</code> 188 this.height = h; 199 this.height = (float) h; 210 this.height = (float) r.getHeight(); 236 if (this.height < 337 public double height; field in class:Rectangle2D.Double [all...] |
H A D | RoundRectangle2D.java | 33 * dimension {@code (w x h)}, and the width and height of an arc 76 * The height of this <code>RoundRectangle2D</code>. 80 public float height; field in class:RoundRectangle2D.Float 90 * The height of the arc that rounds off the corners. 115 * @param h the height to which to set the newly 120 * @param arch the height of the arc to use to round off the 160 return (double) height; 184 return (width <= 0.0f) || (height <= 0.0f); 198 * @param h the height to which to set this 202 * @param arch the height t 293 public double height; field in class:RoundRectangle2D.Double [all...] |
/openjdk7/jdk/src/share/classes/java/awt/image/ |
H A D | MemoryImageSource.java | 67 * int height = 50; 68 * int size = width * height; 76 * source = new MemoryImageSource(width, height, pixels, 0, width); 109 int height; field in class:MemoryImageSource 123 * @param h the height of the rectangle of pixels 141 * @param h the height of the rectangle of pixels 163 * @param h the height of the rectangle of pixels 181 * @param h the height of the rectangle of pixels 202 height = h; 217 * @param h the height o [all...] |
H A D | PixelGrabber.java | 111 * @param h the height of the rectangle of pixels to retrieve 139 * @param h the height of the rectangle of pixels to retrieve 170 * height of the source data when that information is delivered. 178 * @param h the height of the rectangle of pixels to retrieve 300 * Get the height of the pixel buffer (after adjusting for image height). 304 * @return the final height used for the pixel buffer or -1 if the height 364 * @param height the height o 366 setDimensions(int width, int height) argument [all...] |