Package com.jadice.web.util.icon.client
Class EffectIcons
java.lang.Object
com.jadice.web.util.icon.client.EffectIcons
-
Method Summary
Modifier and TypeMethodDescriptionstatic EffectIcongetEffectIcon(com.google.gwt.resources.client.ImageResource img) Get theEffectIconfor a given name.static EffectIcongetEffectIcon(com.google.gwt.resources.client.ImageResource img, int effectFlags) Get theEffectIconfor a given name.static EffectIcongetEffectIcon(com.google.gwt.resources.client.ImageResource img, int effectFlags, Dimension targetSize) Get theEffectIconfor a given name and a set of effect flags scaled to a given dimension.static EffectIcongetEffectIcon(Object bundle, String name) Get theEffectIconfor a given name.static EffectIcongetEffectIcon(Object bundle, String name, int effectFlags) Get theEffectIconfor a given name.static EffectIcongetEffectIcon(Object bundle, String name, int effectFlags, Dimension targetSize) Get theEffectIconfor a given name and a set of effect flags scaled to a given dimension.
-
Method Details
-
getEffectIcon
Get theEffectIconfor a given name. The Icon will have no SFX.- Parameters:
img- theImageResourcecontaining the raw image data- Returns:
- the icon or
nullif the icon wasn't found.
-
getEffectIcon
public static EffectIcon getEffectIcon(com.google.gwt.resources.client.ImageResource img, int effectFlags) Get theEffectIconfor a given name. The Icon will have the specified effects.- Parameters:
img- theImageResourcecontaining the raw image dataeffectFlags- an ORed combination of a set of effect flags.- Returns:
- the icon or
nullif the icon wasn't found. - See Also:
-
getEffectIcon
public static EffectIcon getEffectIcon(com.google.gwt.resources.client.ImageResource img, int effectFlags, Dimension targetSize) Get theEffectIconfor a given name and a set of effect flags scaled to a given dimension.- Parameters:
img- theImageResourcecontaining the raw image dataeffectFlags- an ORed combination of a set of effect flags.targetSize- the size of the resulting icon- Returns:
- the icon or
nullif the icon wasn't found. - See Also:
-
getEffectIcon
Get theEffectIconfor a given name. The Icon will have no SFX.- Parameters:
bundle-ClientBundleto get the Icon fromname- the icon's name.- Returns:
- the icon or
nullif the icon wasn't found.
-
getEffectIcon
Get theEffectIconfor a given name. The Icon will have the specified effects.- Parameters:
bundle-ClientBundleto get the Icon fromname- the icon's name.effectFlags- an ORed combination of a set of effect flags.- Returns:
- the icon or
nullif the icon wasn't found. - See Also:
-
getEffectIcon
public static EffectIcon getEffectIcon(Object bundle, String name, int effectFlags, Dimension targetSize) Get theEffectIconfor a given name and a set of effect flags scaled to a given dimension.- Parameters:
bundle-ClientBundleto get the Icon fromname- the icon's name.effectFlags- an ORed combination of a set of effect flags.targetSize- the size of the resulting icon- Returns:
- the icon or
nullif the icon wasn't found. - See Also:
-