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