set the icon offset for Y from resource

@return The current IconicsDrawable for chaining.
769912
@NonNull
    public IconicsDrawable iconOffsetYRes(@DimenRes int sizeResId) {
        return iconOffsetYPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
532146
public Icon<Connector<T>> getOrCreateIcon()
   {
      Node node = childNode.getOrCreate("icon");
      Icon<Connector<T>> icon = new IconImpl<Connector<T>>(this, "icon", childNode, node);
      return icon;
   }
1198030
@NonNull
  @SuppressWarnings("WeakerAccess")
  public SnackbarWrapper setIcon(@DrawableRes int icon) {
    return setIcon(ContextCompat.getDrawable(context, icon));
  }
192456
@NonNull
    public IconicsDrawable roundedCornersPx(@Dimension(unit = PX) int sizePx) {
        mRoundedCornerRx = mRoundedCornerRy = sizePx;

        invalidateSelf();
        return this;
    }
516011
public ClickableIconOverlay set(int id, IGeoPoint position, Drawable icon, DataType data) {
        set(position, icon);
        mId = id;
        mData = data;
        return this;
    }
984881
def set_icon(self, icon):
        ''''''
        self._icon = icon
        return self._listitem.setIconImage(icon)
967892
public Icon getIcon (String iconSet, int index)
    {
        try {
            // see if the tileset is already loaded
            TileSet set = _icons.get(iconSet);

            // load it up if not
            if (set == null) {
                String path = _config.getProperty(iconSet + PATH_SUFFIX);
                if (StringUtil.isBlank(path)) {
                    throw new Exception("No path specified for icon set");
                }

                String metstr = _config.getProperty(iconSet + METRICS_SUFFIX);
                if (StringUtil.isBlank(metstr)) {
                    throw new Exception("No metrics specified for icon set");
                }

                int[] metrics = StringUtil.parseIntArray(metstr);
                if (metrics == null || metrics.length != 2) {
                    throw new Exception("Invalid icon set metrics " +
                                        "[metrics=" + metstr + "]");
                }

                // load up the tileset
                if (_rsrcSet == null) {
                    set = _tilemgr.loadTileSet(
                        path, metrics[0], metrics[1]);
                } else {
                    set = _tilemgr.loadTileSet(
                        _rsrcSet, path, metrics[0], metrics[1]);
                }

                // cache it
                _icons.put(iconSet, set);
            }

            // fetch the appropriate image and create an image icon
            return new TileIcon(set.getTile(index));

        } catch (Exception e) {
            log.warning("Unable to load icon [iconSet=" + iconSet +
                        ", index=" + index + ", error=" + e + "].");
        }

        // return an error icon
        return new ImageIcon(ImageUtil.createErrorImage(32, 32));
    }
701531
@NonNull
    public IconicsDrawable iconText(@NonNull String icon, @Nullable Typeface typeface) {
        mPlainIcon = icon;
        mIcon = null;
        mIconBrush.getPaint().setTypeface(typeface == null ? Typeface.DEFAULT : typeface);

        invalidateSelf();
        return this;
    }
1346143
@NonNull
    public IconicsDrawable icon(@NonNull String icon) {
        try {
            ITypeface font = Iconics.findFont(mContext, icon.substring(0, 3));
            icon = icon.replace("-", "_");
            icon(font.getIcon(icon));
        } catch (Exception ex) {
            Log.e(Iconics.TAG, "Wrong icon name: " + icon);
        }
        return this;
    }
465649
protected Icon getSizingIcon(AbstractButton b) {
        // NOTE: this is slightly different than BasicButtonUI, where it
        // would just use getIcon, but this should be ok.
        Icon icon = (b.isEnabled() || b.getDisabledIcon() == null) ? b.getIcon() : b.getDisabledIcon();

        if (icon == null) {
            icon = getDefaultIcon(b);
        }

        return icon;
    }
1303317
public Icon offset(int offsetX, int offsetY)
	{
		initSprite(sheetWidth, sheetHeight, getOriginX() + offsetX, getOriginY() + offsetY, isRotated());
		return this;
	}
730315
@Nullable
    public static IconicsDrawable getIconicsImageViewDrawable(@NonNull Context ctx,
                                                              @Nullable AttributeSet attrs) {
        final TypedArray a = ctx.obtainStyledAttributes(attrs, R.styleable.IconicsImageView);
        try {
            return new IconicsAttrsExtractor(ctx, a)
                    .iconId(R.styleable.IconicsImageView_iiv_icon)
                    .colorsId(R.styleable.IconicsImageView_iiv_color)
                    .sizeId(R.styleable.IconicsImageView_iiv_size)
                    .paddingId(R.styleable.IconicsImageView_iiv_padding)
                    .contourColorId(R.styleable.IconicsImageView_iiv_contour_color)
                    .contourWidthId(R.styleable.IconicsImageView_iiv_contour_width)
                    .backgroundColorId(R.styleable.IconicsImageView_iiv_background_color)
                    .cornerRadiusId(R.styleable.IconicsImageView_iiv_corner_radius)
                    .backgroundContourColorId(R.styleable.IconicsImageView_iiv_background_contour_color)
                    .backgroundContourWidthId(R.styleable.IconicsImageView_iiv_background_contour_width)
                    .shadowRadiusId(R.styleable.IconicsImageView_iiv_shadow_radius)
                    .shadowDxId(R.styleable.IconicsImageView_iiv_shadow_dx)
                    .shadowDyId(R.styleable.IconicsImageView_iiv_shadow_dy)
                    .shadowColorId(R.styleable.IconicsImageView_iiv_shadow_color)
                    .animationsId(R.styleable.IconicsImageView_iiv_animations)
                    .extract();
        } finally {
            a.recycle();
        }
    }
31762
public void setIcon(Object icon, int iIconType)
    {
        if (iIconType == CalendarConstants.END_ICON)
            m_iconEnd = icon;
        if (iIconType == CalendarConstants.END_ICON)
            m_iconStart = icon;
    }
687492
@NonNull
  @SuppressWarnings("WeakerAccess")
  public SnackbarWrapper setIconMarginRes(@DimenRes int iconMargin) {
    return setIconMargin(context.getResources().getDimensionPixelSize(iconMargin));
  }
877741
public static void styleEditable(@NonNull Context ctx,
                                     @Nullable HashMap<String, ITypeface> fonts,
                                     @NonNull Editable textSpanned,
                                     @Nullable List<CharacterStyle> styles,
                                     @Nullable HashMap<String, List<CharacterStyle>> stylesFor) {
        fonts = init(ctx, fonts);

        //find all icons which should be replaced with the iconFont
        List<StyleContainer> styleContainers = IconicsUtils.findIconsFromEditable(textSpanned, fonts);

        //set all the icons and styles
        IconicsUtils.applyStyles(ctx, textSpanned, styleContainers, styles, stylesFor);
    }
1098736
@Override
	public void setIconForButton(IconLocationType iconForButton)
	{
		if (null != iconForButton)
		{
			myUserInterfaceAction.setIconForButton(iconForButton);
			ImageIcon _icon = retrieveIcon(getIconForButton());
			putValue(Action.LARGE_ICON_KEY, _icon);
		}
	}
1229201
public void setIcon(Icon icon) {

        if (icon == null) {
            m_iconContainer.clear();
            this.m_icon = null;
        } else {
            m_iconContainer.getElement().appendChild(icon.getElement());
            this.m_icon = icon;
        }
    }