/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
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 | 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 | 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 | 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 | WindowsButtonUI.java | 120 protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) { argument 121 WindowsGraphicsUtils.paintText(g, b, textRect, text, getTextShiftOffset()); 124 protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect){ argument
|
H A D | WindowsMenuUI.java | 205 * @param textRect Bounding rectangle to render the text. 210 Rectangle textRect, String text) { 212 WindowsMenuItemUI.paintText(accessor, g, menuItem, textRect, text); 239 WindowsGraphicsUtils.paintText(g, menuItem, textRect, text, 0); 209 paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) 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/share/classes/javax/swing/plaf/basic/ |
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 | 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 | BasicMenuItemUI.java | 670 * @param textRect bounding rectangle for rendering the text 674 protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) { argument 684 mnemIndex, textRect.x, textRect.y + fm.getAscent()); 688 mnemIndex, textRect.x, textRect.y + fm.getAscent()); 691 mnemIndex, textRect.x - 1, textRect.y + 700 mnemIndex, textRect.x, textRect [all...] |
H A D | BasicTabbedPaneUI.java | 825 textRect = new Rectangle(); 835 paintTab(g, tabPlacement, rects, j, iconRect, textRect); 843 paintTab(g, tabPlacement, rects, selectedIndex, iconRect, textRect); 849 Rectangle iconRect, Rectangle textRect) { 868 tabRect, iconRect, textRect, isSelected); 876 (textRect.x - tabRect.x) - tabScroller.croppedEdge.getCroppedSideWidth(); 879 clippedTitle = SwingUtilities2.clipStringIfNecessary(null, metrics, title, textRect.width); 883 tabIndex, clippedTitle, textRect, isSelected); 888 iconRect, textRect, isSelected); 1019 Rectangle textRect, boolea 847 paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) argument 1015 layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument 1056 paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) argument 1135 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) 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 | MetalTabbedPaneUI.java | 853 Rectangle iconRect, Rectangle textRect, 851 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) argument
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/ |
H A D | MotifButtonUI.java | 127 protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect){ argument
|
H A D | MotifTabbedPaneUI.java | 236 Rectangle iconRect, Rectangle textRect, 234 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) 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...] |
/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/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...] |
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_MenuItem.cpp | 281 RECT textRect = rect; local 363 ::CopyRect(&checkRect, &textRect); 377 textRect.left += checkWidth; 378 x = (GetRTL()) ? textRect.right - checkWidth - size.cx : textRect.left; 380 x = textRect.left = (textRect.left + textRect.right - size.cx) / 2; 383 int y = (textRect.top+textRect [all...] |
/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...] |