Class IconUtil
java.lang.Object
com.inductiveautomation.ignition.designer.gui.IconUtil
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final IconUtil.Size
static final IconUtil.Size
static final IconUtil.Size
static final IconUtil.Size
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIcon
applyBadge
(Icon base, Icon badge) static BufferedImage
createColorizedImage
(Image image, Color color) Creates a BufferedImage will all the pixels replaced by the specified color.static GeneralPath
Returns the Ignition checkmark logo as a GeneralPath, unless this build is a white label build, in which case it returns null.static Icon
getDisabled
(Icon icon) static Icon
getFocused
(Icon icon) static ImageIcon
getGlyphIcon
(String number, String name, int size) static ImageIcon
static ImageIcon
getIcon
(String name, IconUtil.Size size) static ImageIcon
Deprecated.static ImageIcon
getIcon
(String name, String category, IconUtil.Size size) Deprecated.static ImageIcon
Deprecated.static ImageIcon
Deprecated.static Icon
getInherited
(Icon icon) static ImageIcon
getRootIcon
(Class relativeClass, String path) Retrieves an image located in the specified class's *.jar file.static ImageIcon
getRootIcon
(String path) Loads the image found at /images/{path}static ImageIcon
getRootIconScaled
(Class relativeClass, String path, int size) static ImageIcon
getRootIconScaled
(String path, int size) static Icon
getSelected
(Icon icon) static void
replaceAllColorsWith
(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 ImageIcon
static ImageIcon
scaleIcon
(String iconName, IconUtil.Size size, int height, float opacity) static Icon
static ImageIcon
Scales 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
-