Searched refs:width (Results 151 - 175 of 1066) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DIntegerInterleavedRaster.java55 /** A cached copy of minX + width for use in bounds checks. */
129 this.maxX = minX + width;
252 * @param width Width of the pixel rectangle.
326 int width = inRaster.getWidth();
329 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) {
334 setDataElements(dstOffX, dstOffY, width, height, inRaster);
345 * @param width The number of pixels to store horizontally
350 int width, int height,
353 if (width <= 0 || height <= 0) {
379 System.arraycopy(tdata, srcOffset, data, dstOffset, width);
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...]
H A DIntegerComponentRaster.java88 /** A cached copy of minX + width for use in bounds checks. */
169 this.maxX = minX + width;
312 * @param width Width of the pixel rectangle.
396 int width = inRaster.getWidth();
399 (dstOffX + width > this.maxX) || (dstOffY + height > this.maxY)) {
403 setDataElements(dstOffX, dstOffY, width, height, inRaster);
414 * @param width The number of pixels to store horizontally
419 int width, int height,
422 if (width <= 0 || height <= 0) {
453 width *
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...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DAnnotation.java46 private int width; field in class:Annotation
105 /** Computes width and height for this Annotation. Retrieve the
107 because the width and height only need to be recomputed if the
110 width = 0;
116 width = Math.max(width, (int) bounds.getWidth());
123 return width;
152 return new Rectangle(x, y, width, height);
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaPopupMenuUI.java76 g2d.drawRoundRect(-2, -2, popupBounds.width + 3, popupBounds.height + 3, 12, 12);
103 if (invokerBounds.x + invokerBounds.width < popupBounds.x + OVERLAP_SLACK) {
115 if (popupBounds.x + popupBounds.width < invokerBounds.x + OVERLAP_SLACK) {
119 g2d.fillRect(popupBounds.width - 6, -2, 8, 8);
123 g2d.fillRect(popupBounds.width - 6, popupBounds.height - 6, 8, 8);
131 g2d.fillRect(-2, -2, popupBounds.width + 4, 8);
H A DAquaProgressBarUI.java180 final int width = progressBar.getWidth() - (i.right + i.left);
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
238 height = width;
239 width = oldH;
246 return new Point(x + Math.round(width /
[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/demo/applets/GraphicsTest/
H A DGraphicsTest.java220 arcSteps(g, 3, 0, 0, r.width, r.height, Color.orange, Color.blue);
224 r.width / 4,
226 r.width / 2,
233 (r.width * 3) / 8,
235 r.width / 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,
[all...]
/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/javax/swing/plaf/synth/
H A DSynthSliderUI.java237 public int getBaseline(JComponent c, int width, int height) { argument
241 if (width < 0 || height < 0) {
274 return centerY + label.getBaseline(pref.width, pref.height);
297 label.getBaseline(pref.width, pref.height);
310 Dimension d = new Dimension(contentRect.width, contentRect.height);
314 d.width = 200;
317 d.width += i.left + i.right;
328 Dimension d = new Dimension(contentRect.width, contentRect.height);
332 d.width = thumbRect.width
[all...]
H A DSynthProgressBarUI.java51 private int tileWidth; //the width of each tile
153 public int getBaseline(JComponent c, int width, int height) { argument
154 super.getBaseline(c, width, height);
245 int x = 0, y = 0, width = 0, height = 0;
253 width = (int)(percentComplete * (pBar.getWidth()
261 x = pBar.getWidth() - pBarInsets.right - width
266 width = pBar.getWidth()
284 width = boxRect.width - progressPadding - progressPadding;
295 g.clipRect(x, y, width, heigh
[all...]
/openjdk7/jdk/src/share/classes/sun/print/
H A DPeekGraphics.java419 * @param width the width 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);
435 * @param width the width 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);
492 * @param width the width 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/native/sun/font/
H A DCGGlyphImages.m77 const size_t bytesPerPixel, const int width, const int height)
79 printf("| %s: (%d, %d)\n", msg, width, height);
81 if (width > 80 || height > 80) {
86 size_t i, j = 0, k, size = width * height;
100 for (x = 0; x < width; x++) {
107 for (x = 0; x < width; x++) {
110 p += pixels[(y * width + x) * bytesPerPixel + k];
127 const size_t pixelSize = image->rowBytes / image->width;
128 const size_t width = image->width;
[all...]
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/bmp/
H A DBMPImageReader.java129 /** The original image width. */
130 private int width; field in class:BMPImageReader
193 return width;
239 width = iis.readShort();
242 width = iis.readInt();
246 metadata.width = width;
542 width, height,
544 numBands * width,
550 width, heigh
[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, heigh
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/solaris/native/sun/java2d/loops/
H A Dvis_SrcOverMaskBlit.c57 mlib_s32 width,
84 for (i = i0; i <= width - 2; i += 2) {
107 if (i < width) {
144 mlib_s32 width,
170 for (i = i0; i <= width - 2; i += 2) {
191 if (i < width) {
223 if (dstScan == 4*width && srcScan == dstScan && maskScan == width) {
224 width *= height;
230 width, mul8_extr
54 IntArgbToIntArgbSrcOverMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
141 IntArgbToIntArgbSrcOverMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
347 IntArgbToIntRgbSrcOverMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
410 IntArgbToIntBgrSrcOverMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
498 IntArgbToIntRgbSrcOverMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
557 IntArgbToIntBgrSrcOverMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
[all...]
H A Djava2d_Mlib.c40 mlib_s32 xsize = width*ANYTYPE##PixelStride; \
80 mlib_s32 width = hix - lox; \
86 if (width <= W_LEVEL_##NCHAN) { \
96 width, height, dstScan, dstBase); \
122 mlib_s32 width = hix - lox; \
132 if (width < 8) { \
142 width, height, dstScan, dstBase); \
161 juint width, \
174 if (width < 8*sizeof(ANYTYPE##DataType)) { \
185 width, heigh
[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);
159 texWidth = (width <= texMax) ? width
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);
303 for (w = 1; width > w; w <<= 1);
305 width = w;
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, heigh
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...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXScrollPanePeer.java100 int w = width - vsbSpace;
166 hsbSpace = (cSize.width <= (width - 2*MARGIN) ? 0 : SCROLLBAR);
170 hsbSpace = (cSize.width <= (width - SCROLLBAR - 2*MARGIN) ? 0 : SCROLLBAR);
191 int vis = width - (2*MARGIN) - vsbSpace;
192 int max = Math.max(cSize.width, vis);
195 hsb.setSize(width-vsbSpace, hsbSpace-SCROLLBAR_INSET);
237 width - (2*MARGIN) - vsbSpace,
367 int w = width
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/asm/sparc/
H A DSPARCFloatRegister.java44 public int getNumber(int width) { argument
45 switch (width) {
58 throw new RuntimeException("Invalid floating point width supplied");
/openjdk7/jdk/src/share/classes/javax/swing/
H A DOverlayLayout.java142 size.width += insets.left + insets.right;
162 size.width += insets.left + insets.right;
184 size.width += insets.left + insets.right;
234 alloc.width -= in.left + in.right;
236 SizeRequirements.calculateAlignedPositions(alloc.width, xTotal,
269 xChildren[i] = new SizeRequirements(min.width, typ.width,
270 max.width,
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DSmartGridLayout.java120 int width = 0;
127 width += computeColumnWidth(column);
131 width += (xGap * (columns - 1)) + insets.right + insets.left;
133 return new Dimension(width, height);
171 int width = layoutGrid[columnNum][row].getPreferredSize().width;
172 if (width > maxWidth) {
173 maxWidth = width;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicPopupMenuSeparatorUI.java55 g.drawLine( 0, 0, s.width, 0 );
58 g.drawLine( 0, 1, s.width, 1 );
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalPopupMenuSeparatorUI.java56 g.drawLine( 0, 1, s.width, 1 );
59 g.drawLine( 0, 2, s.width, 2 );
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DToolBarSeparatorPainter.java61 protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) { argument
67 for (int i=INSET; i<=width-INSET; i+=SPACE) {

Completed in 50 milliseconds

1234567891011>>