Lines Matching refs:textRect
258 Rectangle textRect = new Rectangle();
295 paintFocus(g, b, viewRect, textRect, iconRect);
300 final String text = layoutAndGetText(g, b, aquaBorder, i, viewRect, iconRect, textRect);
307 if (textRect.width == 0) {
308 textRect.width = 50;
314 v.paint(g, textRect);
316 paintText(g, b, textRect, text);
321 protected String layoutAndGetText(final Graphics g, final AbstractButton b, final AquaButtonBorder aquaBorder, final Insets i, Rectangle viewRect, Rectangle iconRect, Rectangle textRect) {
329 textRect.x = textRect.y = textRect.width = textRect.height = 0;
338 final String text = SwingUtilities.layoutCompoundLabel(b, fm, originalText, b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, originalText == null ? 0 : b.getIconTextGap());
345 return layoutAndGetText(g, b, null, alternateContentInsets, viewRect, iconRect, textRect);