/openjdk7/jdk/src/solaris/classes/sun/print/ |
H A D | CUPSPrinter.java | 176 float length, width, x, y, w, h; 180 // media width and length 181 width = (float)(pageSizes[i*6]/PRINTER_DPI); 190 width, length); 198 if ((width > 0.0) && (length > 0.0)) { 199 new MediaSize(width, length, 213 if (width > 0 && length > 0) { 214 mpa = new MediaPrintableArea(0, 0, width, length,
|
/openjdk7/jdk/src/solaris/native/sun/java2d/loops/ |
H A D | mlib_v_ImageConstLogic.h | 55 mlib_s32 width, height, type, nchannels; \ 68 width = mlib_ImageGetWidth(dst); \ 75 width *= (2 * nchannels); \ 96 width *= nchannels; \ 120 width *= (4 * nchannels); \ 141 if ((width > stride) || (width > strided)) \ 162 if ((width == stride) && (width == strided) && ((width [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicTableUI.java | 450 r.x += Math.max(delta.width, r.width); 452 r.x -= delta.width; 1655 public int getBaseline(JComponent c, int width, int height) { argument 1656 super.getBaseline(c, width, height); 1690 private Dimension createTableSize(long width) { argument 1699 long tmp = Math.abs(width); 1709 * The minimum width is the sum of the minimum widths of each column. 1712 long width = 0; 1716 width [all...] |
H A D | BasicSpinnerUI.java | 559 public int getBaseline(JComponent c, int width, int height) { argument 560 super.getBaseline(c, width, height); 563 width = width - insets.left - insets.right; 565 if (width >= 0 && height >= 0) { 566 int baseline = editor.getBaseline(width, height); 888 Dimension size = new Dimension(editorD.width, editorD.height); 889 size.width += Math.max(nextD.width, previousD.width); 900 setBounds(Component c, int x, int y, int width, int height) argument [all...] |
H A D | BasicToolTipUI.java | 141 size.width - (insets.left + insets.right) - 6, 168 prefSize.width += (int) v.getPreferredSpan(View.X_AXIS) + 6; 171 prefSize.width += SwingUtilities2.stringWidth(c,fm,text) + 6; 182 d.width -= v.getPreferredSpan(View.X_AXIS) - v.getMinimumSpan(View.X_AXIS); 191 d.width += v.getMaximumSpan(View.X_AXIS) - v.getPreferredSpan(View.X_AXIS);
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | DefaultDesktopManager.java | 133 desktopBounds.width, desktopBounds.height); 159 setBoundsForFrame(f, r.x, r.y, r.width, r.height); 176 desktopIcon.setBounds(r.x, r.y, r.width, r.height); 226 if (f.getWidth() != desktopBounds.width || 229 desktopBounds.width, desktopBounds.height); 415 * @param newWidth the new width 429 g.drawRect( currentBounds.x, currentBounds.y, currentBounds.width-1, currentBounds.height-1); 450 setBoundsForFrame(f, currentBounds.x, currentBounds.y, currentBounds.width, currentBounds.height ); 495 return new Rectangle(0, 0, prefSize.width, prefSize.height); 512 int w = prefSize.width; [all...] |
H A D | JList.java | 210 * // We don't want the JList implementation to compute the width 592 fixedCellWidth = d.width; 602 * fixed width and height for cells. This can be {@code null} if there 620 * {@code ListUI} to compute the width/height of each cell, and there is a 646 * description: The cell prototype value, used to compute cell width and height. 667 * @return the fixed cell width 675 * Sets a fixed value to be used for the width of every cell in the list. 676 * If {@code width} is -1, cell widths are computed in the {@code ListUI} 684 * @param width the width t 693 setFixedCellWidth(int width) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalSliderUI.java | 176 trackRight = trackRect.width - 1; 180 trackLeft = (trackRect.width - getThumbOverhang()) - 182 trackRight = (trackRect.width - getThumbOverhang()) - 1; 215 trackRight = trackRect.width - 1; 219 trackLeft = (trackRect.width - getThumbOverhang()) - 221 trackRight = (trackRect.width - getThumbOverhang()) - 1; 258 middleOfThumb = thumbRect.x + (thumbRect.width / 2); 317 int w = paintRect.width; 321 int middleOfThumb = thumbRect.x + thumbRect.width / 2 - paintRect.x; 464 size.width [all...] |
H A D | MetalBumps.java | 61 public MetalBumps( int width, int height, argument 63 setBumpArea( width, height ); 86 setBumpArea( bumpArea.width, bumpArea.height ); 89 public void setBumpArea( int width, int height ) { argument 90 xBumps = width / 2;
|
H A D | MetalRadioButtonUI.java | 125 int w = size.width; 139 viewRect.width -= (i.right + viewRect.x); 155 g.fillRect(0,0, size.width, size.height); 216 textRect.width > 0 && textRect.height > 0 ) { 224 g.drawRect(t.x-1, t.y-1, t.width+1, t.height+1);
|
/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | CSSBorder.java | 114 * Return the border width for the given side. 117 int width = 0; 122 // of 'border-width' to be 0 (CSS2 8.5.3) 128 width = (int) bw.getValue(true); 130 return width; 205 int x, int y, int width, int height) { 217 int intWidth = width - (widths[RIGHT] + widths[LEFT]); 300 int end = (xAxis ? r.width : r.height); 311 int width = xAxis ? length : r.width; 204 paintBorder(Component c, Graphics g, int x, int y, int width, int height) argument [all...] |
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_Robot.cpp | 204 void AwtRobot::GetRGBPixels(jint x, jint y, jint width, jint height, jintArray pixelArray) argument 206 DASSERT(width > 0 && height > 0); 216 hbitmap = ::CreateCompatibleBitmap(hdcScreen, width, height); 231 VERIFY(::BitBlt(hdcMem, 0, 0, width, height, hdcScreen, x, y, 237 if (!IS_SAFE_SIZE_MUL(width, height)) throw std::bad_alloc(); 238 int numPixels = width*height; 260 pinfo->bmiHeader.biWidth = width; 416 JNIEnv *env, jobject self, jint x, jint y, jint width, jint height, jintArray pixelArray) 420 AwtRobot::GetRobot(self)->GetRGBPixels(x, y, width, height, pixelArray); 415 Java_sun_awt_windows_WRobotPeer_getRGBPixels( JNIEnv *env, jobject self, jint x, jint y, jint width, jint height, jintArray pixelArray) argument
|
/openjdk7/jdk/src/share/demo/applets/DitherTest/ |
H A D | DitherTest.java | 180 int width = canvas.getSize().width; 186 int pixels[] = new int[width * height]; 190 for (int i = 0; i < width; i++) { 194 applyMethod(c, xmethod, i, width, xvals); 198 applyMethod(c, xmethod, i, width, xvals); 209 return createImage(new MemoryImageSource(width, height, 210 ColorModel.getRGBdefault(), pixels, 0, width)); 304 int w = getSize().width;
|
/openjdk7/jdk/src/share/classes/sun/java2d/opengl/ |
H A D | OGLSurfaceData.java | 168 int width, int height); 172 int width, int height); 176 int width, int height); 263 private void initSurfaceNow(int width, int height) { argument 272 width, height); 279 width, height); 286 width, height); 307 protected void initSurface(final int width, final int height) { argument 324 initSurfaceNow(width, height); 165 initTexture(long pData, boolean isOpaque, boolean texNonPow2, boolean texRect, int width, int height) argument 169 initFBObject(long pData, boolean isOpaque, boolean texNonPow2, boolean texRect, int width, int height) argument 174 initPbuffer(long pData, long pConfigInfo, boolean isOpaque, int width, int height) argument
|
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/ |
H A D | XTrayIconPeer.java | 121 // than the fixed value. Centering is being done by "X" (when the parent's width 128 // If both the height and the width differ from the fixed size then WM 328 if (!(loc.x < screen.x || loc.x >= screen.x + screen.width || 520 TrayIconCanvas(TrayIcon target, int width, int height) { argument 521 super(width, height); 530 curW = autosize ? width : image.getWidth(observer); 540 int width, height; field in class:XTrayIconPeer.IconCanvas 543 IconCanvas(int width, int height) { argument 544 this.width = curW = width; 596 imageUpdate(final Image image, final int flags, int x, int y, int width, int height) argument [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/ |
H A D | SourceCodePanel.java | 63 private int width; field in class:SourceCodePanel.RowHeader 95 g.drawString(str, width - strWidth - LINE_NO_SPACE, ascent + rowHeight * i); 138 width = ICON_SIZE + 2 * LINE_NO_SPACE; 143 // Compute width based on whether we are drawing line numbers 144 width += GraphicsUtilities.getStringWidth(str, getFontMetrics(getFont())) + LINE_NO_SPACE; 146 // FIXME: add on width for all icons (breakpoint, current line, 148 Dimension d = new Dimension(width, numLines * getFontMetrics(getFont()).getHeight());
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/ |
H A D | LayerUI.java | 606 * @param width the width to get the baseline for 611 public int getBaseline(JComponent c, int width, int height) { argument 614 return l.getView().getBaseline(width, height); 616 return super.getBaseline(c, width, height); 711 * @param width the width of the region to be painted 716 public void paintImmediately(int x, int y, int width, int height, JLayer<? extends V> l) { argument 717 l.paintImmediately(x, y, width, height);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthMenuItemLayoutHelper.java | 198 textRect.width += getLeftTextExtraWidth(); 201 getLabelSize().setWidth(labelRect.width); 275 lr.getCheckRect().width = getCheckSize().getMaxWidth(); 278 lr.getAccRect().width = maxAccOrArrowWidth; 280 lr.getArrowRect().width = maxAccOrArrowWidth;
|
/openjdk7/jdk/src/share/classes/sun/awt/ |
H A D | EmbeddedFrame.java | 386 setBoundsPrivate(x, y, size.width, size.height); 422 * <code>width</code> and <code>height</code>. 439 * @param width the new <code>width</code> of this embedded frame 447 protected void setBoundsPrivate(int x, int y, int width, int height) { argument 450 peer.setBoundsPrivate(x, y, width, height); 456 * width, height and location relative to the native parent component. 537 public void setBoundsPrivate(int x, int y, int width, int height) { argument 538 setBounds(x, y, width, height, SET_BOUNDS);
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaInternalFramePaneUI.java | 135 setBounds((getParent().getWidth() - d.width) / 2, getParent().getHeight() - d.height, d.width, d.height); 172 final int width = getWidth(); 178 g2d.fillRoundRect(4, 4, width - 9, height + DOCK_EDGE_SLACK, DOCK_EDGE_SLACK, DOCK_EDGE_SLACK); 182 g2d.drawRoundRect(4, 4, width - 9, height + DOCK_EDGE_SLACK, DOCK_EDGE_SLACK, DOCK_EDGE_SLACK);
|
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/ |
H A D | CPlatformView.java | 43 private native long nativeCreateView(int x, int y, int width, int height, long windowLayerPtr); argument 84 public void setBounds(int x, int y, int width, int height) { argument 85 CWrapper.NSView.setFrame(ptr, x, y, width, height); 127 im = getGraphicsConfiguration().createCompatibleImage(r.width, r.height, transparency); 240 responder.handleWindowDidExposeEvent(new Rectangle(r.width, r.height));
|
/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | taskqueue.cpp | 64 unsigned int width) 66 // Use a width w: 1 <= w <= max_width 68 const unsigned int w = MAX2(MIN2(width, max_width), 1U); 70 if (line == 0) { // spaces equal in width to the header 89 void TaskQueueStats::print(outputStream* stream, unsigned int width) const 92 stream->print(FMT, width, _stats[0]); 94 stream->print(" " FMT, width, _stats[i]); 63 print_header(unsigned int line, outputStream* const stream, unsigned int width) argument
|
/openjdk7/jdk/src/solaris/classes/sun/awt/ |
H A D | X11CustomCursor.java | 46 protected void createNativeCursor(Image im, int[] pixels, int width, int height, argument 139 // but on Solaris 2.6, the width of a cursor has to be 8 divisible, 142 // with a transparent area to make a new cursor of width 8 multiples. 144 int wNByte = (width + 7)/8; 149 for (int i = 0; i < width; i++) { 152 int ip = j*width + i; 174 int width, int height, 173 createCursor(byte[] xorMask, byte[] andMask, int width, int height, int fcolor, int bcolor, int xHotSpot, int yHotSpot) argument
|
/openjdk7/jdk/src/share/native/sun/font/ |
H A D | freetypeScaler.c | 600 int width, int height) { 603 int wholeByteCount = width >> 3; 604 int remainingBitsCount = width & 7; 635 void* dstImage, int dstRowBytes, int width, int height) { 648 for (i = 0; i < width; i++) { 660 int width, int height) { 665 memcpy(dstRow, srcRow, width); 675 int width, int height) { 683 for (i = 0; i < width; i++) { 707 UInt16 width, heigh local 598 CopyBW2Grey8(const void* srcImage, int srcRowBytes, void* dstImage, int dstRowBytes, int width, int height) argument 634 CopyGrey4ToGrey8(const void* srcImage, int srcRowBytes, void* dstImage, int dstRowBytes, int width, int height) argument 658 CopyFTSubpixelToSubpixel(const void* srcImage, int srcRowBytes, void* dstImage, int dstRowBytes, int width, int height) argument 673 CopyFTSubpixelVToSubpixel(const void* srcImage, int srcRowBytes, void* dstImage, int dstRowBytes, int width, int height) argument [all...] |
/openjdk7/jdk/src/share/classes/java/awt/ |
H A D | Component.java | 236 * The width of the component. 241 int width; field in class:Component 724 * the same value regardless of the height or width. For example, a 733 * and does not change as the width is varied. That is, for 756 * int baseline = getBaseline(preferredSize.width, 758 * int nextBaseline = getBaseline(preferredSize.width, 784 * varies with the width of the component. This is also returned 849 return new Rectangle(comp.x, comp.y, comp.width, comp.height); 912 public void setSize(Component comp, int width, int height) { 913 comp.width 2154 setSize(int width, int height) argument 2163 resize(int width, int height) argument 2242 setBounds(int x, int y, int width, int height) argument 2251 reshape(int x, int y, int width, int height) argument 2318 reshapeNativePeer(int x, int y, int width, int height, int op) argument 2803 getBaseline(int width, int height) argument 3328 repaint(int x, int y, int width, int height) argument 3354 repaint(long tm, int x, int y, int width, int height) argument 3549 createImage(int width, int height) argument 3574 createVolatileImage(int width, int height) argument 3602 createVolatileImage(int width, int height, ImageCapabilities caps) argument 3642 prepareImage(Image image, int width, int height, ImageObserver observer) argument 3714 checkImage(Image image, int width, int height, ImageObserver observer) argument 3925 int width; field in class:Component.FlipBufferStrategy 4239 protected int width; field in class:Component.BltBufferStrategy [all...] |