/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsRadioButtonUI.java | 108 protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) { argument 109 WindowsGraphicsUtils.paintText(g, b, textRect, text, getTextShiftOffset()); 113 protected void paintFocus(Graphics g, Rectangle textRect, Dimension d){ argument 115 BasicGraphicsUtils.drawDashedRect(g, textRect.x, textRect.y, textRect.width, textRect.height);
|
H A D | WindowsCheckBoxMenuItemUI.java | 82 * @param textRect Bounding rectangle to render the text. 87 Rectangle textRect, String text) { 90 textRect, text); 100 WindowsGraphicsUtils.paintText(g, menuItem, textRect, text, 0); 86 paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) argument
|
H A D | WindowsRadioButtonMenuItemUI.java | 82 * @param textRect Bounding rectangle to render the text. 87 Rectangle textRect, String text) { 89 WindowsMenuItemUI.paintText(accessor, g, menuItem, textRect, text); 99 WindowsGraphicsUtils.paintText(g, menuItem, textRect, text, 0); 86 paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) argument
|
H A D | WindowsMenuItemUI.java | 76 * @param textRect Bounding rectangle to render the text. 80 Rectangle textRect, String text) { 82 WindowsMenuItemUI.paintText(accessor, g, menuItem, textRect, text); 94 WindowsGraphicsUtils.paintText(g, menuItem, textRect, text, 0); 132 JMenuItem menuItem, Rectangle textRect, 147 g, textRect.x, 148 textRect.y + fm.getAscent(), 79 paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) argument 131 paintText(WindowsMenuItemUIAccessor menuItemUI, Graphics g, JMenuItem menuItem, Rectangle textRect, String text) argument
|
H A D | WindowsGraphicsUtils.java | 53 * @param textRect Bounding rectangle to render the text. 57 Rectangle textRect, String text, 69 paintXPText(b, g, textRect.x + textShiftOffset, 70 textRect.y + fm.getAscent() + textShiftOffset, 73 paintClassicText(b, g, textRect.x + textShiftOffset, 74 textRect.y + fm.getAscent() + textShiftOffset, 56 paintText(Graphics g, AbstractButton b, Rectangle textRect, String text, int textShiftOffset) argument
|
H A D | WindowsToggleButtonUI.java | 153 protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) { argument 154 WindowsGraphicsUtils.paintText(g, b, textRect, text, getTextShiftOffset()); 158 Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { 157 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaTabbedPaneContrastUI.java | 50 protected void paintTitle(final Graphics2D g2d, final Font font, final FontMetrics metrics, final Rectangle textRect, final int tabIndex, final String title) { argument 53 v.paint(g2d, textRect); 67 AquaUtils.paintDropShadowText(g2d, tabPane, font, metrics, textRect.x, textRect.y, 0, 1, textColor, shadowColor, title); 74 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
|
H A D | AquaButtonUI.java | 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) { argument 329 textRect.x = textRect [all...] |
H A D | AquaTabbedPaneUI.java | 269 protected void paintContents(final Graphics g, final int tabPlacement, final int tabIndex, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) { argument 300 layoutLabel(tabPlacement, metrics, tabIndex < 0 ? 0 : tabIndex, title, icon, fContentRect, iconRect, textRect, false); // Never give it "isSelected" - ApprMgr handles this 304 transposeRect(textRect); 317 rotateGraphics(g2d, tabRect, textRect, iconRect, tabPlacement); 322 paintTitle(g2d, font, metrics, textRect, tabIndex, title); 336 protected void paintTitle(final Graphics2D g2d, final Font font, final FontMetrics metrics, final Rectangle textRect, final int tabIndex, final String title) { argument 339 v.paint(g2d, textRect); 358 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent()); 361 protected void rotateGraphics(final Graphics2D g2d, final Rectangle tabRect, final Rectangle textRect, fina argument 412 paintTabNormalFromRect(final Graphics g, final int tabPlacement, final Rectangle tabRect, final int nonRectIndex, final Rectangle iconRect, final Rectangle textRect, final boolean active, final boolean frameActive, final boolean isLeftToRight) argument [all...] |
H A D | AquaMenuPainter.java | 203 Rectangle textRect = new Rectangle(); 209 final String text = layoutMenuItem(b, fm, b.getText(), fmAccel, keyString, modifiersString, b.getIcon(), checkIcon, arrowIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, acceleratorRect, checkIconRect, arrowIconRect, b.getText() == null ? 0 : defaultTextIconGap, defaultTextIconGap); 284 v.paint(g, textRect); 287 drawString(g, c, text, mnemonic, textRect.x, textRect.y + fm.getAscent(), isEnabled, isSelected); 327 Rectangle textRect = new Rectangle(); 333 layoutMenuItem(b, fm, text, fmAccel, keyString, modifiersString, icon, checkIcon, arrowIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, acceleratorRect, checkIconRect, arrowIconRect, text == null ? 0 : defaultTextIconGap, defaultTextIconGap); 336 r.setBounds(textRect); 338 // r = iconRect.union(textRect);
|
/openjdk7/jdk/test/javax/swing/SwingUtilities/6797139/ |
H A D | bug6797139.java | 40 protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) { 41 super.paintText(g, b, textRect, text);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicButtonUI.java | 192 private static Rectangle textRect = new Rectangle(); field in class:BasicButtonUI 222 v.paint(g, textRect); 224 paintText(g, b, textRect, text); 230 paintFocus(g,b,viewRect,textRect,iconRect); 301 protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { argument 312 textRect.x + getTextShiftOffset(), 313 textRect.y + fm.getAscent() + getTextShiftOffset()); 319 textRect.x, textRect.y + fm.getAscent()); 322 textRect 335 paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) argument 341 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument [all...] |
H A D | BasicRadioButtonUI.java | 104 private static Rectangle textRect = new Rectangle(); field in class:BasicRadioButtonUI 124 textRect.x = textRect.y = textRect.width = textRect.height = 0; 134 viewRect, iconRect, textRect, 187 v.paint(g, textRect); 189 paintText(g, b, textRect, text); 192 textRect.width > 0 && textRect 198 paintFocus(Graphics g, Rectangle textRect, Dimension size) argument [all...] |
H A D | BasicToggleButtonUI.java | 91 Rectangle textRect = new Rectangle(); 101 viewRect, iconRect, textRect, 119 v.paint(g, textRect); 121 paintText(g, b, textRect, text); 127 paintFocus(g, b, viewRect, textRect, iconRect);
|
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/ |
H A D | XButtonPeer.java | 233 Rectangle textRect,iconRect,viewRect; 235 textRect = new Rectangle(); 252 viewRect, iconRect, textRect, 0); 263 paintText(g, target, textRect, text); 298 protected void paintText(Graphics g, Component c, Rectangle textRect, String text) { argument 307 BasicGraphicsUtils.drawStringUnderlineCharAt(g,text,mnemonicIndex , textRect.x , textRect.y + fm.getAscent() ); 314 textRect.x, textRect.y + fm.getAscent()); 317 textRect [all...] |
H A D | XCheckboxPeer.java | 62 private Rectangle textRect; field in class:XCheckboxPeer 87 textRect = new Rectangle(); 286 //textRect.width = fm.stringWidth(text); 287 textRect.width = fm.stringWidth(text == null ? "" : text); 288 textRect.height = fm.getHeight(); 290 textRect.x = Math.max(minTextX, size.width / 2 - textRect.width / 2); 291 textRect.y = (size.height - textRect.height) / 2; 315 paintText(g, textRect, labe 406 paintText(Graphics g, Rectangle textRect, String text) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalButtonUI.java | 162 Rectangle viewRect, Rectangle textRect, Rectangle iconRect){ 171 focusRect.setBounds( textRect ); 174 focusRect.setBounds( iconRect.union( textRect ) ); 189 protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { argument 205 textRect.x, textRect.y + fm.getAscent()); 161 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument
|
H A D | MetalToggleButtonUI.java | 162 protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { argument 182 textRect.x, textRect.y + fm.getAscent()); 186 Rectangle viewRect, Rectangle textRect, Rectangle iconRect){ 195 focusRect.setBounds( textRect ); 198 focusRect.setBounds( iconRect.union( textRect ) ); 185 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument
|
H A D | MetalRadioButtonUI.java | 134 Rectangle textRect = new Rectangle(); 150 viewRect, iconRect, textRect, b.getIconTextGap()); 202 v.paint(g, textRect); 213 mnemIndex, textRect.x, textRect.y + fm.getAscent()); 216 textRect.width > 0 && textRect.height > 0 ) { 217 paintFocus(g,textRect,size);
|
/openjdk7/jdk/src/share/classes/sun/swing/ |
H A D | MenuItemLayoutHelper.java | 263 // textRect 299 Rectangle textRect = new Rectangle(); 304 viewRect, iconRect, textRect, gap); 305 textRect.width += leftTextExtraWidth; 306 Rectangle labelRect = iconRect.union(textRect); 557 lr.textRect.y += delta; 568 lr.textRect.width = textSize.maxWidth; 573 lr.iconRect, lr.textRect); 578 lr.textRect.x += afterCheckIconGap - gap; 585 int textOffset = lr.textRect 1128 private Rectangle textRect; field in class:MenuItemLayoutHelper.LayoutResult 1143 LayoutResult(Rectangle iconRect, Rectangle textRect, Rectangle accRect, Rectangle checkRect, Rectangle arrowRect, Rectangle labelRect) argument 1166 setTextRect(Rectangle textRect) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthTabbedPaneUI.java | 95 private Rectangle textRect = new Rectangle(); field in class:SynthTabbedPaneUI 395 textRect.setBounds(0, 0, 0, 0); 402 iconRect, textRect, textIconGap); 403 return textRect.y + metrics.getAscent() + getBaselineOffset(); 535 textRect.setBounds(0, 0, 0, 0); 545 textRect); 553 iconRect, textRect); 590 Rectangle iconRect, Rectangle textRect) { 647 tabRect, iconRect, textRect, isSelected); 650 tabIndex, title, textRect, isSelecte 588 paintTab(SynthContext ss, Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) argument 656 layoutLabel(SynthContext ss, int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument 683 paintText(SynthContext ss, Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) argument [all...] |
H A D | SynthLabelUI.java | 126 Rectangle textRect = new Rectangle(); 141 viewRect, iconRect, textRect, label.getIconTextGap()); 145 baseline = BasicHTML.getHTMLBaseline(view, textRect.width, 146 textRect.height); 148 baseline += textRect.y; 152 baseline = textRect.y + fm.getAscent();
|
H A D | SynthMenuItemLayoutHelper.java | 145 // textRect 192 Rectangle textRect = new Rectangle(); 197 getViewRect(), iconRect, textRect, getGap()); 198 textRect.width += getLeftTextExtraWidth(); 199 Rectangle labelRect = iconRect.union(textRect);
|
H A D | SynthButtonUI.java | 203 Rectangle textRect = new Rectangle(); 218 viewRect, iconRect, textRect, b.getIconTextGap()); 222 baseline = BasicHTML.getHTMLBaseline(view, textRect.width, 223 textRect.height); 225 baseline += textRect.y; 229 baseline = textRect.y + fm.getAscent();
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/ |
H A D | MotifGraphicsUtils.java | 166 Rectangle textRect = new Rectangle(); 208 textRect, acceleratorRect, 250 v.paint(g, textRect); 259 textRect.x, textRect.y + fmAccel.getAscent()); 263 textRect.x - 1, textRect.y + fmAccel.getAscent() - 1); 274 textRect.x, 275 textRect.y + fm.getAscent());
|