Searched refs:textRect (Results 26 - 36 of 36) sorted by relevance

12

/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaButtonLabeledUI.java103 Rectangle textRect = new Rectangle();
134 final String text = SwingUtilities.layoutCompoundLabel(c, fm, b.getText(), altIcon != null ? altIcon : getDefaultIcon(b), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRect, b.getText() == null ? 0 : b.getIconTextGap());
179 v.paint(g, textRect);
181 paintText(g, b, textRect, text);
H A DAquaTabbedPaneCopyFromBasicUI.java785 final Rectangle iconRect = new Rectangle(), textRect = new Rectangle();
795 paintTab(g, tabPlacement, rects, j, iconRect, textRect);
803 paintTab(g, tabPlacement, rects, selectedIndex, iconRect, textRect);
807 protected void paintTab(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect) { argument
823 layoutLabel(tabPlacement, metrics, tabIndex, title, icon, tabRect, iconRect, textRect, isSelected);
829 final int availTextWidth = tabScroller.croppedEdge.getCropline() - (textRect.x - tabRect.x) - tabScroller.croppedEdge.getCroppedSideWidth();
833 paintText(g, tabPlacement, font, metrics, tabIndex, clippedTitle, textRect, isSelected);
837 paintFocusIndicator(g, tabPlacement, rects, tabIndex, iconRect, textRect, isSelected);
962 protected void layoutLabel(final int tabPlacement, final FontMetrics metrics, final int tabIndex, final String title, final Icon icon, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) { argument
963 textRect
988 paintText(final Graphics g, final int tabPlacement, final Font font, final FontMetrics metrics, final int tabIndex, final String title, final Rectangle textRect, final boolean isSelected) argument
1058 paintFocusIndicator(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsMenuUI.java205 * @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 DWindowsButtonUI.java120 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
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_MenuItem.cpp281 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/javax/swing/plaf/basic/
H A DBasicMenuItemUI.java670 * @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 DBasicTabbedPaneUI.java825 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/synth/
H A DSynthProgressBarUI.java368 Rectangle textRect = new Rectangle(
375 if (textRect.y < 0) {
383 textRect.x, textRect.y, -1);
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifButtonUI.java127 protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect){ argument
H A DMotifTabbedPaneUI.java236 Rectangle iconRect, Rectangle textRect,
234 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) argument
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalTabbedPaneUI.java853 Rectangle iconRect, Rectangle textRect,
851 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) argument

Completed in 81 milliseconds

12