Returns the icon for the given severity.
@param severity The severity level.
@return The icon for the given severity, never null.
972175
private Icon getIcon( Severity severity ) {
        if( severity == Severity.ERROR ) {
            return getErrorIcon();
        }
        if( severity == Severity.WARNING ) {
            return getWarningIcon();
        }
        return getInfoIcon();
    }
389419
@Override
    public ImageIcon getImageIconResource( final String       key,
                                           final ImageIcon    defaultValue )
        throws
            UtilException
    {
        String    imagePath = getFormattedPropValue( key );

        if ( imagePath == null )
        {
            return defaultValue;
        }

        return resourceToImageIcon( imagePath );
    }
494308
protected ImageView getIcon(final String picturePath) {

		ImageView iv = null;
		if (picturePath == null) {
			iv = new ImageView(new Image(DEFAULT_ICON));
		} else {
			iv = new ImageView(new Image(picturePath));
		}
		iv.setPreserveRatio(true);
		iv.setFitHeight(20);
		return iv;
	}
628858
function getIcon(datum) {
  if (!datum.alert) return {};
  if (datum.alert.improvement) {
    return {
      icon: 'cp:thumb-up',
      iconColor: 'var(--improvement-color, green)',
    };
  }
  return {
    icon: 'cp:error',
    iconColor: datum.alert.bugId ?
      'var(--neutral-color-dark, grey)' : 'var(--error-color, red)',
  };
}
1236153
public List<IconType<ApplicationDescriptor>> getAllIcon()
   {
      List<IconType<ApplicationDescriptor>> list = new ArrayList<IconType<ApplicationDescriptor>>();
      List<Node> nodeList = model.get("icon");
      for(Node node: nodeList)
      {
         IconType<ApplicationDescriptor>  type = new IconTypeImpl<ApplicationDescriptor>(this, "icon", model, node);
         list.add(type);
      }
      return list;
   }
669919
@Nullable
  public static IIcon get (@Nullable final EDefaultIcon eDefaultIcon)
  {
    if (eDefaultIcon == null)
      return null;
    return s_aMap.get (eDefaultIcon);
  }
141757
private Severity getSeverity(SeverityEnumType severityType, Severity defaultSeverity) throws RuleException {
        return severityType == null ? defaultSeverity : Severity.fromValue(severityType.value());
    }
839539
public String getResourceTypeIcon(CmsFileInfo file) {

        String typeName = null;
        typeName = getIconMapping().get(file.getFileSuffix().toLowerCase());
        if (typeName == null) {
            typeName = getIconMapping().get("");
        }
        return typeName;
    }
633472
private Drawable getDefaultIcon1(Cursor cursor) {
        // Check the component that gave us the suggestion
        Drawable drawable = getActivityIconWithCache(mSearchable.getSearchActivity());
        if (drawable != null) {
            return drawable;
        }

        // Fall back to a default icon
        return mContext.getPackageManager().getDefaultActivityIcon();
    }
917479
public ImageIcon getHeaderIcon()
    {
        return org.jbundle.thin.base.screen.BaseApplet.getSharedInstance().loadImageIcon("tour/buttons/Meal.gif", "Meal");
    }
1185585
public Object getIcon(int iIconType)
    {
        if (iIconType == CalendarConstants.END_ICON)
            return m_iconEnd;
        else if (iIconType == CalendarConstants.START_ICON)
            return m_iconStart;
        else
            return null;
    }
1051984
private Icon getRolloverIcon(AbstractButton b, Icon defaultIcon) {
        ButtonModel model = b.getModel();
        Icon        icon;

        if (model.isSelected()) {
            icon = getIcon(b, b.getRolloverSelectedIcon(), defaultIcon, SynthConstants.MOUSE_OVER | SynthConstants.SELECTED);
        } else {
            icon = getIcon(b, b.getRolloverIcon(), defaultIcon, SynthConstants.MOUSE_OVER);
        }

        return icon;
    }
520339
public GuiIcon getIcon()
	{
		if (type == Type.WINDOW)
		{
			switch (tabPosition)
			{
				case TOP:
					return GuiIcon.TAB_WINDOW_TOP;
				case BOTTOM:
					return GuiIcon.TAB_WINDOW_BOTTOM;
				case LEFT:
					return GuiIcon.TAB_WINDOW_LEFT;
				case RIGHT:
					return GuiIcon.TAB_WINDOW_RIGHT;
			}
		}
		if (type == Type.PANEL)
		{
			switch (tabPosition)
			{
				case TOP:
					return GuiIcon.TAB_PANEL_TOP;
				case BOTTOM:
					return GuiIcon.TAB_PANEL_BOTTOM;
				case LEFT:
					return GuiIcon.TAB_PANEL_LEFT;
				case RIGHT:
					return GuiIcon.TAB_PANEL_RIGHT;
			}
		}
		return GuiIcon.FULL;
	}
4868
public IconType<WebFragmentDescriptor> getOrCreateIcon()
   {
      List<Node> nodeList = model.get("icon");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new IconTypeImpl<WebFragmentDescriptor>(this, "icon", model, nodeList.get(0));
      }
      return createIcon();
   }
619859
public String getSeverityName(Severity severity) {
		if (severity.equals(FacesMessage.SEVERITY_INFO)) {
			return "info";
		} else if (severity.equals(FacesMessage.SEVERITY_WARN)) {
			return "warn";
		} else if (severity.equals(FacesMessage.SEVERITY_ERROR)) {
			return "error";
		} else if (severity.equals(FacesMessage.SEVERITY_FATAL)) {
			return "fatal";
		}
		throw new IllegalStateException();
	}
447833
public Image getIcon(int iconKind) {
		switch (iconKind) {
			case ICON_COLOR_16x16 :
				return iconColor16;

			case ICON_COLOR_32x32 :
				return iconColor32;

			case ICON_MONO_16x16 :
				return iconMono16;

			case ICON_MONO_32x32 :
				return iconMono32;
		}

		return null;
	}
644002
public static Icon getImageIcon(ClassLoader objectLoader, String fileName) throws UrlProviderException
	{
		return getImageIcon(new ClassLoaderUrlProvider(objectLoader), fileName);
	}