Lines Matching refs:icon

206         // layout the text and icon
310 * Returns the default icon. This should not callback
313 * @param b button the icon is associated with
314 * @return default icon
318 Icon icon = context.getStyle().getIcon(context, getPropertyPrefix() + "icon");
319 return icon;
323 * Returns the Icon to use for painting the button. The icon is chosen with
326 * @param b button the icon is associated with
327 * @return an icon
330 Icon icon = b.getIcon();
334 icon = getSynthDisabledIcon(b, icon);
336 icon = getPressedIcon(b, getSelectedIcon(b, icon));
338 icon = getRolloverIcon(b, getSelectedIcon(b, icon));
340 icon = getSelectedIcon(b, icon);
342 icon = getEnabledIcon(b, icon);
344 if(icon == null) {
347 return icon;
351 * This method will return the icon that should be used for a button. We
352 * only want to use the synth icon defined by the style if the specific
353 * icon has not been defined for the button state and the backup icon is a
357 * @param specificIcon icon returned from the button for the specific state
358 * @param defaultIcon fallback icon
363 Icon icon = specificIcon;
364 if (icon == null) {
366 icon = getSynthIcon(b, state);
367 if (icon == null) {
368 icon = defaultIcon;
371 icon = defaultIcon;
374 return icon;
378 return style.getIcon(getContext(b, synthConstant), getPropertyPrefix() + "icon");
412 Icon icon = null;
415 icon = specificSelectedIcon;
416 if (icon == null) {
417 icon = b.getSelectedIcon();
421 if (icon == null) {
422 icon = specificIcon;
425 if (icon != null) {
426 return icon;
431 icon = getSynthIcon(b, state | SynthConstants.SELECTED);
432 if (icon == null) {
433 icon = getSynthIcon(b, SynthConstants.SELECTED);
436 if (icon == null) {
437 icon = getSynthIcon(b, state);
441 return icon != null ? icon : defaultIcon;
445 * Returns the amount to shift the text/icon when painting.
536 Icon icon = getEnabledIcon(b, b.getIcon());
537 if (icon == null) {
538 icon = getDefaultIcon(b);
540 return icon;