Searched refs:icon (Results 1 - 25 of 113) sorted by relevance

12345

/openjdk7/jdk/src/share/classes/sun/swing/plaf/synth/
H A DSynthIcon.java34 * An icon that is passed a SynthContext. Subclasses need only implement
41 public static int getIconWidth(Icon icon, SynthContext context) { argument
42 if (icon == null) {
45 if (icon instanceof SynthIcon) {
46 return ((SynthIcon)icon).getIconWidth(context);
48 return icon.getIconWidth();
51 public static int getIconHeight(Icon icon, SynthContext context) { argument
52 if (icon == null) {
55 if (icon instanceof SynthIcon) {
56 return ((SynthIcon)icon)
61 paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int w, int h) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJRadioButton.java110 * @param icon the image that the button should display
112 public JRadioButton(Icon icon) { argument
113 this(null, icon, false);
131 * @param icon the image that the button should display
135 public JRadioButton(Icon icon, boolean selected) { argument
136 this(null, icon, selected);
165 * @param icon the image that the button should display
167 public JRadioButton(String text, Icon icon) { argument
168 this(text, icon, false);
176 * @param icon th
178 JRadioButton(String text, Icon icon, boolean selected) argument
[all...]
H A DJRadioButtonMenuItem.java94 * Creates a <code>JRadioButtonMenuItem</code> with no set text or icon.
101 * Creates a <code>JRadioButtonMenuItem</code> with an icon.
103 * @param icon the <code>Icon</code> to display on the
106 public JRadioButtonMenuItem(Icon icon) { argument
107 this(null, icon, false);
138 * @param icon the icon to display on the <code>JRadioButtonMenuItem</code>
140 public JRadioButtonMenuItem(String text, Icon icon) { argument
141 this(text, icon, false);
160 * @param icon th
164 JRadioButtonMenuItem(Icon icon, boolean selected) argument
176 JRadioButtonMenuItem(String text, Icon icon, boolean selected) argument
[all...]
H A DJCheckBox.java93 * Creates an initially unselected check box button with no text, no icon.
100 * Creates an initially unselected check box with an icon.
102 * @param icon the Icon image to display
104 public JCheckBox(Icon icon) { argument
105 this(null, icon, false);
109 * Creates a check box with an icon and specifies whether
112 * @param icon the Icon image to display
116 public JCheckBox(Icon icon, boolean selected) { argument
117 this(null, icon, selected);
155 * the specified text and icon
160 JCheckBox(String text, Icon icon) argument
173 JCheckBox(String text, Icon icon, boolean selected) argument
[all...]
H A DJCheckBoxMenuItem.java46 * icon associated with it, or both.
101 * Creates an initially unselected check box menu item with no set text or icon.
108 * Creates an initially unselected check box menu item with an icon.
110 * @param icon the icon of the CheckBoxMenuItem.
112 public JCheckBoxMenuItem(Icon icon) { argument
113 this(null, icon, false);
137 * Creates an initially unselected check box menu item with the specified text and icon.
140 * @param icon the icon o
142 JCheckBoxMenuItem(String text, Icon icon) argument
163 JCheckBoxMenuItem(String text, Icon icon, boolean b) argument
[all...]
H A DJToggleButton.java99 * @param icon the image that the button should display
101 public JToggleButton(Icon icon) { argument
102 this(null, icon, false);
109 * @param icon the image that the button should display
113 public JToggleButton(Icon icon, boolean selected) { argument
114 this(null, icon, selected);
154 * @param icon the image that the button should display
156 public JToggleButton(String text, Icon icon) { argument
157 this(text, icon, false);
165 * @param icon th
169 JToggleButton(String text, Icon icon, boolean selected) argument
[all...]
H A DJButton.java87 * Creates a button with no set text or icon.
94 * Creates a button with an icon.
96 * @param icon the Icon image to display on the button
98 public JButton(Icon icon) { argument
99 this(null, icon);
126 * Creates a button with initial text and an icon.
129 * @param icon the Icon image to display on the button
131 public JButton(String text, Icon icon) { argument
136 init(text, icon);
H A DJOptionPane.java113 * <td bgcolor=#FFe0d0 rowspan=2>icon</td>
167 * will often provide a default icon. The possible values are:
198 * <dt>icon<dd>A decorative icon to be placed in the dialog box. A default
360 // Message types. Used by the UI to determine what icon to display,
371 /** No icon is used. */
374 /** Bound property name for <code>icon</code>. */
375 public static final String ICON_PROPERTY = "icon";
398 transient protected Icon icon; field in class:JOptionPane
553 * @param icon th
565 showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) argument
664 showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) argument
793 showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) argument
854 showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) argument
1096 showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) argument
1217 showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) argument
1272 showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) argument
1416 showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) argument
1775 JOptionPane(Object message, int messageType, int optionType, Icon icon) argument
1807 JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options) argument
1835 JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue) argument
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaFocus.java79 final Icon icon;
82 public FocusedIcon(final Icon icon, final int slack) {
83 this.icon = icon;
89 return icon.getIconHeight() + slack + slack;
94 return icon.getIconWidth() + slack + slack;
102 icon.paintIcon(c, sg2d, x + slack, y + slack);
106 icon.paintIcon(c, g, x + slack, y + slack);
113 final Icon icon; field in class:AquaFocus.FocusedIcon
116 public FocusedIcon(final Icon icon, fina argument
[all...]
H A DScreenMenuPropertyHandler.java37 public void setIcon(Icon icon); argument
H A DAquaInternalFrameBorder.java313 Icon icon = frame.getFrameIcon();
314 if (icon == null) icon = UIManager.getIcon("InternalFrame.icon");
315 if (icon == null) return;
318 if (icon instanceof ImageIcon && (icon.getIconWidth() > sMaxIconWidth || icon.getIconHeight() > sMaxIconHeight)) {
319 final Image img = ((ImageIcon)icon).getImage();
320 ((ImageIcon)icon)
[all...]
H A DAquaFileView.java97 Icon icon; field in class:AquaFileView.FileInfo
180 if (info.icon != null) return info.icon;
183 info.icon = AquaIcon.SystemIcon.getDocumentIconUIResource();
185 // Look for the document's icon
187 info.icon = fileIcon;
192 info.icon = AquaIcon.SystemIcon.getComputerIconUIResource();
194 info.icon = AquaIcon.SystemIcon.getHardDriveIconUIResource();
196 info.icon = AquaIcon.SystemIcon.getFolderIconUIResource();
199 info.icon
[all...]
/openjdk7/jdk/src/share/classes/sun/swing/
H A DMenuItemCheckIconFactory.java37 boolean isCompatible(Object icon, String prefix); argument
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicToggleButtonUI.java96 // layout the text and icon
133 Icon icon = null;
137 icon = b.getDisabledSelectedIcon();
139 icon = b.getDisabledIcon();
142 icon = b.getPressedIcon();
143 if(icon == null) {
144 // Use selected icon
145 icon = b.getSelectedIcon();
149 icon = b.getRolloverSelectedIcon();
150 if (icon
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthButtonUI.java210 // layout the text and icon
317 * Returns the default icon. This should not callback
320 * @param b button the icon is associated with
321 * @return default icon
325 Icon icon = context.getStyle().getIcon(context, getPropertyPrefix() + "icon");
327 return icon;
331 * Returns the Icon to use for painting the button. The icon is chosen with
334 * @param b button the icon is associated with
335 * @return an icon
[all...]
H A DSynthGraphicsUtils.java125 * Lays out text and an icon returning, by reference, the location to
126 * place the icon and text.
131 * @param icon Icon to layout
136 * @param viewR Rectangle to layout text and icon in.
137 * @param iconR Rectangle to place icon bounds in
139 * @param iconTextGap gap between icon and text
142 String text, Icon icon, int hAlign,
146 if (icon instanceof SynthIcon) {
147 SynthIconWrapper wrapper = SynthIconWrapper.get((SynthIcon)icon,
157 ss.getComponent(), fm, text, icon, vAlig
141 layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap) argument
191 getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) argument
222 getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) argument
267 getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) argument
362 paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset) argument
617 get(SynthIcon icon, SynthContext context) argument
636 SynthIconWrapper(SynthIcon icon, SynthContext context) argument
640 reset(SynthIcon icon, SynthContext context) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/action/
H A DDelegateAction.java36 public DelegateAction(String name, Icon icon) argument
38 super(name, icon);
H A DStateChangeAction.java45 public StateChangeAction(String name, Icon icon) argument
47 super(name, icon);
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/inspector/
H A DIconManager.java46 private static ImageIcon getSmallIcon(ImageIcon icon) { argument
48 icon.getImage().getScaledInstance(16, 16, Image.SCALE_SMOOTH));
H A DXMBean.java39 private Icon icon; field in class:XMBean
54 icon = IconManager.MBEANSERVERDELEGATE;
56 icon = IconManager.MBEAN;
175 return icon;
178 public void setIcon(Icon icon) { argument
179 this.icon = icon;
H A DXObject.java40 public XObject (Object object, Icon icon) { argument
42 setIcon(icon);
81 // use default icon
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/
H A DMWindowAttributes.java52 java.awt.Image icon; field in class:MWindowAttributes
69 icon = null;
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/table/
H A DSortHeaderCellRenderer.java76 Icon icon = null;
79 icon = ascendingIcon;
81 icon = descendingIcon;
84 setIcon(icon);
/openjdk7/jdk/src/share/demo/jfc/FileChooserDemo/
H A DExampleFileView.java51 * manages name, icon, traversable, and file type information.
58 * file type, icon, and hidden file inforation, this implementation may
150 * Adds an icon based on the file type "dot" extension
153 public void putIcon(String extension, Icon icon) { argument
154 icons.put(extension, icon);
166 Icon icon = null;
169 icon = icons.get(extension);
171 return icon;
180 * return a special icon for the directory that makes it look like a regular
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifDesktopPaneUI.java173 JInternalFrame.JDesktopIcon icon = f.getDesktopIcon();
174 Point p = icon.getLocation();
175 adjustBoundsForIcon(icon, p.x, p.y);
184 // We need to know Motif icon size
185 JInternalFrame.JDesktopIcon icon = new JInternalFrame.JDesktopIcon(
187 Dimension iconSize = icon.getPreferredSize();
193 icon = frames[i].getDesktopIcon();
194 Point ip = icon.getLocation();
195 adjustBoundsForIcon(icon, ip.x, ip.y);
200 * Change positions of icon s
203 adjustBoundsForIcon(JInternalFrame.JDesktopIcon icon, int x, int y) argument
247 getIconAt(JDesktopPane desktop, JInternalFrame.JDesktopIcon icon, int x, int y) argument
[all...]

Completed in 117 milliseconds

12345