| java.lang.Object org.jvnet.substance.SubstanceImageCreator
SubstanceImageCreator | final public class SubstanceImageCreator (Code) | | Provides utility functions for creating various images for Substance
look and feel. This class is for internal use only.
author: Kirill Grouchnikov |
Method Summary | |
public static BufferedImage | getArrow(int width, int height, float strokeWidth, int direction, SubstanceTheme theme) Retrieves arrow image.
Parameters: width - Arrow width. Parameters: height - Arrow height. Parameters: strokeWidth - Stroke width. Parameters: direction - Arrow direction. Parameters: theme - Theme for the arrow. | public static Icon | getArrowIcon(int fontSize, int direction, SubstanceTheme theme) Returns arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. | public static Icon | getArrowIcon(int fontSize, int deltaWidth, int deltaHeight, float deltaStrokeWidth, int direction, SubstanceTheme theme) Returns arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: deltaWidth - Arrow width delta. Parameters: deltaHeight - Arrow height delta. Parameters: deltaStrokeWidth - Arrow stroke width delta. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. | public static Icon | getArrowIcon(int width, int height, float strokeWidth, int direction, SubstanceTheme theme) Retrieves arrow icon.
Parameters: width - Arrow width. Parameters: height - Arrow height. Parameters: strokeWidth - Stroke width. Parameters: direction - Arrow direction. Parameters: theme - Theme for the arrow. | public static Image | getBigHexaMarker(int value, SubstanceTheme theme) Returns big icon representation of the specified integer value. | public static BufferedImage | getCheckBox(AbstractButton button, int dimension, ComponentState componentState, SubstanceTheme theme1, SubstanceTheme theme2, float interpolationCyclePos10, float checkMarkVisibility, boolean isCheckMarkFadingOut) Retrieves check box of the specified size that matches the specified
component state.
Parameters: button - Button for the check mark. Parameters: dimension - Check box size. Parameters: componentState - Component state. | public static Icon | getCloseIcon(SubstanceTheme theme) Returns close icon.
Parameters: theme - Theme for the icon. | public static Icon | getCloseIcon(int iSize, SubstanceTheme theme) Returns close icon.
Parameters: iSize - Icon dimension. Parameters: theme - Theme for the icon. | public static Icon | getCloseIcon(int iSize, ColorScheme colorScheme) Returns close icon.
Parameters: iSize - Icon dimension. Parameters: colorScheme - Color scheme for the icon. | public static BufferedImage | getCompositeRoundedBackground(JComponent component, int width, int height, int cornerRadius, AbstractButton decrButton, AbstractButton incrButton, boolean flipSides) Retrieves composite background for the specified parameters. | public static Image | getCrayonsImage() Retrieves crayons image for the crayon panel of color chooser. | public static Icon | getDoubleArrowIcon(int fontSize, int direction, SubstanceTheme theme) Returns double arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. | public static Icon | getDoubleArrowIcon(int fontSize, int deltaWidth, int deltaHeight, float deltaStrokeWidth, int direction, SubstanceTheme theme) Returns double arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: deltaWidth - Arrow width delta. Parameters: deltaHeight - Arrow height delta. Parameters: deltaStrokeWidth - Arrow stroke width delta. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. | public static Icon | getDoubleArrowIcon(int width, int height, float strokeWidth, int direction, SubstanceTheme theme) Retrieves arrow icon.
Parameters: width - Arrow width. Parameters: height - Arrow height. Parameters: strokeWidth - Stroke width. Parameters: direction - Arrow direction. Parameters: theme - Theme for the arrow. | public static BufferedImage | getDragImage(Component c, SubstanceTheme theme, int width, int height, boolean isBig, boolean isCrowded, int maxNumberOfStripes) Returns drag bumps image.
Parameters: c - Component. Parameters: theme - Theme. Parameters: alwaysUseActive - Indicates whether the active theme should always be used. Parameters: width - Drag bumps width. Parameters: height - Drag bumps height. Parameters: isCrowded - Indicates whether the bumps should be painted closely. Parameters: maxNumberOfStripes - The maximum number of bump stripes (rows or columns). | public static Icon | getHexaMarker(int value, SubstanceTheme theme) Returns small icon representation of the specified integer value. | public static Icon | getMaximizeIcon(SubstanceTheme theme) Returns maximize icon.
Parameters: theme - Theme for the icon. | public static Icon | getMaximizeIcon(int iSize, SubstanceTheme theme) Returns maximize icon.
Parameters: iSize - Icon dimension. Parameters: theme - Theme for the icon. | public static Icon | getMinimizeIcon(SubstanceTheme theme) Returns minimize icon.
Parameters: theme - Theme for the icon. | public static Icon | getMinimizeIcon(int iSize, SubstanceTheme theme) Returns minimize icon.
Parameters: iSize - Icon dimension. Parameters: theme - Theme for the icon. | public static BufferedImage | getNegated(BufferedImage bi) Returns the negative of the specified image.
Parameters: bi - Image. | public static BufferedImage | getOneLineGradient(int width, Color colorLeft, Color colorRight, Map<Integer, Color> waypoints) Returns a one-pixel high line of the specified width that has gradient
based on the parameters.
Parameters: width - The width of the resulting image. Parameters: colorLeft - The color of the leftmost pixel. Parameters: colorRight - The color of the rightmost pixel. Parameters: waypoints - Each entry in this map specifies color for somewaypoint . | public static BufferedImage | getRadioButton(Component component, int dimension, ComponentState componentState, int offsetX, SubstanceTheme theme1, SubstanceTheme theme2, float interpolationCyclePos10, float checkMarkVisibility) Retrieves radio button of the specified size that matches the specified
parameters.
Parameters: component - Component. Parameters: dimension - Radio button dimension. Parameters: componentState - Component state. Parameters: offsetX - Offset on X axis - should be positive in order to see theentire radio button. Parameters: theme1 - Theme 1. Parameters: theme2 - Theme 2. Parameters: interpolationCyclePos10 - Interpolation cycle. Parameters: checkMarkVisibility - Checkmark visibility in 0.0-1.0 range. | public static BufferedImage | getResizeGripImage(Component c, SubstanceTheme theme, int dimension, boolean isCrowded) Returns resize grip image.
Parameters: c - Component. Parameters: theme - Theme. Parameters: alwaysUseActive - Indicates whether the active theme should always be used. Parameters: dimension - Resize grip width. Parameters: isCrowded - Indicates whether the grips should be painted closely. | public static Icon | getRestoreIcon(SubstanceTheme theme) Returns restore icon.
Parameters: theme - Theme for the icon. | public static BufferedImage | getRotated(BufferedImage bi, int quadrantClockwise) Returns rotated image.
Parameters: bi - Image to rotate. Parameters: quadrantClockwise - Amount of quadrants to rotate in clockwise directio. | public static Icon | getSearchIcon(int dimension, SubstanceTheme theme, boolean leftToRight) Returns search icon.
Parameters: dimension - Icon dimension. Parameters: theme - Icon theme. Parameters: leftToRight - LTR indication of the resulting icon. | public static BufferedImage | getSingleCrayon(Color mainColor, int width, int height) Retrieves a single crayon of the specified color and dimensions for the
crayon panel in color chooser.
Parameters: mainColor - Crayon main color. Parameters: width - Crayon width. Parameters: height - Crayon height. | public static Icon | getSmallLockIcon(ColorScheme scheme) Returns a lock icon that matches the specified scheme.
Parameters: scheme - Scheme instance. | public static BufferedImage | getSplitDividerBumpImage(Component c, int width, int height, boolean isHorizontal, ComponentState componentState, SubstanceTheme theme1, SubstanceTheme theme2, float interpolationCyclePos10) | public static BufferedImage | getStripe(int baseSize, Color color) Returns diagonal stripe image.
Parameters: baseSize - Stripe base in pixels. Parameters: color - Stripe color. | public static Icon | getThemeIcon(SubstanceTheme theme) Returns an icon that matches the specified theme.
Parameters: theme - Theme instance. | public static BufferedImage | getThemeImage(Component comp, Icon original, SubstanceTheme theme, boolean toSaturate) Creates a new version of the specified icon that is rendered in the
colors of the specified theme.
Parameters: comp - Component. Parameters: original - The original icon. Parameters: theme - Theme. Parameters: toSaturate - Indicates whether the resulting image should be saturated. | public static BufferedImage | getThemeImage(BufferedImage original, SubstanceTheme theme, boolean toSaturate) Creates a new version of the specified image that is rendered in the
colors of the specified theme.
Parameters: original - The original image. Parameters: theme - Theme. Parameters: toSaturate - Indicates whether the resulting image should be saturated. | public static BufferedImage | getTreeIcon(JTree tree, SubstanceTheme theme, boolean isCollapsed) Retrieves tree icon.
Parameters: tree - Tree. Parameters: theme - Icon theme. Parameters: isCollapsed - Collapsed state. | public static Icon | getWatermarkIcon(SubstanceWatermark watermark) Returns an icon that matches the specified watermark.
Parameters: watermark - Watermark instance. | public static Icon | makeTransparent(Component c, Icon icon, double alpha) Makes the specified icon transparent.
Parameters: c - Component. Parameters: icon - Icon. Parameters: alpha - The opaqueness of the resulting image. | public static BufferedImage | overlayEcho(BufferedImage image, float echoAlpha, int offsetX, int offsetY) Overlays light-colored echo below the specified image.
Parameters: image - The input image. Parameters: echoAlpha - Alpha channel for the echo image. Parameters: offsetX - X offset of the echo. Parameters: offsetY - Y offset of the echo. | public static void | paintBorder(Component c, Graphics2D graphics, int x, int y, int width, int height, float radius, ColorScheme borderScheme) Paints border instance of specified dimensions and status. | public static void | paintBorder(Component c, Graphics2D graphics, int x, int y, int width, int height, float radius, SubstanceTheme theme) Paints border instance of specified dimensions and status. | public static void | paintRectangularBackground(Graphics g, int startX, int startY, int width, int height, ColorScheme colorScheme, float borderAlpha, boolean isVertical) Paints rectangular gradient background. | public static void | paintRectangularStripedBackground(Graphics g, int startX, int startY, int width, int height, ColorScheme colorScheme, BufferedImage stripeImage, int stripeOffset, float borderAlpha, boolean isVertical) Paints rectangular gradient background with spots and optional replicated
stripe image. | public static Icon | toGreyscale(Icon icon) Translated the specified icon to grey scale.
Parameters: icon - Icon. |
getArrowIcon | public static Icon getArrowIcon(int fontSize, int direction, SubstanceTheme theme)(Code) | | Returns arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. Arrow icon. |
getArrowIcon | public static Icon getArrowIcon(int fontSize, int deltaWidth, int deltaHeight, float deltaStrokeWidth, int direction, SubstanceTheme theme)(Code) | | Returns arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: deltaWidth - Arrow width delta. Parameters: deltaHeight - Arrow height delta. Parameters: deltaStrokeWidth - Arrow stroke width delta. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. Arrow icon. |
getBigHexaMarker | public static Image getBigHexaMarker(int value, SubstanceTheme theme)(Code) | | Returns big icon representation of the specified integer value. The
remainder of dividing the integer by 16 is translated to four circles
arranged in 2*2 grid.
Parameters: value - Integer value to represent. Parameters: theme - Icon theme. Icon representation of the specified integer value. |
getCheckBox | public static BufferedImage getCheckBox(AbstractButton button, int dimension, ComponentState componentState, SubstanceTheme theme1, SubstanceTheme theme2, float interpolationCyclePos10, float checkMarkVisibility, boolean isCheckMarkFadingOut)(Code) | | Retrieves check box of the specified size that matches the specified
component state.
Parameters: button - Button for the check mark. Parameters: dimension - Check box size. Parameters: componentState - Component state. Check box of the specified size that matches the specifiedcomponent state. Parameters: theme1 - Theme 1. Parameters: theme2 - Theme 2. Parameters: interpolationCyclePos10 - Interpolation cycle. Parameters: checkMarkVisibility - Checkmark visibility in 0.0-1.0 range. |
getCloseIcon | public static Icon getCloseIcon(SubstanceTheme theme)(Code) | | Returns close icon.
Parameters: theme - Theme for the icon. Close icon. |
getCloseIcon | public static Icon getCloseIcon(int iSize, SubstanceTheme theme)(Code) | | Returns close icon.
Parameters: iSize - Icon dimension. Parameters: theme - Theme for the icon. Close icon. |
getCloseIcon | public static Icon getCloseIcon(int iSize, ColorScheme colorScheme)(Code) | | Returns close icon.
Parameters: iSize - Icon dimension. Parameters: colorScheme - Color scheme for the icon. Close icon. |
getCompositeRoundedBackground | public static BufferedImage getCompositeRoundedBackground(JComponent component, int width, int height, int cornerRadius, AbstractButton decrButton, AbstractButton incrButton, boolean flipSides)(Code) | | Retrieves composite background for the specified parameters. The
composite background consists of three layers:
- Layer that matches the
increased state.
- Layer that matches the
decreased state.
- Regular layer with rounded background.
The layers are drawn in the following order:
- The left half of the first layer
- The right half of the second layer
- The third layer
Combined together, the layers create the image for scrollbar track with
continuation of the arrow increase and decrease buttons.
Parameters: component - Component. Parameters: width - Image width. Parameters: height - Image height. Parameters: cornerRadius - Corner radius. Parameters: decrButton - The decrease button. Parameters: incrButton - The increase button. Parameters: flipSides - If true , the drawn halves of the first and thesecond layers above will be swapped. Composite background for the specified parameters. |
getCrayonsImage | public static Image getCrayonsImage()(Code) | | Retrieves crayons image for the crayon panel of color chooser.
Crayons image. |
getDoubleArrowIcon | public static Icon getDoubleArrowIcon(int fontSize, int direction, SubstanceTheme theme)(Code) | | Returns double arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. Double arrow icon. |
getDoubleArrowIcon | public static Icon getDoubleArrowIcon(int fontSize, int deltaWidth, int deltaHeight, float deltaStrokeWidth, int direction, SubstanceTheme theme)(Code) | | Returns double arrow icon for the specified parameters.
Parameters: fontSize - Font size. Parameters: deltaWidth - Arrow width delta. Parameters: deltaHeight - Arrow height delta. Parameters: deltaStrokeWidth - Arrow stroke width delta. Parameters: direction - Arrow direction. Parameters: theme - Icon theme. Double arrow icon. |
getDragImage | public static BufferedImage getDragImage(Component c, SubstanceTheme theme, int width, int height, boolean isBig, boolean isCrowded, int maxNumberOfStripes)(Code) | | Returns drag bumps image.
Parameters: c - Component. Parameters: theme - Theme. Parameters: alwaysUseActive - Indicates whether the active theme should always be used. Parameters: width - Drag bumps width. Parameters: height - Drag bumps height. Parameters: isCrowded - Indicates whether the bumps should be painted closely. Parameters: maxNumberOfStripes - The maximum number of bump stripes (rows or columns). Drag bumps image. |
getHexaMarker | public static Icon getHexaMarker(int value, SubstanceTheme theme)(Code) | | Returns small icon representation of the specified integer value. The
remainder of dividing the integer by 16 is translated to four circles
arranged in 2*2 grid.
Parameters: value - Integer value to represent. Parameters: theme - Icon theme. Icon representation of the specified integer value. |
getMaximizeIcon | public static Icon getMaximizeIcon(SubstanceTheme theme)(Code) | | Returns maximize icon.
Parameters: theme - Theme for the icon. Maximize icon. |
getMaximizeIcon | public static Icon getMaximizeIcon(int iSize, SubstanceTheme theme)(Code) | | Returns maximize icon.
Parameters: iSize - Icon dimension. Parameters: theme - Theme for the icon. Maximize icon. |
getMinimizeIcon | public static Icon getMinimizeIcon(SubstanceTheme theme)(Code) | | Returns minimize icon.
Parameters: theme - Theme for the icon. Minimize icon. |
getMinimizeIcon | public static Icon getMinimizeIcon(int iSize, SubstanceTheme theme)(Code) | | Returns minimize icon.
Parameters: iSize - Icon dimension. Parameters: theme - Theme for the icon. Minimize icon. |
getNegated | public static BufferedImage getNegated(BufferedImage bi)(Code) | | Returns the negative of the specified image.
Parameters: bi - Image. The negative of the specified image. |
getOneLineGradient | public static BufferedImage getOneLineGradient(int width, Color colorLeft, Color colorRight, Map<Integer, Color> waypoints)(Code) | | Returns a one-pixel high line of the specified width that has gradient
based on the parameters.
Parameters: width - The width of the resulting image. Parameters: colorLeft - The color of the leftmost pixel. Parameters: colorRight - The color of the rightmost pixel. Parameters: waypoints - Each entry in this map specifies color for somewaypoint . The pixels between the waypointswill be colored based on the interpolation of the two closestwaypoints. One-pixel high line of the specified width that has gradientbased on the parameters. |
getRadioButton | public static BufferedImage getRadioButton(Component component, int dimension, ComponentState componentState, int offsetX, SubstanceTheme theme1, SubstanceTheme theme2, float interpolationCyclePos10, float checkMarkVisibility)(Code) | | Retrieves radio button of the specified size that matches the specified
parameters.
Parameters: component - Component. Parameters: dimension - Radio button dimension. Parameters: componentState - Component state. Parameters: offsetX - Offset on X axis - should be positive in order to see theentire radio button. Parameters: theme1 - Theme 1. Parameters: theme2 - Theme 2. Parameters: interpolationCyclePos10 - Interpolation cycle. Parameters: checkMarkVisibility - Checkmark visibility in 0.0-1.0 range. Radio button of the specified size that matches the specifiedparameters. |
getResizeGripImage | public static BufferedImage getResizeGripImage(Component c, SubstanceTheme theme, int dimension, boolean isCrowded)(Code) | | Returns resize grip image.
Parameters: c - Component. Parameters: theme - Theme. Parameters: alwaysUseActive - Indicates whether the active theme should always be used. Parameters: dimension - Resize grip width. Parameters: isCrowded - Indicates whether the grips should be painted closely. Resize grip image. |
getRestoreIcon | public static Icon getRestoreIcon(SubstanceTheme theme)(Code) | | Returns restore icon.
Parameters: theme - Theme for the icon. Restore icon. |
getRotated | public static BufferedImage getRotated(BufferedImage bi, int quadrantClockwise)(Code) | | Returns rotated image.
Parameters: bi - Image to rotate. Parameters: quadrantClockwise - Amount of quadrants to rotate in clockwise directio. Therotation angle is 90 times this value. Rotated image. |
getSearchIcon | public static Icon getSearchIcon(int dimension, SubstanceTheme theme, boolean leftToRight)(Code) | | Returns search icon.
Parameters: dimension - Icon dimension. Parameters: theme - Icon theme. Parameters: leftToRight - LTR indication of the resulting icon. Search icon. |
getSingleCrayon | public static BufferedImage getSingleCrayon(Color mainColor, int width, int height)(Code) | | Retrieves a single crayon of the specified color and dimensions for the
crayon panel in color chooser.
Parameters: mainColor - Crayon main color. Parameters: width - Crayon width. Parameters: height - Crayon height. Crayon image. |
getSmallLockIcon | public static Icon getSmallLockIcon(ColorScheme scheme)(Code) | | Returns a lock icon that matches the specified scheme.
Parameters: scheme - Scheme instance. Lock icon that matches the specified scheme. |
getStripe | public static BufferedImage getStripe(int baseSize, Color color)(Code) | | Returns diagonal stripe image.
Parameters: baseSize - Stripe base in pixels. Parameters: color - Stripe color. Diagonal stripe image. |
getThemeIcon | public static Icon getThemeIcon(SubstanceTheme theme)(Code) | | Returns an icon that matches the specified theme.
Parameters: theme - Theme instance. Icon that matches the specified theme. |
getThemeImage | public static BufferedImage getThemeImage(Component comp, Icon original, SubstanceTheme theme, boolean toSaturate)(Code) | | Creates a new version of the specified icon that is rendered in the
colors of the specified theme.
Parameters: comp - Component. Parameters: original - The original icon. Parameters: theme - Theme. Parameters: toSaturate - Indicates whether the resulting image should be saturated. Theme-based version of the original icon. |
getThemeImage | public static BufferedImage getThemeImage(BufferedImage original, SubstanceTheme theme, boolean toSaturate)(Code) | | Creates a new version of the specified image that is rendered in the
colors of the specified theme.
Parameters: original - The original image. Parameters: theme - Theme. Parameters: toSaturate - Indicates whether the resulting image should be saturated. Theme-based version of the original icon. |
getTreeIcon | public static BufferedImage getTreeIcon(JTree tree, SubstanceTheme theme, boolean isCollapsed)(Code) | | Retrieves tree icon.
Parameters: tree - Tree. Parameters: theme - Icon theme. Parameters: isCollapsed - Collapsed state. Tree icon. |
getWatermarkIcon | public static Icon getWatermarkIcon(SubstanceWatermark watermark)(Code) | | Returns an icon that matches the specified watermark.
Parameters: watermark - Watermark instance. Icon that matches the specified watermark. |
makeTransparent | public static Icon makeTransparent(Component c, Icon icon, double alpha)(Code) | | Makes the specified icon transparent.
Parameters: c - Component. Parameters: icon - Icon. Parameters: alpha - The opaqueness of the resulting image. The closer this valueis to 0.0, the more transparent resulting image will be. Transparent version of the specified icon. |
overlayEcho | public static BufferedImage overlayEcho(BufferedImage image, float echoAlpha, int offsetX, int offsetY)(Code) | | Overlays light-colored echo below the specified image.
Parameters: image - The input image. Parameters: echoAlpha - Alpha channel for the echo image. Parameters: offsetX - X offset of the echo. Parameters: offsetY - Y offset of the echo. Image with overlayed echo. |
paintBorder | public static void paintBorder(Component c, Graphics2D graphics, int x, int y, int width, int height, float radius, ColorScheme borderScheme)(Code) | | Paints border instance of specified dimensions and status.
Parameters: c - Component. Parameters: graphics - Graphics context. Parameters: x - Component left X (in graphics context). Parameters: y - Component top Y (in graphics context). Parameters: width - Border width. Parameters: height - Border height. Parameters: radius - Border radius. Parameters: borderScheme - Border color scheme. |
paintBorder | public static void paintBorder(Component c, Graphics2D graphics, int x, int y, int width, int height, float radius, SubstanceTheme theme)(Code) | | Paints border instance of specified dimensions and status.
Parameters: c - Component. Parameters: graphics - Graphics context. Parameters: x - Component left X (in graphics context). Parameters: y - Component top Y (in graphics context). Parameters: width - Border width. Parameters: height - Border height. Parameters: radius - Border radius. Parameters: theme - Border theme. |
paintRectangularBackground | public static void paintRectangularBackground(Graphics g, int startX, int startY, int width, int height, ColorScheme colorScheme, float borderAlpha, boolean isVertical)(Code) | | Paints rectangular gradient background.
Parameters: g - Graphic context. Parameters: startX - Background starting X coord. Parameters: startY - Background starting Y coord. Parameters: width - Background width. Parameters: height - Background height. Parameters: colorScheme - Color scheme for the background. Parameters: borderAlpha - Border alpha. Parameters: isVertical - if true , the gradient will be vertical, iffalse , the gradient will be horizontal. |
paintRectangularStripedBackground | public static void paintRectangularStripedBackground(Graphics g, int startX, int startY, int width, int height, ColorScheme colorScheme, BufferedImage stripeImage, int stripeOffset, float borderAlpha, boolean isVertical)(Code) | | Paints rectangular gradient background with spots and optional replicated
stripe image.
Parameters: g - Graphics context. Parameters: startX - X start coordinate. Parameters: startY - Y start coordinate. Parameters: width - Background width. Parameters: height - Background height. Parameters: colorScheme - Color scheme for the background. Parameters: stripeImage - Stripe image to replicate. Parameters: stripeOffset - Offset of the first stripe replication. Parameters: borderAlpha - Border alpha. Parameters: isVertical - Indication of horizontal / vertical orientation. |
toGreyscale | public static Icon toGreyscale(Icon icon)(Code) | | Translated the specified icon to grey scale.
Parameters: icon - Icon. Greyscale version of the specified icon. |
|
|