Searched refs:width (Results 226 - 250 of 1066) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalInternalFrameTitlePane.java217 // Compute width.
218 int width = 30;
220 width += 21;
223 width += 16 + (frame.isClosable() ? 10 : 4);
226 width += 16 + (frame.isMaximizable() ? 2 :
238 width += (title_w < subtitle_w) ? title_w : subtitle_w;
241 width += title_w;
261 return new Dimension(width, height);
313 int width = getWidth();
328 g.fillRect(0, 0, width, heigh
[all...]
H A DMetalComboBoxButton.java118 int width = getWidth() - (insets.left + insets.right);
121 if ( height <= 0 || width <= 0 ) {
127 int right = left + (width - 1);
145 iconLeft = (left + (width - 1)) - iconWidth;
159 g.drawRect( left - 1, top - 1, width + 3, height + 1 );
198 int cWidth = width - (insets.right + iconWidth);
220 ret.width = insets.left + getComboIcon().getIconWidth() + insets.right;
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DBufferedImageGraphicsConfig.java70 int width, height; field in class:BufferedImageGraphicsConfig
81 this.width = bufImg.getWidth();
101 public BufferedImage createCompatibleImage(int width, int height) { argument
102 WritableRaster wr = raster.createCompatibleWritableRaster(width, height);
171 return new Rectangle(0, 0, width, height);
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DX11PMBlitLoops.c39 jint width, jint height)
47 if (width <= 0 || height <= 0) {
77 srcBounds.x2 = srcx + width;
83 span.x2 = dstx + width;
133 jint width, jint height)
141 if (width <= 0 || height <= 0) {
173 srcBounds.x2 = srcx + width;
179 dstBounds.x2 = dstx + width;
189 width = srcBounds.x2 - srcBounds.x1;
195 srcx, srcy, width, heigh
33 Java_sun_java2d_x11_X11PMBlitLoops_nativeBlit(JNIEnv *env, jobject joSelf, jlong srcData, jlong dstData, jlong gc, jobject clip, jint srcx, jint srcy, jint dstx, jint dsty, jint width, jint height) argument
127 Java_sun_java2d_x11_X11PMBlitBgLoops_nativeBlitBg(JNIEnv *env, jobject joSelf, jlong srcData, jlong dstData, jlong xgc, jint pixel, jint srcx, jint srcy, jint dstx, jint dsty, jint width, jint height) argument
218 int width; local
[all...]
/openjdk7/jdk/test/java/awt/Component/isLightweightCrash/
H A DStubPeerCrash.java87 public void repaint(long tm, int x, int y, int width, int height){}; argument
89 public void setBounds(int x, int y, int width, int height, int op){}; argument
113 public Image createImage(int width, int height){return null;}; argument
114 public VolatileImage createVolatileImage(int width, int height){return null;}; argument
187 public void reshape(int x, int y, int width, int height){}; argument
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DXRBackend.java48 public int createPixmap(int drawable, int depth, int width, int height); argument
57 int width, int height, int dstx, int dsty);
61 int width, int height, int maskOff,
81 int x, int y, int width, int height);
88 int dstX, int dstY, int width, int height);
56 copyArea(int src, int dst, long gc, int srcx, int srcy, int width, int height, int dstx, int dsty) argument
59 putMaskImage(int drawable, long gc, byte[] imageData, int sx, int sy, int dx, int dy, int width, int height, int maskOff, int maskScan, float ea) argument
80 renderRectangle(int dst, byte op, XRColor color, int x, int y, int width, int height) argument
86 renderComposite(byte op, int src, int mask, int dst, int srcX, int srcY, int maskX, int maskY, int dstX, int dstY, int width, int height) argument
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJViewport.java400 dx = positionAdjustment(getWidth(), contentRect.width, contentRect.x);
418 if (viewPosition.x + extent.width > viewSize.width) {
419 viewPosition.x = Math.max(0, viewSize.width - extent.width);
424 if (extent.width > viewSize.width) {
425 viewPosition.x = viewSize.width - extent.width;
427 viewPosition.x = Math.max(0, Math.min(viewSize.width
[all...]
H A DTablePrintable.java48 * the page. (Note that width and height are scaled equally, ensuring that the
83 * when only the printable width is changed between pages. This is because when
108 /** To save multiple calculations of total column width. */
270 // fit the table's entire width on the page
301 // in findNextClip, just pass a width and height that have already
343 tempRect.width = imgWidth;
348 // the entire width
355 int diff = (imgWidth - clip.width) / 2;
367 hclip.width = clip.width;
[all...]
H A DSpringLayout.java52 * the allowable width of a component
237 * Specifies the width of a component's bounding rectangle.
261 * <code>width</code>, and <code>height</code> properties.
321 private Spring width; field in class:SpringLayout.Constraints
345 * The <code>height</code> and <code>width</code> springs
359 * <code>x</code>, <code>y</code>, <code>width</code>,
368 * @param width the spring value for the <code>width</code> property
371 public Constraints(Spring x, Spring y, Spring width, Spring height) { argument
374 setWidth(width);
595 setWidth(Spring width) argument
958 addInsets(int width, int height, Container p) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicTextFieldUI.java117 public int getBaseline(JComponent c, int width, int height) { argument
118 super.getBaseline(c, width, height);
133 fieldView, width - insets.left - insets.right,
224 int max = Math.max(hspan, bounds.width);
226 int extent = Math.min(max, bounds.width - 1);
232 if (hspan < bounds.width) {
234 int slop = bounds.width - 1 - hspan;
257 bounds.width -= slop;
261 bounds.width -= slop;
266 bounds.width
[all...]
H A DBasicSliderUI.java320 public int getBaseline(JComponent c, int width, int height) { argument
321 super.getBaseline(c, width, height);
408 int labelBaseline = label.getBaseline(pref.width,
473 d.width = insetCache.left + insetCache.right;
474 d.width += focusInsets.left + focusInsets.right;
475 d.width += trackRect.width + tickRect.width + labelRect.width;
493 d.width
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaSplitPaneDividerUI.java100 if (size.width > maxSize) {
101 final int diff = size.width - maxSize;
103 size.width = maxSize;
105 if (size.width < 4) doPaint = false;
110 painter.paint(g, splitPane, x, y, size.width, size.height);
188 if (size.width > maxSize) {
189 final int diff = size.width - maxSize;
224 public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) { argument
231 g2d.fillRect(x, y, width, height);
233 g2d.drawLine(x, y, x + width,
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/border/
H A DBevelBorder.java109 * @param width the width of the painted border
112 public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { argument
114 paintRaisedBevel(c, g, x, y, width, height);
117 paintLoweredBevel(c, g, x, y, width, height);
240 int width, int height) {
243 int w = width;
269 int width, int height) {
272 int w = width;
239 paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height) argument
268 paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height) argument
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DLoweredBorder.java69 * and had a width of <code>width</code> and a height of
79 * @param width The width of the region to paint. Note that in the case of
86 protected void doPaint(Graphics2D g, JComponent c, int width, int height, argument
116 if (width != IMG_SIZE || height != IMG_SIZE){
117 ImageScalingHelper.paint(g,0,0,width,height,img2, INSETS, INSETS,
173 * @param width the width of the painted border
176 public void paintBorder(Component c, Graphics g, int x, int y, int width, argument
[all...]
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWListPeer.java89 native void addItems(String[] items, int index, int width); argument
108 d.width = Math.max(d.width, getMaxWidth() + 20);
140 int width = 0;
143 width = fm.stringWidth(items[i]);
144 if (width > maxWidth) {
145 maxWidth = width;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifComboBoxUI.java81 size.width += insets.left + insets.right + buttonSize;
83 cachedMinimumSize.setSize( size.width, size.height );
164 r.x += r.width + HORIZ_MARGIN + 1;
167 r.width = 1;
170 g.fillRect(r.x,r.y,r.width,r.height);
173 g.fillRect(r.x,r.y,r.width,r.height);
193 bounds.width,d.height);
208 b.width -= (in.left + in.right);
212 b.x = b.x + b.width - HORIZ_MARGIN - arrowIcon.getIconWidth();
218 b.width
[all...]
/openjdk7/jdk/src/windows/native/sun/font/
H A Dlcdglyph.c189 unsigned short width; local
270 width = (unsigned short)glyphMetrics.gmBlackBoxX;
274 if (width <= 0 || height == 0) {
286 * The extra pixels of width are used as follows :
294 * stated image width for the blitting loops.
301 * the blitting still can use the same width.
302 * Consequently the width that is specified for the glyph is one less
305 * position at which GDI renders, and the declared width of the glyph
312 width+=3;
314 width
[all...]
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DRectangle2D.java93 * The width of this <code>Rectangle2D</code>.
97 public float width; field in class:Rectangle2D.Float
122 * @param w the width of the newly constructed
153 return (double) width;
169 return (width <= 0.0f) || (height <= 0.0f);
180 * @param w the width of this <code>Rectangle2D</code>
187 this.width = w;
198 this.width = (float) w;
209 this.width = (float) r.getWidth();
229 if (this.width <
330 public double width; field in class:Rectangle2D.Double
[all...]
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DBandedSampleModel.java73 * will be the same as the width. Each band will be stored in
76 * @param w The width (in pixels) of the region of
96 * @param w The width (in pixels) of the region of
117 * width and height. The new BandedSampleModel will have the same
122 * @param w the width of the resulting <code>BandedSampleModel</code>
125 * width and height.
173 return new BandedSampleModel(this.dataType, width, height,
257 if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) {
374 if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) {
402 * @param w The width o
[all...]
H A DSinglePixelPackedSampleModel.java98 * @param w The width (in pixels) of the region of the
127 * @param w The width (in pixels) of the region of
202 long size = scanlineStride * (height-1) + width;
208 * width and height. The new SinglePixelPackedSampleModel will have the
211 * @param w the width of the resulting <code>SampleModel</code>
214 * specified width and height.
318 return new SinglePixelPackedSampleModel(this.dataType, width, height,
363 if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) {
430 if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) {
455 * @param w The width o
[all...]
/openjdk7/jdk/src/solaris/native/sun/java2d/loops/
H A Dvis_XorBlit.c100 if (width < 8) {
105 if (dstScan == 4*width && srcScan == dstScan) {
106 width *= height;
117 mlib_s32 size = width;
159 if (width < 8) {
164 if (dstScan == 4*width && srcScan == dstScan) {
165 width *= height;
176 mlib_s32 size = width;
218 if (width < 8) {
224 if (dstScan == 4*width
[all...]
H A Dvis_IntRgb.c49 if (dstScan == 4*width && srcScan == 4*width) {
50 width *= height;
68 for (i = i0; i <= (mlib_s32)width - 2; i += 2) {
74 if (i < width) {
97 mlib_f32 *dst_end = dst + width;
165 if (width < 16) {
170 for (i = 0; i < width; i++) {
180 if (srcScan == 3*width && dstScan == 4*width) {
573 int width, height; local
[all...]
H A Dvis_UshortGray.c51 if (width <= 8) {
56 for (i = 0; i < width; i++) {
67 if (srcScan == width && dstScan == 2*width) {
68 width *= height;
78 dst_end = dst + width;
132 if (width < 8) {
137 for (i = 0; i < width; i++) {
148 if (srcScan == 2*width && dstScan == 4*width) {
[all...]
H A Dvis_IntArgbBm.c48 if (dstScan == 4*width && srcScan == 4*width) {
49 width *= height;
69 for (i = i0; i <= (mlib_s32)width - 2; i += 2) {
85 if (i < width) {
104 if (dstScan == 4*width && srcScan == 4*width) {
105 width *= height;
124 for (i = i0; i <= (mlib_s32)width - 2; i += 2) {
137 if (i < width) {
499 IntArgbBmAlphaMaskFill(void *rasBase, jubyte *pMask, jint maskOff, jint maskScan, jint width, jint height, jint fgColor, SurfaceDataRasInfo *pRasInfo, NativePrimitive *pPrim, CompositeInfo *pCompInfo) argument
566 int width, height; local
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXScrollbar.java74 int width, height; // Dimensions of the visible part of the parent window field in class:XScrollbar
76 // equal to (width, height) for vertical,
120 public void setSize(int width, int height) { argument
121 if (log.isLoggable(PlatformLogger.FINER)) log.finer("Setting scroll bar " + this + " size to " + width + "x" + height);
122 this.width = width;
134 int x = width / 2 - getArrowWidth()/2;
162 * @param width the width of the scrollbar
178 buffer = graphicsConfig.createCompatibleImage(width, heigh
[all...]

Completed in 134 milliseconds

1234567891011>>