Searched refs:iconRect (Results 1 - 25 of 26) sorted by relevance

12

/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/
H A DBasicToggleButtonUI.java96 Rectangle iconRect = new Rectangle();
107 viewRect, iconRect, textRect,
118 paintIcon(g, b, iconRect);
133 paintFocus(g, b, viewRect, textRect, iconRect);
142 * @param iconRect bounds of an icon
144 protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) { argument
177 icon.paintIcon(b, g, iconRect.x, iconRect.y);
H A DBasicButtonUI.java252 private static Rectangle iconRect = new Rectangle(); field in class:BasicButtonUI
275 paintIcon(g,c,iconRect);
289 paintFocus(g,b,viewRect,textRect,iconRect);
298 * @param iconRect a bounding rectangle to render the icon
300 protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect){ argument
355 icon.paintIcon(c, g, iconRect.x + getTextShiftOffset(),
356 iconRect.y + getTextShiftOffset());
358 icon.paintIcon(c, g, iconRect.x, iconRect.y);
421 * @param iconRect
423 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument
[all...]
H A DBasicRadioButtonUI.java184 private static Rectangle iconRect = new Rectangle(); field in class:BasicRadioButtonUI
205 iconRect.x = iconRect.y = iconRect.width = iconRect.height = 0;
216 viewRect, iconRect, textRect,
258 altIcon.paintIcon(c, g, iconRect.x, iconRect.y);
261 getDefaultIcon().paintIcon(c, g, iconRect.x, iconRect
[all...]
H A DBasicTabbedPaneUI.java883 Rectangle iconRect = new Rectangle(),
894 paintTab(g, tabPlacement, rects, j, iconRect, textRect);
902 paintTab(g, tabPlacement, rects, selectedIndex, iconRect, textRect);
912 * @param iconRect the icon rectangle
917 Rectangle iconRect, Rectangle textRect) {
936 tabRect, iconRect, textRect, isSelected);
953 paintIcon(g, tabPlacement, tabIndex, icon, iconRect, isSelected);
956 iconRect, textRect, isSelected);
1091 * @param iconRect the icon rectangle
1098 Rectangle tabRect, Rectangle iconRect,
915 paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) argument
1095 layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument
1137 paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected ) argument
1258 paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) argument
[all...]
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/
H A DMetalToggleButtonUI.java220 Rectangle viewRect, Rectangle textRect, Rectangle iconRect){
232 focusRect.setBounds( iconRect.union( textRect ) );
237 focusRect.setBounds( iconRect );
248 * space <code>iconRect</code>.
252 * @param iconRect space to render in
256 protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) { argument
257 super.paintIcon(g, b, iconRect);
219 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument
H A DMetalRadioButtonUI.java168 Rectangle iconRect = new Rectangle();
185 viewRect, iconRect, textRect, b.getIconTextGap());
226 altIcon.paintIcon(c, g, iconRect.x, iconRect.y);
229 getDefaultIcon().paintIcon(c, g, iconRect.x, iconRect.y);
H A DMetalButtonUI.java198 Rectangle viewRect, Rectangle textRect, Rectangle iconRect){
210 focusRect.setBounds( iconRect.union( textRect ) );
215 focusRect.setBounds( iconRect );
197 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument
/openjdk9/jdk/src/java.desktop/share/classes/sun/swing/
H A DMenuItemLayoutHelper.java252 // iconRect
301 Rectangle iconRect = new Rectangle();
305 viewRect, iconRect, textRect, gap);
307 Rectangle labelRect = iconRect.union(textRect);
557 lr.iconRect.y += delta;
568 lr.iconRect.width = iconSize.maxWidth;
574 lr.iconRect, lr.textRect);
578 lr.iconRect.x += afterCheckIconGap - gap;
599 lr.setLabelRect(lr.textRect.union(lr.iconRect));
634 lr.iconRect
1128 private Rectangle iconRect; field in class:MenuItemLayoutHelper.LayoutResult
1144 LayoutResult(Rectangle iconRect, Rectangle textRect, Rectangle accRect, Rectangle checkRect, Rectangle arrowRect, Rectangle labelRect) argument
1159 setIconRect(Rectangle iconRect) argument
[all...]
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifButtonUI.java112 protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { argument
123 super.paintIcon(g, c, iconRect);
127 protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect){ argument
H A DMotifGraphicsUtils.java165 Rectangle iconRect = new Rectangle();
207 viewRect, iconRect,
240 icon.paintIcon(c, g, iconRect.x, iconRect.y);
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
/openjdk9/jdk/src/java.desktop/macosx/classes/com/apple/laf/
H A DAquaButtonLabeledUI.java102 Rectangle iconRect = 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());
140 widgetBorder.paintButton(c, g, iconRect.x, iconRect.y, iconRect.width, iconRect.height);
172 altIcon.paintIcon(c, g, iconRect.x, iconRect.y);
H A DAquaButtonUI.java257 Rectangle iconRect = new Rectangle();
295 paintFocus(g, b, viewRect, textRect, iconRect);
300 final String text = layoutAndGetText(g, b, aquaBorder, i, viewRect, iconRect, textRect);
304 paintIcon(g, b, iconRect);
321 protected String layoutAndGetText(final Graphics g, final AbstractButton b, final AquaButtonBorder aquaBorder, final Insets i, Rectangle viewRect, Rectangle iconRect, Rectangle textRect) { argument
330 iconRect.x = iconRect.y = iconRect.width = iconRect.height = 0;
338 final String text = SwingUtilities.layoutCompoundLabel(b, fm, originalText, b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), viewRect, iconRect, textRec
[all...]
H A DAquaTabbedPaneUI.java280 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
311 layoutLabel(tabPlacement, metrics, tabIndex < 0 ? 0 : tabIndex, title, icon, fContentRect, iconRect, textRect, false); // Never give it "isSelected" - ApprMgr handles this
314 transposeRect(iconRect);
328 rotateGraphics(g2d, tabRect, textRect, iconRect, tabPlacement);
337 paintIcon(g, tabPlacement, tabIndex, icon, iconRect, isSelected);
372 protected void rotateGraphics(final Graphics2D g2d, final Rectangle tabRect, final Rectangle textRect, final Rectangle iconRect, final int tabPlacement) { argument
375 int yIconDiff = 0; // iconRect.y - tabRect.y;
376 int xIconDiff = 0; // (tabRect.x+tabRect.width) - (iconRect.x + iconRect.width);
389 xIconDiff = iconRect
423 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 DAquaMenuPainter.java206 Rectangle iconRect = new Rectangle();
213 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);
247 paintIcon(g, b, iconRect, isEnabled);
330 Rectangle iconRect = new Rectangle();
337 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);
341 r = SwingUtilities.computeUnion(iconRect.x, iconRect.y, iconRect.width, iconRect.height, r);
342 // r = iconRect
[all...]
H A DAquaTabbedPaneCopyFromBasicUI.java786 final Rectangle iconRect = new Rectangle(), textRect = new Rectangle();
796 paintTab(g, tabPlacement, rects, j, iconRect, textRect);
804 paintTab(g, tabPlacement, rects, selectedIndex, iconRect, textRect);
808 protected void paintTab(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect) { argument
824 layoutLabel(tabPlacement, metrics, tabIndex, title, icon, tabRect, iconRect, textRect, isSelected);
836 paintIcon(g, tabPlacement, tabIndex, icon, iconRect, isSelected);
838 paintFocusIndicator(g, tabPlacement, rects, tabIndex, iconRect, textRect, isSelected);
963 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
964 textRect.x = textRect.y = iconRect.x = iconRect
983 paintIcon(final Graphics g, final int tabPlacement, final int tabIndex, final Icon icon, final Rectangle iconRect, final boolean isSelected) argument
1059 paintFocusIndicator(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) argument
[all...]
/openjdk9/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/
H A DJHyperlink.java55 private final transient Rectangle iconRect = new Rectangle(); field in class:JHyperlink
186 iconRect.x = iconRect.y = iconRect.width = iconRect.height = 0;
191 viewRect, iconRect, textRect, getIconTextGap());
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/plaf/synth/
H A DSynthTabbedPaneUI.java96 private Rectangle iconRect = new Rectangle(); field in class:SynthTabbedPaneUI
379 iconRect.setBounds(0, 0, 0, 0);
385 iconRect, textRect, textIconGap);
516 iconRect.setBounds(0, 0, 0, 0);
526 paintTab(tabContext, g, tabPlacement, rects, j, iconRect,
535 iconRect, textRect);
572 Rectangle iconRect, Rectangle textRect) {
629 tabRect, iconRect, textRect, isSelected);
634 paintIcon(g, tabPlacement, tabIndex, icon, iconRect, isSelected);
641 Rectangle tabRect, Rectangle iconRect,
570 paintTab(SynthContext ss, Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) argument
638 layoutLabel(SynthContext ss, int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected ) argument
[all...]
H A DSynthMenuItemLayoutHelper.java130 // iconRect
192 Rectangle iconRect = new Rectangle();
196 getViewRect(), iconRect, textRect, getGap());
198 Rectangle labelRect = iconRect.union(textRect);
H A DSynthLabelUI.java124 Rectangle iconRect = new Rectangle();
138 viewRect, iconRect, textRect, label.getIconTextGap());
H A DSynthGraphicsUtils.java618 Rectangle iconRect = lr.getIconRect();
619 paintIcon(icon, lh.getContext(), g, iconRect.x,
620 iconRect.y, iconRect.width, iconRect.height);
H A DSynthButtonUI.java200 Rectangle iconRect = new Rectangle();
214 viewRect, iconRect, textRect, b.getIconTextGap());
/openjdk9/jdk/src/java.desktop/unix/classes/sun/awt/X11/
H A DXButtonPeer.java226 Rectangle textRect,iconRect,viewRect;
230 iconRect = new Rectangle();
243 viewRect, iconRect, textRect, 0);
/openjdk9/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsToggleButtonUI.java158 Rectangle viewRect, Rectangle textRect, Rectangle iconRect) {
157 paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) argument
H A DWindowsButtonUI.java124 protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect){ argument

Completed in 310 milliseconds

12