Class RadianceImageCreator
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.RadianceImageCreator
Provides utility functions for creating various images for Radiance look and feel. This
class is for internal use only.
- Author:
- Kirill Grouchnikov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IcongetCapsLockIcon(ContainerColorTokens tokens, Component c) Returns a caps lock icon that matches the specified tokens.static BufferedImagegetColorImage(Component comp, Icon original, Color color, float alpha) static BufferedImagegetContainerTokensImage(Component comp, Icon original, ContainerColorTokens colorTokens, float originalBrightnessFactor) Creates a new version of the specified icon that is rendered in the colors of the specified color tokens.static BufferedImagegetContainerTokensImage(BufferedImage original, ContainerColorTokens colorTokens, float originalBrightnessFactor, float alpha) Creates a new version of the specified image that is rendered in the colors of the specified color tokens.static ImagegetCrayonsImage(Color fillColor) Retrieves crayons image for the crayon panel of color chooser.static IcongetSmallLockIcon(ContainerColorTokens tokens, Component c) Returns a lock icon that matches the specified tokens.
-
Constructor Details
-
RadianceImageCreator
public RadianceImageCreator()
-
-
Method Details
-
getCrayonsImage
-
getSmallLockIcon
Returns a lock icon that matches the specified tokens.- Parameters:
tokens- Tokens.- Returns:
- Lock icon that matches the specified tokens.
-
getCapsLockIcon
Returns a caps lock icon that matches the specified tokens.- Parameters:
tokens- Tokens.- Returns:
- Caps lock icon that matches the specified tokens.
-
getContainerTokensImage
public static BufferedImage getContainerTokensImage(Component comp, Icon original, ContainerColorTokens colorTokens, float originalBrightnessFactor) Creates a new version of the specified icon that is rendered in the colors of the specified color tokens.- Parameters:
comp- Component.original- The original icon.colorTokens- Color tokens.- Returns:
- Tokens-based version of the original icon.
-
getContainerTokensImage
public static BufferedImage getContainerTokensImage(BufferedImage original, ContainerColorTokens colorTokens, float originalBrightnessFactor, float alpha) Creates a new version of the specified image that is rendered in the colors of the specified color tokens.- Parameters:
original- The original image.colorTokens- Color tokens.originalBrightnessFactor- The original brightness factor.- Returns:
- Tokens-based version of the original icon.
-
getColorImage
-