Searched refs:height (Results 101 - 125 of 998) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaTabbedPaneTabState.java127 // if left or right height should be hardcoded.
129 rightScrollTabRect.height = FIXED_SCROLL_TAB_LENGTH;
130 leftScrollTabRect.height = FIXED_SCROLL_TAB_LENGTH;
177 if ((verticalTabRuns ? firstRect.height : firstRect.width) > remainingSpace) {
181 firstRect.height = remainingSpace; // force it to fit!
194 if ((verticalTabRuns ? rightRect.height : rightRect.width) > remainingSpace) {
199 remainingSpace -= (verticalTabRuns ? rightRect.height : rightRect.width);
209 if ((verticalTabRuns ? leftRect.height : leftRect.width) > remainingSpace) {
214 remainingSpace -= (verticalTabRuns ? leftRect.height : leftRect.width);
289 totalLength += element.height;
[all...]
H A DAquaTextFieldBorder.java64 public void paintBorder(final Component c, final Graphics g, int x, int y, int width, int height) { argument
66 // g.drawRect(x, y, width - 1, height - 1);
71 painter.paint(g, c, x, y, width, height);
81 painter.paint(g, c, x, y, width, height);
85 final int shrinkage = getShrinkageFor(jc, height);
90 height -= (subInsets.top + subInsets.bottom);
99 painter.paint(g, c, x, y, width, height);
101 // g.drawRect(x, y, width - 1, height - 1);
104 static int getShrinkageFor(final JTextComponent jc, final int height) { argument
110 final int shrinkage = size.height
[all...]
H A DAquaComboBoxButton.java97 int height = getHeight();
101 g.fillRect(0, 0, width, height);
116 painter.paint(g, this, left, top, width, height);
117 doRendererPaint(g, buttonModel, editable, getInsets(), left, top, width, height);
127 height -= insets.top + insets.bottom;
130 if (height <= 0 || width <= 0) {
152 painter.paint(g, comboBox, left + 2, top - 1, width - 4, height);
154 painter.paint(g, comboBox, left, top, width, height);
159 doRendererPaint(g, buttonModel, editable, insets, left, top, width, height);
163 protected void doRendererPaint(final Graphics g, final ButtonModel buttonModel, final boolean editable, final Insets insets, int left, int top, int width, int height) { argument
[all...]
H A DAquaProgressBarUI.java181 final int height = progressBar.getHeight() - (i.bottom + i.top);
183 painter.paint(g, progressBar, i.left, i.top, width, height);
186 paintString(g, i.left, i.top, width, height);
196 protected void paintString(final Graphics g, final int x, final int y, final int width, final int height) { argument
202 final Point renderLocation = getStringPlacement(g2, progressString, x, y, width, height);
230 protected Point getStringPlacement(final Graphics g, final String progressString, int x, int y, int width, int height) { argument
236 // swapping x & y and width & height
237 final int oldH = height;
238 height = width;
246 return new Point(x + Math.round(width / 2 - stringWidth / 2), y + ((height
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DMap.java111 * <code>x</code>, <code>y</code>. <code>width</code>, <code>height</code>
115 public AttributeSet getArea(int x, int y, int width, int height) { argument
131 if (rc != null && rc.contains(x, y, width, height)) {
238 * <code>width</code>, <code>height</code> is the size of
241 public boolean contains(int x, int y, int width, int height); argument
251 * (order is x, y, width, height). */
255 /** Last value of height passed in. */
293 public boolean contains(int x, int y, int width, int height) { argument
297 if (lastWidth != width || lastHeight != height) {
299 lastHeight = height;
384 contains(int x, int y, int width, int height) argument
458 contains(int x, int y, int width, int height) argument
499 contains(int x, int y, int width, int height) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXFramePeer.java153 int height = getMenuBarHeight();
164 menubarPeer.reshape(0, 0, width, height);
185 int height = getMenuBarHeight();
192 if (height != lastAppliedMenubarHeight) {
193 lastAppliedMenubarHeight = height;
224 if (b.height != Integer.MAX_VALUE) {
225 hints.set_max_height(b.height);
452 g.drawLine(0, 0, 0, fsize.height);
453 g.drawLine(1, 0, 1, fsize.height - 1);
457 g.drawLine(CROSSHAIR_INSET + 1, fsize.height
637 setBoundsPrivate(int x, int y, int width, int height) argument
[all...]
H A DXScrollPanePeer.java91 int h = height-hsbSpace;
167 vsbSpace = (cSize.height <= (height - 2*MARGIN) ? 0 : SCROLLBAR);
173 vsbSpace = (cSize.height <= (height - SCROLLBAR - 2*MARGIN) ? 0 : SCROLLBAR);
180 int vis = height - (2*MARGIN) - hsbSpace;
181 int max = Math.max(cSize.height, vis);
184 vsb.setSize(vsbSpace-SCROLLBAR_INSET, height-hsbSpace);
238 height - (2*MARGIN) - hsbSpace);
366 int h = height
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDebugGraphics.java121 public Graphics create(int x, int y, int width, int height) { argument
125 debugGraphics.graphics = graphics.create(x, y, width, height);
290 public void clipRect(int x, int y, int width, int height) { argument
291 graphics.clipRect(x, y, width, height);
294 " Setting clipRect: " + (new Rectangle(x, y, width, height)) +
302 public void setClip(int x, int y, int width, int height) { argument
303 graphics.setClip(x, y, width, height);
331 public void drawRect(int x, int y, int width, int height) { argument
337 new Rectangle(x, y, width, height));
344 debugGraphics.drawRect(x, y, width, height);
365 fillRect(int x, int y, int width, int height) argument
399 clearRect(int x, int y, int width, int height) argument
433 drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) argument
471 fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) argument
543 draw3DRect(int x, int y, int width, int height, boolean raised) argument
578 fill3DRect(int x, int y, int width, int height, boolean raised) argument
613 drawOval(int x, int y, int width, int height) argument
646 fillOval(int x, int y, int width, int height) argument
679 drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) argument
716 fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) argument
1044 drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) argument
1134 drawImage(Image img, int x, int y,int width, int height, Color bgcolor, ImageObserver observer) argument
1288 copyArea(int x, int y, int width, int height, int destX, int destY) argument
[all...]
H A DOverlayLayout.java143 size.height += insets.top + insets.bottom;
163 size.height += insets.top + insets.bottom;
185 size.height += insets.top + insets.bottom;
235 alloc.height -= in.top + in.bottom;
239 SizeRequirements.calculateAlignedPositions(alloc.height, yTotal,
272 yChildren[i] = new SizeRequirements(min.height, typ.height,
273 max.height,
/openjdk7/jdk/src/share/classes/sun/swing/
H A DMenuItemLayoutHelper.java254 iconSize.height = icon.getIconHeight();
260 accSize.height = accFm.getHeight();
271 textSize.height =
276 textSize.height = fm.getHeight();
284 checkSize.height = checkIcon.getIconHeight();
289 arrowSize.height = arrowIcon.getIconHeight();
296 labelSize.height = max(checkSize.height, iconSize.height,
297 textSize.height, accSiz
1272 private int height; field in class:MenuItemLayoutHelper.RectSize
1279 RectSize(int width, int height, int origWidth, int maxWidth) argument
1306 setHeight(int height) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DGifImageDecoder.java290 // Global width&height
354 private native boolean parseImage(int x, int y, int width, int height, argument
359 private int sendPixels(int x, int y, int width, int height, argument
363 height += y;
366 if (y + height > global_height) {
367 height = global_height - y;
369 if (height <= 0) {
447 int count = setPixels(x2, y, width, height, model,
479 int height = ExtractWord(block, 6);
495 if (height
639 int height; field in class:GifFrame
[all...]
H A DIntegerInterleavedRaster.java58 /** A cached copy of minY + height for use in bounds checks. */
130 this.maxY = minY + height;
253 * @param height Height of the pixel rectangle.
327 int height = inRaster.getHeight();
329 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) {
334 setDataElements(dstOffX, dstOffY, width, height, inRaster);
346 * @param height The number of pixels to store vertically
350 int width, int height,
353 if (width <= 0 || height <= 0) {
378 for (int startY=0; startY < height; start
349 setDataElements(int dstX, int dstY, int width, int height, Raster inRaster) argument
456 createWritableChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument
510 createChild(int x, int y, int width, int height, int x0, int y0, int bandList[]) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DGraphics2D.java433 * by <code>height&nbsp;+&nbsp;1</code> pixels tall. This method
439 * @param height the height of the rectangle to be drawn.
445 public void draw3DRect(int x, int y, int width, int height, argument
453 //drawLine(x, y, x, y + height);
454 fillRect(x, y, 1, height + 1);
458 //drawLine(x + 1, y + height, x + width, y + height);
459 fillRect(x + 1, y + height, width, 1);
460 //drawLine(x + width, y, x + width, y + height
482 fill3DRect(int x, int y, int width, int height, boolean raised) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicRadioButtonUI.java122 viewRect.height = size.height - (i.bottom + viewRect.y);
123 iconRect.x = iconRect.y = iconRect.width = iconRect.height = 0;
124 textRect.x = textRect.y = textRect.width = textRect.height = 0;
140 g.fillRect(0,0, size.width, size.height);
192 textRect.width > 0 && textRect.height > 0 ) {
235 prefViewRect.height = Short.MAX_VALUE;
236 prefIconRect.x = prefIconRect.y = prefIconRect.width = prefIconRect.height = 0;
237 prefTextRect.x = prefTextRect.y = prefTextRect.width = prefTextRect.height = 0;
251 int y2 = Math.max(prefIconRect.y + prefIconRect.height,
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthProgressBarUI.java153 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 DSynthSliderUI.java237 public int getBaseline(JComponent c, int width, int height) { argument
241 if (width < 0 || height < 0) {
243 "Width and height must be >= 0");
268 int centerY = height / 2 - contentHeight / 2;
274 return centerY + label.getBaseline(pref.width, pref.height);
288 int contentHeight = height - insetCache.top -
296 return yPosition - pref.height / 2 +
297 label.getBaseline(pref.width, pref.height);
310 Dimension d = new Dimension(contentRect.width, contentRect.height);
312 d.height
[all...]
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DX11SurfaceData.h113 jint pmWidth; /* width, height of the */
129 jint width, jint height,
132 XImage * X11SD_CreateSharedImage (X11SDOps *xsdo, jint width, jint height);
135 void X11SD_PuntPixmap (X11SDOps *xsdo, jint width, jint height);
137 jboolean X11SD_CachedXImageFits (jint width, jint height,
140 XImage * X11SD_GetCachedXImage (jint width, jint height, jboolean readBits);
149 jboolean XShared_initSurface(JNIEnv *env, X11SDOps *xsdo, jint depth, jint width, jint height, jlong drawable);
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DBufferedMaskBlit.java95 int width, int height,
98 if (width <= 0 || height <= 0) {
112 width, height);
126 int totalBytesRequired = 20 + (width * height * 4);
141 width, height);
155 int width, int height);
91 MaskBlit(SurfaceData src, SurfaceData dst, Composite comp, Region clip, int srcx, int srcy, int dstx, int dsty, int width, int height, byte[] mask, int maskoff, int maskscan) argument
149 enqueueTile(long buf, int bpos, SurfaceData srcData, long pSrcOps, int srcType, byte[] mask, int masklen, int maskoff, int maskscan, int srcx, int srcy, int dstx, int dsty, int width, int height) argument
/openjdk7/jdk/src/share/classes/sun/print/
H A DPeekGraphics.java420 * @param height the height of the rectangle to intersect the clip with
424 public void clipRect(int x, int y, int width, int height) { argument
425 mGraphics.clipRect(x, y, width, height);
436 * @param height the height of the new clip rectangle.
441 public void setClip(int x, int y, int width, int height) { argument
442 mGraphics.setClip(x, y, width, height);
493 * @param height the height o
498 copyArea(int x, int y, int width, int height, int dx, int dy) argument
540 fillRect(int x, int y, int width, int height) argument
567 clearRect(int x, int y, int width, int height) argument
590 drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) argument
614 fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) argument
639 drawOval(int x, int y, int width, int height) argument
656 fillOval(int x, int y, int width, int height) argument
694 drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) argument
730 fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) argument
1000 drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) argument
1104 drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) argument
1774 addDrawingRect(float x, float y, float width, float height) argument
1822 imageUpdate(Image img, int infoFlags, int x, int y, int width, int height) argument
[all...]
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCImage.java61 // the width and height passed in as a parameter could differ than the width and the height of the NSImage (image), in that case, the image will be scaled
62 BufferedImage createBufferedImage(long image, double width, double height) { argument
64 return createImageWithSize(image, width, height);
67 public BufferedImage createImageWithSize(final long image, final double width, final double height) { argument
69 img.resize(width, height);
74 public BufferedImage createImageOfFile(final String file, final int width, final int height) { argument
75 return createBufferedImage(nativeCreateNSImageOfFileFromLaunchServices(file), width, height);
78 public BufferedImage createImageFromFile(final String file, final double width, final double height) { argument
80 nativeSetNSImageSize(image, width, height);
84 createSystemImageFromSelector(final String iconSelector, final int width, final int height) argument
88 createImageFromName(final String name, final int width, final int height) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DDefaultSwatchChooserPanel.java310 if (selRow < numSwatches.height - 1) {
342 selRow = numSwatches.height - 1;
361 for (int row = 0; row < numSwatches.height; row++) {
362 int y = row * (swatchSize.height + gap.height);
372 g.fillRect( x, y, swatchSize.width, swatchSize.height);
374 g.drawLine( x+swatchSize.width-1, y, x+swatchSize.width-1, y+swatchSize.height-1);
375 g.drawLine( x, y+swatchSize.height-1, x+swatchSize.width-1, y+swatchSize.height-1);
384 g.drawLine(x, y, x, y + swatchSize.height
[all...]
H A DSmartGridLayout.java119 int height = 0;
123 height += computeRowHeight(row);
130 height += (yGap * (rows - 1)) + insets.top + insets.bottom;
133 return new Dimension(width, height);
182 int height = layoutGrid[column][rowNum].getPreferredSize().height;
183 if (height > maxHeight) {
184 maxHeight = height;
/openjdk7/jdk/src/share/demo/applets/GraphicsTest/
H A DGraphicsTest.java220 arcSteps(g, 3, 0, 0, r.width, r.height, Color.orange, Color.blue);
225 r.height / 4,
227 r.height / 2,
234 (r.height * 3) / 8,
236 r.height / 4,
259 g.fillArc(0, 0, r.width, r.height, 0, 45);
261 g.drawArc(0, 0, r.width, r.height, 0, 45);
266 g.fillArc(0, 0, r.width, r.height, 90, -45);
268 g.drawArc(0, 0, r.width, r.height, 90, -45);
273 g.fillArc(0, 0, r.width, r.height, 13
[all...]
/openjdk7/jdk/src/share/native/sun/java2d/opengl/
H A DOGLSurfaceData.c102 OGLSD_IsPowerOfTwo(jint width, jint height) argument
104 return (((width & (width-1)) | (height & (height-1))) == 0);
116 * dimensions, and therefore width==textureWidth and height==textureHeight.
126 * must be specified in the range [0,width] and [0,height] rather than
131 * power-of-two greater than (or equal to) the requested width and height.
137 jint width, jint height)
148 width, height, isOpaque, texNonPow2);
160 texHeight = (height <= texMax) ? height
134 OGLSD_InitTextureObject(OGLSDOps *oglsdo, jboolean isOpaque, jboolean texNonPow2, jboolean texRect, jint width, jint height) argument
242 Java_sun_java2d_opengl_OGLSurfaceData_initTexture(JNIEnv *env, jobject oglsd, jlong pData, jboolean isOpaque, jboolean texNonPow2, jboolean texRect, jint width, jint height) argument
393 Java_sun_java2d_opengl_OGLSurfaceData_initFBObject(JNIEnv *env, jobject oglsd, jlong pData, jboolean isOpaque, jboolean texNonPow2, jboolean texRect, jint width, jint height) argument
535 OGLSD_SetNativeDimensions(JNIEnv *env, OGLSDOps *oglsdo, jint width, jint height) argument
[all...]
/openjdk7/jdk/src/windows/native/sun/java2d/d3d/
H A DD3DResourceManager.cpp253 D3DResourceManager::CreateTexture(UINT width, UINT height, argument
265 width, height, isRTT, isOpaque);
304 for (h = 1; height > h; h <<= 1);
306 height = h;
309 if (width > height) {
310 height = width;
312 width = height;
317 res = pd3dDevice->CreateTexture(width, height, 1/*levels*/, dwUsage,
336 HRESULT D3DResourceManager::CreateRTSurface(UINT width, UINT height, argument
346 width, height, isOpaqu
380 CreateOSPSurface(UINT width, UINT height, D3DFORMAT fmt, D3DResource** ppSurfaceResource ) argument
427 CreateSwapChain(HWND hWnd, UINT numBuffers, UINT width, UINT height, D3DSWAPEFFECT swapEffect, UINT presentationInterval, D3DResource ** ppSwapChainResource) argument
612 GetBlitRTTexture(UINT width, UINT height, D3DFORMAT format, D3DResource **ppTextureResource) argument
649 GetBlitOSPSurface(UINT width, UINT height, D3DFORMAT fmt, D3DResource **ppSurfaceResource) argument
678 GetLockableRTSurface(UINT width, UINT height, D3DFORMAT format, D3DResource **ppSurfaceResource) argument
748 GetStockTextureResource(UINT width, UINT height, BOOL isRTT, BOOL isOpaque, D3DFORMAT *pFormat , DWORD dwUsage, D3DResource **ppTextureResource) argument
[all...]

Completed in 92 milliseconds

1234567891011>>