Class IconUtil
java.lang.Object
com.inductiveautomation.ignition.designer.gui.IconUtil
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final IconUtil.Sizestatic final IconUtil.Sizestatic final IconUtil.Sizestatic final IconUtil.Size -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIconapplyBadge(Icon base, Icon badge) static BufferedImagecreateColorizedImage(Image image, Color color) Creates a BufferedImage will all the pixels replaced by the specified color.static GeneralPathReturns the Ignition checkmark logo as a GeneralPath, unless this build is a white label build, in which case it returns null.static IcongetDisabled(Icon icon) static IcongetFocused(Icon icon) static ImageIcongetGlyphIcon(String number, String name, int size) static ImageIconstatic ImageIcongetIcon(String name, IconUtil.Size size) static ImageIconDeprecated.static ImageIcongetIcon(String name, String category, IconUtil.Size size) Deprecated.static ImageIconDeprecated.static ImageIconDeprecated.static IcongetInherited(Icon icon) static ImageIcongetRootIcon(Class relativeClass, String path) Retrieves an image located in the specified class's *.jar file.static ImageIcongetRootIcon(String path) Loads the image found at /images/{path}static ImageIcongetRootIconScaled(Class relativeClass, String path, int size) static ImageIcongetRootIconScaled(String path, int size) static IcongetSelected(Icon icon) static voidreplaceAllColorsWith(BufferedImage image, Color color) For a provided image, will replace all pixels in the image with the provided color, while preserving the alpha values.static ImageIconstatic ImageIconscaleIcon(String iconName, IconUtil.Size size, int height, float opacity) static Iconstatic ImageIconScales an icon to the given height.
-
Field Details
-
C_AP
- See Also:
-
C_BD
- See Also:
-
C_NS
- See Also:
-
C_OP
- See Also:
-
C_SD
- See Also:
-
C_APPLICATION_BASICS
- See Also:
-
C_BUSINESS_DATA
- See Also:
-
C_NETWORK_SECURITY
- See Also:
-
C_OBJECT_PEOPLE
- See Also:
-
C_SOFTWARE_DEVELOPMENT
- See Also:
-
S_16
-
S_24
-
S_32
-
S_48
-
-
Method Details
-
getIcon
Deprecated.Categories are no longer used -
getIcon
Deprecated.Categories are no longer used. -
getIcon
Deprecated.Categories are no longer used. -
getIcon
@Deprecated public static ImageIcon getIcon(String name, String category, String size, String style) Deprecated.Categories are no longer used. -
getIcon
-
getIcon
-
getRootIcon
Loads the image found at /images/{path} -
getRootIconScaled
-
getRootIconScaled
-
getGlyphIcon
-
getRootIcon
Retrieves an image located in the specified class's *.jar file. It attempts to load the image by looking for it at: "/images/path" -
scaleIcon
-
scaleIcon
Scales an icon to the given height. The width will be proportional. Opacity can range from [0.0-transparent] to [1.0-opaque] -
scaleIcon
-
scaleIcon
-
applyBadge
-
getSelected
-
getFocused
-
getDisabled
-
getInherited
-
getCheckPath
Returns the Ignition checkmark logo as a GeneralPath, unless this build is a white label build, in which case it returns null. -
createColorizedImage
Creates a BufferedImage will all the pixels replaced by the specified color. This is used to create versions of icons from an existing icon, for which icon variants are not provided (inherited, overridden icons eg).- Parameters:
image- Source image for which all pixels will have its colors replaced.color- The replacement color.- Returns:
- BufferedImage with all pixels of the specified color.
-
replaceAllColorsWith
For a provided image, will replace all pixels in the image with the provided color, while preserving the alpha values.- Parameters:
image- The image for pixel color replacementcolor- The color all pixels will be replaced with
-