Searched refs:width (Results 126 - 150 of 1066) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/solaris/native/sun/awt/medialib/
H A Dmlib_v_ImageCopy.c77 mlib_s32 width; /* width in bytes of src and dst */ local
92 width = mlib_ImageGetWidth(dst) * mlib_ImageGetChannels(dst);
102 size = height * (width >> 3);
129 mlib_ImageCopy_bit_al(sa, da, width, s_offset);
135 mlib_ImageCopy_bit_na(sa, da, width, s_offset, d_offset);
145 width *= 2;
149 width *= 4;
152 width *= 8;
160 size = height * width;
[all...]
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/
H A DIIOTests.java135 protected static BufferedImage createBufferedImage(int width, argument
141 image = new BufferedImage(width, height, hasAlpha ?
147 for (int x = 0; x < width; x++) {
163 g.fillRect(0, 0, width, height);
166 g.fillOval(2, 2, width-4, height-4);
168 g.fillOval(4, 4, width-8, height-8);
170 g.fillRect(8, 8, width-16, height-16);
172 g.drawLine(0, 0, width, height);
173 g.drawLine(0, height, width, 0);
189 g.drawImage(photo, 0, 0, width, heigh
[all...]
/openjdk7/jdk/src/share/demo/jfc/TableExample/
H A DOldJTable.java71 public TableColumn addColumn(Object columnIdentifier, int width) { argument
72 return addColumn(columnIdentifier, width, null, null, null);
81 public TableColumn addColumn(Object columnIdentifier, int width, argument
84 return addColumn(columnIdentifier, width, renderer, editor, null);
87 public TableColumn addColumn(Object columnIdentifier, int width, argument
99 m.getColumnCount()-1, width, renderer, editor);
190 public TableColumn addColumn(int modelColumn, int width) { argument
191 return addColumn(modelColumn, width, null, null);
199 * Creates a new column with <I>modelColumn</I>, <I>width</I>,
219 * @param width Th
226 addColumn(int modelColumn, int width, TableCellRenderer renderer, TableCellEditor editor) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DWindowDimensions.java39 public WindowDimensions(int x, int y, int width, int height, boolean isClient) { argument
40 this(new Rectangle(x, y, width, height), null, isClient);
87 size.width-(insets.left+insets.right),
100 public void setClientSize(int width, int height) { argument
101 size = new Dimension(width, height);
109 public void setSize(int width, int height) { argument
110 size = new Dimension(width, height);
124 res.width += (insets.left + insets.right);
150 if (size.width < (insets.left+insets.right)) {
151 size.width
[all...]
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DWritableRaster.java118 * @throws RasterFormatException if <code>aRegion</code> has width
120 * <code>aRegion.x + aRegion.width</code> or
158 return createWritableChild(minX,minY,width,height,
168 * <p> The parentX, parentY, width and height parameters form a
227 if ((parentX+w < parentX) || (parentX+w > this.width + this.minX)) {
228 throw new RasterFormatException("(parentX + width) is outside raster");
236 // width and height as that for the parent, since it represents
237 // the physical layout of the pixel data. The child Raster's width
309 int width = inRaster.getWidth();
312 (dstOffX + width > thi
[all...]
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/wbmp/
H A DWBMPImageReaderSpi.java97 int width = ReaderUtil.readMultiByteInteger(stream);
100 if (width <= 0 || height <= 0) {
115 return (width < MAX_WBMP_WIDTH) && (height < MAX_WBMP_HEIGHT);
121 long scanSize = (width / 8) + ((width % 8) == 0 ? 0 : 1);
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DX11FontScaler_md.c55 int CreatePixmapAndGC (int width, int height) argument
61 if (width < 100) {
62 width = 100;
68 pixmapWidth = width;
95 int width = ximage->width; local
101 for (column = 0; column < width; ++column) {
265 int width, height, direction, ascent, descent; local
280 width = xcs.rbearing - xcs.lbearing;
282 imageSize = width*heigh
[all...]
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DXRMaskBlit.java69 Region clip, int srcx, int srcy, int dstx, int dsty, int width,
71 if (width <= 0 || height <= 0) {
86 uploadMask(width, height, maskscan, maskoff, mask);
88 srcx, srcy, 0, 0, dstx, dsty, width, height);
89 maskBuffer.getMaskBuffer().clearUploadMask(maskPict, width, height);
68 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
/openjdk7/jdk/src/solaris/native/sun/java2d/loops/
H A Dvis_AlphaMaskFill.c62 mlib_s32 width,
96 for (i = i0; i <= width - 2; i += 2) {
115 if (i < width) {
151 mlib_s32 width,
169 for (i = 0; i < width; i++) {
184 jint width,
238 if (rasScan == 4*width && maskScan == width) {
239 width *= height;
244 IntArgbAlphaMaskFill_line(rasBase, pMask, width, cnstARGB
60 IntArgbAlphaMaskFill_line(mlib_f32 *dst_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_f32 cnstARGB0, mlib_s32 *log_val, mlib_u8 *mul8_cnstA, mlib_u8 *mul8_dstF, mlib_u8 *mul8_tbl) argument
149 IntArgbAlphaMaskFill_A1_line(mlib_f32 *dst_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_f32 cnstARGB0, mlib_s32 *log_val, mlib_u8 *mul8_cnstA, mlib_u8 *mul8_dstF, mlib_u8 *mul8_tbl) argument
180 IntArgbAlphaMaskFill(void *rasBase, jubyte *pMask, jint maskOff, jint maskScan, jint width, jint height, jint fgColor, SurfaceDataRasInfo *pRasInfo, NativePrimitive *pPrim, CompositeInfo *pCompInfo) argument
269 FourByteAbgrAlphaMaskFill(void *rasBase, jubyte *pMask, jint maskOff, jint maskScan, jint width, jint height, jint fgColor, SurfaceDataRasInfo *pRasInfo, NativePrimitive *pPrim, CompositeInfo *pCompInfo) argument
416 IntRgbAlphaMaskFill_line(mlib_f32 *dst_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_f32 cnstARGB0, mlib_u8 *mul8_cnstA, mlib_u8 *mul8_dstF, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
483 IntRgbAlphaMaskFill_A1_line(mlib_f32 *dst_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_d64 cnstARGB, mlib_s32 dstF, mlib_s32 dstA) argument
504 IntRgbAlphaMaskFill(void *rasBase, jubyte *pMask, jint maskOff, jint maskScan, jint width, jint height, jint fgColor, SurfaceDataRasInfo *pRasInfo, NativePrimitive *pPrim, CompositeInfo *pCompInfo) argument
603 IntBgrAlphaMaskFill(void *rasBase, jubyte *pMask, jint maskOff, jint maskScan, jint width, jint height, jint fgColor, SurfaceDataRasInfo *pRasInfo, NativePrimitive *pPrim, CompositeInfo *pCompInfo) argument
702 ThreeByteBgrAlphaMaskFill(void *rasBase, jubyte *pMask, jint maskOff, jint maskScan, jint width, jint height, jint fgColor, SurfaceDataRasInfo *pRasInfo, NativePrimitive *pPrim, CompositeInfo *pCompInfo) argument
[all...]
H A Dvis_ByteGray.c60 if (width <= 8) {
65 for (i = 0; i < width; i++) {
75 if (srcScan == 2*width && dstScan == width) {
76 width *= height;
85 dst_end = dst + width;
137 if (width < 8) {
142 for (i = 0; i < width; i++) {
153 if (srcScan == width && dstScan == 4*width) {
[all...]
H A Dvis_AlphaMaskBlit.c60 mlib_s32 width,
94 for (i = i0; i <= width - 2; i += 2) {
117 if (i < width) {
154 mlib_s32 width,
171 for (i = 0; i < width; i++) {
225 if (dstScan == 4*width && srcScan == dstScan && maskScan == width) {
226 width *= height;
232 width, log_val, mul8_extra,
240 if (dstScan == 4*width
57 IntArgbToIntArgbAlphaMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
151 IntArgbToIntArgbAlphaMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
376 IntArgbToIntRgbAlphaMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
457 IntArgbToIntRgbAlphaMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
615 IntRgbToIntArgbAlphaMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
705 IntRgbToIntArgbAlphaMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_tbl) argument
932 IntArgbToIntBgrAlphaMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
1020 IntArgbToIntBgrAlphaMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
1182 IntRgbToIntRgbAlphaMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
1248 IntRgbToIntBgrAlphaMaskBlit_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
1331 IntRgbToIntRgbAlphaMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
1399 IntRgbToIntBgrAlphaMaskBlit_A1_line(mlib_f32 *dst_ptr, mlib_f32 *src_ptr, mlib_u8 *pMask, mlib_s32 width, mlib_s32 *log_val, mlib_u8 *mul8_extra, mlib_u8 *mul8_srcF, mlib_u8 *mul8_tbl) argument
[all...]
H A Dvis_IntBgr.c74 if (dstScan == 4*width && srcScan == 4*width) {
75 width *= height;
95 for (i = i0; i <= (mlib_s32)width - 2; i += 2) {
100 if (i < width) {
125 mlib_u32 *dst_end = dst + width;
164 if (dstScan == 4*width && srcScan == 4*width) {
165 width *= height;
182 for (i = i0; i <= (mlib_s32)width
847 int width, height; local
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaMenuPainter.java142 public void paintMenuBarBackground(final Graphics g, final int width, final int height, final JComponent c) { argument
144 g.fillRect(0, 0, width, height);
145 menuBarPainter.get().paintBorder(null, g, 0, 0, width, height);
148 public void paintSelectedMenuTitleBackground(final Graphics g, final int width, final int height) { argument
149 selectedMenuBarItemPainter.get().paintBorder(null, g, -1, 0, width + 2, height);
152 public void paintSelectedMenuItemBackground(final Graphics g, final int width, final int height) { argument
153 selectedMenuItemPainter.get().paintBorder(null, g, 0, 0, width, height);
169 viewRect.width -= (i.right + viewRect.x);
261 // The keyStrings should all line up, so always adjust the width by the same amount
269 SwingUtilities2.drawString(c, g, keyString, acceleratorRect.x + acceleratorRect.width
[all...]
H A DAquaTabbedPaneTabState.java126 // if top or bottom, width is hardocoded
132 rightScrollTabRect.width = FIXED_SCROLL_TAB_LENGTH;
133 leftScrollTabRect.width = FIXED_SCROLL_TAB_LENGTH;
139 // sja fix what do we do if remaining width is <0??
141 // we could try to center it based on width of tabs, but for now
177 if ((verticalTabRuns ? firstRect.height : firstRect.width) > remainingSpace) {
183 firstRect.width = 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) > remainingSpac
[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
373 // rasline[width] == pixel at coordinate (x+width, y)
376 width += x; // same as (width -= rasbeg)
380 // width -= 0; // same as (width -= rasbeg)
384 // rasline[width]
638 int width; field in class:GifFrame
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/
H A DOrientableFlowLayout.java150 dim.width = Math.max(dim.width, cDim.width);
159 dim.width += insets.left + insets.right + vHGap*2;
185 dim.width = Math.max(dim.width, cDim.width);
194 dim.width += insets.left + insets.right + vHGap*2;
227 c.resize(cDim.width, cDim.height);
234 colWidth = Math.max(colWidth, cDim.width);
273 moveComponents(Container target, int x, int y, int width, int height, int colStart, int colEnd) argument
[all...]
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Util/src/com/sun/hotspot/igv/util/
H A DExtendedSatelliteComponent.java82 double sx = bounds.width > 0 ? (double) size.width / bounds.width : 0.0;
83 double sy = bounds.width > 0 ? (double) size.height / bounds.height : 0.0;
86 int vw = (int) (scale * bounds.width);
88 int vx = (size.width - vw) / 2;
111 (int) ((double) viewRectangle.width * scale / zoomFactor),
117 gr.drawRect(window.x, window.y, window.width - 1, window.height - 1);
154 double sx = bounds.width > 0 ? (double) size.width / bound
[all...]
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/
H A DExtendedSatelliteComponent.java83 double sx = bounds.width > 0 ? (double) size.width / bounds.width : 0.0;
84 double sy = bounds.width > 0 ? (double) size.height / bounds.height : 0.0;
87 int vw = (int) (scale * bounds.width);
89 int vx = (size.width - vw) / 2;
114 (int) ((double) viewRectangle.width * scale / zoomFactor),
120 gr.drawRect(window.x, window.y, window.width - 1, window.height - 1);
157 double sx = bounds.width > 0 ? (double) size.width / bound
[all...]
/openjdk7/jdk/src/macosx/native/sun/awt/
H A DCImage.m36 (jint *srcPixels, jint *dstPixels, int width, int height)
41 for (x = 0; x < width; x++) {
49 srcPixels += width; // TODO: use explicit scanStride
50 dstPixels += width;
55 (NSImage *srcImage, jint *dstPixels, int width, int height)
58 CGContextRef cgRef = CGBitmapContextCreate(dstPixels, width, height, 8, width * 4, colorspace, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host);
64 NSRect rect = NSMakeRect(0, 0, width, height);
79 (JNIEnv *env, jclass klass, jintArray buffer, jint width, jint height)
86 pixelsWide:width
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifGraphicsUtils.java86 * (<b>x</b>, <b>y</b>, <b>width</b>, <b>height</b>).
95 int width, int height, int justification) {
96 drawStringInRect(null, g, aString, x, y, width, height, justification);
100 int x, int y, int width, int height,
117 if (drawWidth > width) {
118 drawWidth = width;
120 startX = x + (width - drawWidth) / 2;
123 if (drawWidth > width) {
124 drawWidth = width;
126 startX = x + width
94 drawStringInRect(Graphics g, String aString, int x, int y, int width, int height, int justification) argument
99 drawStringInRect(JComponent c, Graphics g, String aString, int x, int y, int width, int height, int justification) argument
451 drawMenuBezel(Graphics g, Color background, int x, int y, int width, int height) argument
[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, heigh
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...]
/openjdk7/jdk/src/share/classes/javax/swing/tree/
H A DAbstractLayoutCache.java200 * Returns the preferred width for the passed in region.
205 * the preferred width for all the nodes
210 * @return the preferred width for the passed in region
216 // Get the width
234 int width;
237 width = pBounds.x + pBounds.width;
239 return width;
243 width = 0;
248 width
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DGraphics2D.java263 * A pen with a width of one pixel does not need to fall
301 * <code>BasicStroke</code> with a width of 1 and no dashing and the
432 * <code>width&nbsp;+&nbsp;1</code> pixels wide
438 * @param width the width of the rectangle to be drawn.
445 public void draw3DRect(int x, int y, int width, int height, argument
455 //drawLine(x + 1, y, x + width - 1, y);
456 fillRect(x + 1, y, width - 1, 1);
458 //drawLine(x + 1, y + height, x + width, y + height);
459 fillRect(x + 1, y + height, width,
482 fill3DRect(int x, int y, int width, int height, boolean raised) argument
[all...]
/openjdk7/jdk/src/share/native/sun/awt/medialib/
H A Dmlib_ImageCreate.c45 * mlib_s32 width,
52 * mlib_s32 width,
80 * width image width in pixels
86 * w width of the sub-image
129 mlib_s32 width,
134 mlib_s32 wb; /* width in bytes */
142 image -> width = width;
156 if (width <
126 mlib_ImageSet(mlib_image *image, mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height, mlib_s32 stride, const void *data) argument
230 mlib_ImageCreateStruct(mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height, mlib_s32 stride, const void *data) argument
256 mlib_ImageCreate(mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height) argument
376 mlib_s32 width; /* for parent image */ local
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicRadioButtonUI.java121 viewRect.width = size.width - (i.right + viewRect.x);
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 ) {
234 prefViewRect.width = Short.MAX_VALUE;
236 prefIconRect.x = prefIconRect.y = prefIconRect.width = prefIconRect.height = 0;
237 prefTextRect.x = prefTextRect.y = prefTextRect.width = prefTextRect.height = 0;
248 int x2 = Math.max(prefIconRect.x + prefIconRect.width,
[all...]

Completed in 92 milliseconds

1234567891011>>