Searched defs:rect (Results 1 - 25 of 49) sorted by relevance

12

/openjdk7/jdk/src/macosx/classes/sun/java2d/
H A DIntegerNIORaster.java74 public WritableRaster createCompatibleWritableRaster(Rectangle rect) { argument
75 if (rect == null) {
78 return createCompatibleWritableRaster(rect.x, rect.y, rect.width, rect.height);
/openjdk7/jdk/test/javax/swing/ToolTipManager/7123767/
H A Dbug7123767.java88 Rectangle rect = config.getBounds();
90 adjustInsets(rect, insets);
91 if (rect.contains(pt))
136 Rectangle rect = new Rectangle();
145 rect.add(localRect);
148 setBounds(rect);
171 Rectangle rect = config.getBounds();
173 adjustInsets(rect, insets);
176 glide(rect.x + rect
214 adjustInsets(Rectangle rect, final Insets insets) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DTablePrintable.java406 * @param rect the bounding rectangle for this text,
413 Rectangle2D rect,
420 if (rect.getWidth() < imgWidth) {
421 tx = (int)((imgWidth - rect.getWidth()) / 2);
430 tx = -(int)(Math.ceil(rect.getWidth()) - imgWidth);
433 int ty = (int)Math.ceil(Math.abs(rect.getY()));
411 printText(Graphics2D g2d, String text, Rectangle2D rect, Font font, int imgWidth) argument
/openjdk7/jdk/src/share/classes/sun/awt/
H A DRepaintArea.java142 Rectangle rect = paintRects[i];
143 if (rect != null) {
144 if (rect.x < x) {
145 rect.width -= (x - rect.x);
146 rect.x = x;
148 if (rect.y < y) {
149 rect.height -= (y - rect.y);
150 rect
272 subtract(Rectangle rect, Rectangle subtr) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/image/
H A DRenderedImage.java199 * @param rect the region of the RenderedImage to be returned.
203 Raster getData(Rectangle rect); argument
H A DRaster.java1191 * and size (width, height) specified by rect, a
1193 * @param rect a <code>Rectangle</code> that specifies the size and
1197 * @throws RasterFormatException if <code>rect</code> has width
1199 * <code>rect.x + rect.width</code> or
1200 * <code>rect.y + rect.height</code> results in integer
1202 * @throws NullPointerException if <code>rect</code> is null
1204 public WritableRaster createCompatibleWritableRaster(Rectangle rect) { argument
1205 if (rect
[all...]
H A DBufferedImage.java1438 * @param rect the region of the <code>BufferedImage</code> to be
1444 public Raster getData(Rectangle rect) { argument
1446 SampleModel nsm = sm.createCompatibleSampleModel(rect.width,
1447 rect.height);
1449 rect.getLocation());
1450 int width = rect.width;
1451 int height = rect.height;
1452 int startX = rect.x;
1453 int startY = rect.y;
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/
H A DImageUtil.java260 Rectangle rect) {
266 int rectX = rect.x;
267 int rectY = rect.y;
268 int rectWidth = rect.width;
269 int rectHeight = rect.height;
445 Rectangle rect) {
451 int rectX = rect.x;
452 int rectY = rect.y;
453 int rectWidth = rect.width;
454 int rectHeight = rect
259 getPackedBinaryData(Raster raster, Rectangle rect) argument
444 getUnpackedBinaryData(Raster raster, Rectangle rect) argument
526 setPackedBinaryData(byte[] binaryDataArray, WritableRaster raster, Rectangle rect) argument
776 setUnpackedBinaryData(byte[] bdata, WritableRaster raster, Rectangle rect) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXPopupMenuPeer.java274 protected void paintCaption(Graphics g, Rectangle rect) { argument
283 int textx = rect.x + (rect.width - width) / 2;
284 int texty = rect.y + CAPTION_MARGIN_TOP + fm.getAscent();
285 int sepy = rect.y + rect.height - CAPTION_SEPARATOR_HEIGHT / 2;
288 draw3DRect(g, rect.x, sepy, rect.width, 2, false);
H A DXMenuWindow.java339 protected void paintCaption(Graphics g, Rectangle rect) { argument
/openjdk7/jdk/src/share/classes/java/awt/
H A DGraphics2D.java805 * @param rect the area in device space to check for a hit
821 public abstract boolean hit(Rectangle rect, argument
H A DRobot.java459 private static void checkValidRect(Rectangle rect) { argument
460 if (rect.width <= 0 || rect.height <= 0) {
/openjdk7/jdk/src/macosx/classes/apple/laf/
H A DJRSUIUtils.java99 public static void getPartBounds(final double[] rect, final JRSUIControl control, final double x, final double y, final double w, final double h, final ScrollBarPart part) { argument
100 control.getPartBounds(rect, x, y, w, h, part.ordinal);
H A DJRSUIControl.java52 private static native void getNativePartBounds(final double[] rect, long cfDictionaryPtr, long oldProperties, long newProperties, double x, double y, double w, double h, int part); argument
286 void getPartBounds(final double[] rect, final double x, final double y, final double w, final double h, final int part) { argument
287 if (rect == null) throw new NullPointerException("Cannot load null rect");
288 if (rect.length != 4) throw new IllegalArgumentException("Rect must have four elements");
291 getNativePartBounds(rect, cfDictionaryPtr, priorEncodedProperties, currentEncodedProperties, x, y, w, h, part);
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_Button.cpp175 RECT rect; local
176 ::GetClientRect(GetHWnd(), &rect); local
178 if (::PtInRect(&rect, p)) {
207 RECT rect = drawInfo.rcItem; local
216 ::FillRect(hDC, &rect, GetBackgroundBrush());
218 ::DrawEdge(hDC, &rect, edgeType, BF_RECT | BF_SOFT);
230 int x = (rect.left + rect.right-size.cx) / 2 + adjust;
231 int y = (rect.top + rect
[all...]
H A Dawt_Checkbox.cpp156 RECT rect; local
157 ::GetClientRect(GetHWnd(), &rect); local
159 if (::PtInRect(&rect, p) && button == LEFT_BUTTON && m_fLButtonDowned) {
220 RECT rect = drawInfo.rcItem; local
244 VERIFY(::FillRect (hDC, &rect, GetBackgroundBrush()));
251 boxRect.left = (GetRTL()) ? rect.right - checkSize : rect.left;
252 boxRect.top = (rect.bottom - rect.top - checkSize)/2;
262 rect
476 RECT rect; local
[all...]
H A Dawt_ScrollPane.cpp572 RECT rect, childRect; local
573 ::GetClientRect(GetHWnd(), &rect); local
574 ::MapWindowPoints(GetHWnd(), 0, (LPPOINT)&rect, 2);
576 DASSERT(childRect.left <= rect.left && childRect.top <= rect.top);
H A Dawt_TextArea.cpp286 * client rect.
523 RECT rect; local
524 // rect.left and rect.top are zero.
525 // rect.right and rect.bottom contain the width and height
526 VERIFY(::GetClientRect(hWnd, &rect));
534 LONG visibleLines = rect.bottom / tm.tmHeight + 1;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthGraphicsUtils.java478 static void applyInsets(Rectangle rect, Insets insets, boolean leftToRight) { argument
480 rect.x += (leftToRight ? insets.left : insets.right);
481 rect.y += insets.top;
482 rect.width -= (leftToRight ? insets.right : insets.left) + rect.x;
483 rect.height -= (insets.bottom + rect.y);
H A DSynthTableUI.java387 Rectangle rect;
389 rect = getHDropLineRect(loc);
390 if (rect != null) {
391 int x = rect.x;
392 int w = rect.width;
394 extendRect(rect, true);
396 g.fillRect(rect.x, rect.y, rect.width, rect
480 extendRect(Rectangle rect, boolean horizontal) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DArc2D.java814 * @param rect The framing rectangle that defines the
823 public void setArc(Rectangle2D rect, double angSt, double angExt, argument
825 setArc(rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight(),
1315 Rectangle2D rect = new Rectangle2D.Double(x, y, w, h);
1318 if (rect.intersectsLine(axc, ayc, sx, sy) ||
1319 rect.intersectsLine(axc, ayc, ex, ey)) {
1324 if (rect
[all...]
/openjdk7/jdk/src/windows/native/sun/awt/splashscreen/
H A Dsplashscreen_sys.c224 RECT rect; local
253 GetWindowRect(splash->hWnd, &rect);
255 ptDst.x = rect.left;
256 ptDst.y = rect.top;
/openjdk7/jdk/src/windows/native/sun/font/
H A Dlcdglyph.c178 RECT rect; local
340 rect.left = 0;
341 rect.top = 0;
342 rect.right = bmWidth;
343 rect.bottom = bmHeight;
344 FillRect(hMemoryDC, (LPRECT)&rect, GetStockObject(BLACK_BRUSH));
357 (LPRECT)&rect, (LPCWSTR)&glyphCode, 1, NULL);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicMenuItemUI.java624 private void applyInsets(Rectangle rect, Insets insets) { argument
626 rect.x += insets.left;
627 rect.y += insets.top;
628 rect.width -= (insets.right + rect.x);
629 rect.height -= (insets.bottom + rect.y);
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DImageView.java349 Rectangle rect = (a instanceof Rectangle) ? (Rectangle)a :
353 fBounds.setBounds(rect);
355 paintBorder(g, rect);
357 g.clipRect(rect.x + leftInset, rect.y + topInset,
358 rect.width - leftInset - rightInset,
359 rect.height - topInset - bottomInset);
370 rect.x + leftInset, rect.y + topInset);
375 g.drawImage(img, rect
415 paintBorder(Graphics g, Rectangle rect) argument
[all...]

Completed in 153 milliseconds

12