Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance.utils
Class SubstanceImageCreator

    java.lang.Object
      org.jvnet.substance.utils.SubstanceImageCreator

    public final class SubstanceImageCreator

extends java.lang.Object

Provides utility functions for creating various images for Substance look and feel. This class is for internal use only.

Author:
  Kirill Grouchnikov

Nested Class Summary
`static class` | `SubstanceImageCreator.SimplisticSoftBorderReverseGradientPainter` Custom gradient painter for filling the checkmarks of checkboxes and radio buttons.

Constructor Summary
`SubstanceImageCreator()`

Method Summary
`static java.awt.image.BufferedImage` | `getArrow(float width, float height, float strokeWidth, int direction, SubstanceColorScheme scheme)` Retrieves arrow image.
`static javax.swing.Icon` | `getArrowIcon(float width, float height, float strokeWidth, int direction, SubstanceColorScheme scheme)` Retrieves arrow icon.
`static javax.swing.Icon` | `getArrowIcon(int fontSize, int direction, SubstanceColorScheme colorScheme)` Returns arrow icon for the specified parameters.
`static java.awt.Image` | `getBigHexaMarker(int value, SubstanceColorScheme colorScheme)` Returns big icon representation of the specified integer value.
`static java.awt.image.BufferedImage` | `getCheckBox(javax.swing.AbstractButton button, int dimension, ComponentState componentState, ComponentState prevState, SubstanceColorScheme colorScheme1, SubstanceColorScheme colorScheme2, float interpolationCyclePos, float checkMarkVisibility, boolean isCheckMarkFadingOut)`
Retrieves check box of the specified size that matches the specified component state.
`static javax.swing.Icon` | `getCloseIcon(int iSize, SubstanceColorScheme colorScheme)` Returns `close` icon.
`static javax.swing.Icon` | `getCloseIcon(SubstanceColorScheme scheme)` Returns `close` icon.
`static java.awt.image.BufferedImage` | `getColorSchemeImage(java.awt.image.BufferedImage original, SubstanceColorScheme colorScheme)` Creates a new version of the specified image that is rendered in the colors of the specified color scheme.
`static java.awt.image.BufferedImage` | `getColorSchemeImage(java.awt.Component comp, javax.swing.Icon original, SubstanceColorScheme colorScheme)` Creates a new version of the specified icon that is rendered in the colors of the specified color scheme.
`static java.awt.image.BufferedImage` | `getCompositeRoundedBackground(javax.swing.JComponent component, int width, int height, int cornerRadius, javax.swing.AbstractButton decrButton, javax.swing.AbstractButton incrButton, boolean flipSides)` Retrieves composite background for the specified parameters.
`static java.awt.Image` | `getCrayonsImage()` Retrieves crayons image for the crayon panel of color chooser.
`static javax.swing.Icon` | `getDoubleArrowIcon(float width, float height, float strokeWidth, int direction, SubstanceColorScheme colorScheme)` Retrieves arrow icon.
`static javax.swing.Icon` | `getDoubleArrowIcon(int fontSize, float deltaWidth, float deltaHeight, float deltaStrokeWidth, int direction, SubstanceColorScheme colorScheme)` Returns double arrow icon for the specified parameters.
`static java.awt.image.BufferedImage` | `getDragImage(java.awt.Component c, SubstanceColorScheme colorScheme, int width, int height, int maxNumberOfStripes)` Returns drag bumps image.
`static javax.swing.Icon` | `getHexaMarker(int value, SubstanceColorScheme colorScheme)` Returns small icon representation of the specified integer value.
`static javax.swing.Icon` | `getMaximizeIcon(int iSize, SubstanceColorScheme scheme)` Returns `maximize` icon.
`static javax.swing.Icon` | `getMaximizeIcon(SubstanceColorScheme scheme)` Returns `maximize` icon.
`static javax.swing.Icon` | `getMinimizeIcon(int iSize, SubstanceColorScheme scheme)` Returns `minimize` icon.
`static javax.swing.Icon` | `getMinimizeIcon(SubstanceColorScheme scheme)` Returns `minimize` icon.
`static java.awt.image.BufferedImage` | `getNegated(java.awt.image.BufferedImage bi)` Returns the negative of the specified image.
`static java.awt.image.BufferedImage` | `getRadioButton(javax.swing.JComponent component, int dimension, ComponentState componentState, ComponentState prevState, int offsetX, SubstanceColorScheme scheme1, SubstanceColorScheme scheme2, float interpolationCyclePos10, float checkMarkVisibility)`
Retrieves radio button of the specified size that matches the specified parameters.
`static java.awt.image.BufferedImage` | `getResizeGripImage(java.awt.Component c, SubstanceColorScheme colorScheme, int dimension, boolean isCrowded)` Returns resize grip image.
`static javax.swing.Icon` | `getRestoreIcon(SubstanceColorScheme scheme)` Returns `restore` icon.
`static java.awt.image.BufferedImage` | `getRotated(java.awt.image.BufferedImage bi, int quadrantClockwise)` Returns rotated image.
`static java.awt.image.VolatileImage` | `getRotated(java.awt.image.VolatileImage bi, int quadrantClockwise)` Returns rotated image.
`static javax.swing.Icon` | `getSearchIcon(int dimension, SubstanceColorScheme colorScheme, boolean leftToRight)` Returns search icon.
`static java.awt.image.BufferedImage` | `getSingleCrayon(java.awt.Color mainColor, int width, int height)` Retrieves a single crayon of the specified color and dimensions for the crayon panel in color chooser.
`static javax.swing.Icon` | `getSmallLockIcon(SubstanceColorScheme scheme)` Returns a lock icon that matches the specified scheme.
`static java.awt.image.BufferedImage` | `getStripe(int baseSize, java.awt.Color color)` Returns diagonal stripe image.
`static java.awt.image.BufferedImage` | `getTreeIcon(javax.swing.JTree tree, SubstanceColorScheme colorScheme, boolean isCollapsed)` Retrieves tree icon.
`static javax.swing.Icon` | `getWatermarkIcon(SubstanceWatermark watermark)` Returns an icon that matches the specified watermark.
`static javax.swing.Icon` | `makeTransparent(java.awt.Component c, javax.swing.Icon icon, double alpha)` Makes the specified icon transparent.
`static java.awt.image.BufferedImage` | `overlayEcho(java.awt.image.BufferedImage image, float echoAlpha, int offsetX, int offsetY)` Overlays light-colored echo below the specified image.
`static void` | `paintBorder(java.awt.Component c, java.awt.Graphics2D graphics, int x, int y, int width, int height, float radius, SubstanceColorScheme borderScheme1, SubstanceColorScheme borderScheme2, float cyclePos)` Paints border instance of specified dimensions and status.
`static void` | `paintRectangularBackground(java.awt.Graphics g, int startX, int startY, int width, int height, SubstanceColorScheme colorScheme, float borderAlpha, boolean isVertical)` Paints rectangular gradient background.
`static void` | `paintRectangularStripedBackground(java.awt.Graphics g, int startX, int startY, int width, int height, SubstanceColorScheme colorScheme, java.awt.image.BufferedImage stripeImage, int stripeOffset, float borderAlpha, boolean isVertical)` Paints rectangular gradient background with spots and optional replicated stripe image.
`static void` | `paintSimpleBorder(java.awt.Graphics2D g2d, int width, int height, SubstanceColorScheme colorScheme, SubstanceColorScheme colorScheme2, float cyclePos)` Paints simple border.
`static void` | `paintSplitDividerBumpImage(java.awt.Graphics g, SubstanceSplitPaneDivider divider, int x, int y, int width, int height, boolean isHorizontal, ComponentState componentState, SubstanceColorScheme colorScheme1, SubstanceColorScheme colorScheme2, float interpolationCyclePos)`
Paints the bump dots on the split pane dividers.
`static javax.swing.Icon` | `toGreyscale(javax.swing.Icon icon)` Translated the specified icon to grey scale.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SubstanceImageCreator

    public SubstanceImageCreator()

Method Detail

### paintBorder

    public static void paintBorder(java.awt.Component c,
                                   java.awt.Graphics2D graphics,
                                   int x,
                                   int y,
                                   int width,
                                   int height,
                                   float radius,
                                   SubstanceColorScheme borderScheme1,
                                   SubstanceColorScheme borderScheme2,
                                   float cyclePos)

  Paints border instance of specified dimensions and status.

  Parameters:
    `c` - Component.
    `graphics` - Graphics context.
    `x` - Component left X (in graphics context).
    `y` - Component top Y (in graphics context).
    `width` - Border width.
    `height` - Border height.
    `radius` - Border radius.
    `borderScheme1` - First border color scheme.
    `borderScheme2` - Second border color scheme.
    `cyclePos` - Cycle position for interpolating the border color schemes.

### getArrowIcon

    public static javax.swing.Icon getArrowIcon(int fontSize,
                                                int direction,
                                                SubstanceColorScheme colorScheme)

  Returns arrow icon for the specified parameters.

  Parameters:
    `fontSize` - Font size.
    `direction` - Arrow direction.
    `colorScheme` - Arrow icon color scheme.
  Returns:
    Arrow icon.

### getArrowIcon

    public static javax.swing.Icon getArrowIcon(float width,
                                                float height,
                                                float strokeWidth,
                                                int direction,
                                                SubstanceColorScheme scheme)

  Retrieves arrow icon.

  Parameters:
    `width` - Arrow width.
    `height` - Arrow height.
    `strokeWidth` - Stroke width.
    `direction` - Arrow direction.
    `scheme` - Color scheme for the arrow.
  Returns:
    Arrow image.
  See Also:
    `SwingConstants.NORTH`, `SwingConstants.WEST`, `SwingConstants.SOUTH`, `SwingConstants.EAST`

### getArrow

    public static java.awt.image.BufferedImage getArrow(float width,
                                                        float height,
                                                        float strokeWidth,
                                                        int direction,
                                                        SubstanceColorScheme scheme)

  Retrieves arrow image.

  Parameters:
    `width` - Arrow width.
    `height` - Arrow height.
    `strokeWidth` - Stroke width.
    `direction` - Arrow direction.
    `scheme` - Color scheme for the arrow.
  Returns:
    Arrow image.
  See Also:
    `SwingConstants.NORTH`, `SwingConstants.WEST`, `SwingConstants.SOUTH`, `SwingConstants.EAST`, `SwingConstants.CENTER`

### getDoubleArrowIcon

    public static javax.swing.Icon getDoubleArrowIcon(int fontSize,
                                                      float deltaWidth,
                                                      float deltaHeight,
                                                      float deltaStrokeWidth,
                                                      int direction,
                                                      SubstanceColorScheme colorScheme)

  Returns double arrow icon for the specified parameters.

  Parameters:
    `fontSize` - Font size.
    `deltaWidth` - Arrow width delta.
    `deltaHeight` - Arrow height delta.
    `deltaStrokeWidth` - Arrow stroke width delta.
    `direction` - Arrow direction.
    `colorScheme` - Color scheme for the arrow.
  Returns:
    Double arrow icon.

### getDoubleArrowIcon

    public static javax.swing.Icon getDoubleArrowIcon(float width,
                                                      float height,
                                                      float strokeWidth,
                                                      int direction,
                                                      SubstanceColorScheme colorScheme)

  Retrieves arrow icon.

  Parameters:
    `width` - Arrow width.
    `height` - Arrow height.
    `strokeWidth` - Stroke width.
    `direction` - Arrow direction.
    `colorScheme` - Color scheme for the arrow.
  Returns:
    Arrow image.
  See Also:
    `SwingConstants.NORTH`, `SwingConstants.WEST`, `SwingConstants.SOUTH`, `SwingConstants.EAST`

### getRotated

    public static java.awt.image.BufferedImage getRotated(java.awt.image.BufferedImage bi,
                                                          int quadrantClockwise)

  Returns rotated image.

  Parameters:
    `bi` - Image to rotate.
    `quadrantClockwise` - Amount of quadrants to rotate in clockwise directio. The rotation angle is 90 times this value.
  Returns:
    Rotated image.

### getRotated

    public static java.awt.image.VolatileImage getRotated(java.awt.image.VolatileImage bi,
                                                          int quadrantClockwise)

  Returns rotated image.

  Parameters:
    `bi` - Image to rotate.
    `quadrantClockwise` - Amount of quadrants to rotate in clockwise directio. The rotation angle is 90 times this value.
  Returns:
    Rotated image.

### toGreyscale

    public static javax.swing.Icon toGreyscale(javax.swing.Icon icon)

  Translated the specified icon to grey scale.

  Parameters:
    `icon` - Icon.
  Returns:
    Greyscale version of the specified icon.

### makeTransparent

    public static javax.swing.Icon makeTransparent(java.awt.Component c,
                                                   javax.swing.Icon icon,
                                                   double alpha)

  Makes the specified icon transparent.

  Parameters:
    `c` - Component.
    `icon` - Icon.
    `alpha` - The alpha of the resulting image. The closer this value is to 0.0, the more transparent resulting image will be.
  Returns:
    Transparent version of the specified icon.

### getRadioButton

    public static java.awt.image.BufferedImage getRadioButton(javax.swing.JComponent component,
                                                              int dimension,
                                                              ComponentState componentState,
                                                              ComponentState prevState,
                                                              int offsetX,
                                                              SubstanceColorScheme scheme1,
                                                              SubstanceColorScheme scheme2,
                                                              float interpolationCyclePos10,
                                                              float checkMarkVisibility)

  Retrieves radio button of the specified size that matches the specified parameters.

  Parameters:
    `component` - Component.
    `dimension` - Radio button dimension.
    `componentState` - Component state.
    `prevState` - Previous component state.
    `offsetX` - Offset on X axis - should be positive in order to see the entire radio button.
    `scheme1` - First color scheme.
    `scheme2` - Second color scheme.
    `interpolationCyclePos10` - Interpolation cycle.
    `checkMarkVisibility` - Checkmark visibility in 0.0-1.0 range.
  Returns:
    Radio button of the specified size that matches the specified parameters.

### getCheckBox

    public static java.awt.image.BufferedImage getCheckBox(javax.swing.AbstractButton button,
                                                           int dimension,
                                                           ComponentState componentState,
                                                           ComponentState prevState,
                                                           SubstanceColorScheme colorScheme1,
                                                           SubstanceColorScheme colorScheme2,
                                                           float interpolationCyclePos,
                                                           float checkMarkVisibility,
                                                           boolean isCheckMarkFadingOut)

  Retrieves check box of the specified size that matches the specified component state.

  Parameters:
    `button` - Button for the check mark.
    `dimension` - Check box size.
    `componentState` - Component state.
    `prevState` - Previous component state.
    `colorScheme1` - First color scheme.
    `colorScheme2` - Second color scheme.
    `interpolationCyclePos` - Interpolation cycle in 0.0-1.0 range.
    `checkMarkVisibility` - Checkmark visibility in 0.0-1.0 range.
    `isCheckMarkFadingOut` - if `true`, the value of `interpolationCyclePos10` is used as the alpha channel.
  Returns:
    Check box of the specified size that matches the specified component state.

### getCompositeRoundedBackground

    public static java.awt.image.BufferedImage getCompositeRoundedBackground(javax.swing.JComponent component,
                                                                             int width,
                                                                             int height,
                                                                             int cornerRadius,
                                                                             javax.swing.AbstractButton decrButton,
                                                                             javax.swing.AbstractButton incrButton,
                                                                             boolean flipSides)

  Retrieves composite background for the specified parameters. The composite background consists of three layers:
  1. Layer that matches the `increased` state.
  2. Layer that matches the `decreased` state.
  3. Regular layer with rounded background.
  The layers are drawn in the following order:
  1. The left half of the first layer
  2. The right half of the second layer
  3. 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.
    `width` - Image width.
    `height` - Image height.
    `cornerRadius` - Corner radius.
    `decrButton` - The `decrease` button.
    `incrButton` - The `increase` button.
    `flipSides` - If `true`, the drawn halves of the first and the second layers above will be swapped.
  Returns:
    Composite background for the specified parameters.

### overlayEcho

    public static java.awt.image.BufferedImage overlayEcho(java.awt.image.BufferedImage image,
                                                           float echoAlpha,
                                                           int offsetX,
                                                           int offsetY)

  Overlays light-colored echo below the specified image.

  Parameters:
    `image` - The input image.
    `echoAlpha` - Alpha channel for the echo image.
    `offsetX` - X offset of the echo.
    `offsetY` - Y offset of the echo.
  Returns:
    Image with overlayed echo.

### getMinimizeIcon

    public static javax.swing.Icon getMinimizeIcon(SubstanceColorScheme scheme)

  Returns `minimize` icon.

  Parameters:
    `scheme` - Color scheme for the icon.
  Returns:
    `Minimize` icon.

### getMinimizeIcon

    public static javax.swing.Icon getMinimizeIcon(int iSize,
                                                   SubstanceColorScheme scheme)

  Returns `minimize` icon.

  Parameters:
    `iSize` - Icon dimension.
    `scheme` - Color scheme for the icon.
  Returns:
    `Minimize` icon.

### getRestoreIcon

    public static javax.swing.Icon getRestoreIcon(SubstanceColorScheme scheme)

  Returns `restore` icon.

  Parameters:
    `scheme` - Color scheme for the icon.
  Returns:
    `Restore` icon.

### getMaximizeIcon

    public static javax.swing.Icon getMaximizeIcon(SubstanceColorScheme scheme)

  Returns `maximize` icon.

  Parameters:
    `scheme` - Color scheme for the icon.
  Returns:
    `Maximize` icon.

### getMaximizeIcon

    public static javax.swing.Icon getMaximizeIcon(int iSize,
                                                   SubstanceColorScheme scheme)

  Returns `maximize` icon.

  Parameters:
    `iSize` - Icon dimension.
    `scheme` - Color scheme for the icon.
  Returns:
    `Maximize` icon.

### getCloseIcon

    public static javax.swing.Icon getCloseIcon(SubstanceColorScheme scheme)

  Returns `close` icon.

  Parameters:
    `scheme` - Color scheme for the icon.
  Returns:
    `Close` icon.

### getCloseIcon

    public static javax.swing.Icon getCloseIcon(int iSize,
                                                SubstanceColorScheme colorScheme)

  Returns `close` icon.

  Parameters:
    `iSize` - Icon dimension.
    `colorScheme` - Color scheme for the icon.
  Returns:
    `Close` icon.

### paintRectangularBackground

    public static void paintRectangularBackground(java.awt.Graphics g,
                                                  int startX,
                                                  int startY,
                                                  int width,
                                                  int height,
                                                  SubstanceColorScheme colorScheme,
                                                  float borderAlpha,
                                                  boolean isVertical)

  Paints rectangular gradient background.

  Parameters:
    `g` - Graphic context.
    `startX` - Background starting X coord.
    `startY` - Background starting Y coord.
    `width` - Background width.
    `height` - Background height.
    `colorScheme` - Color scheme for the background.
    `borderAlpha` - Border alpha.
    `isVertical` - if `true`, the gradient will be vertical, if `false`, the gradient will be horizontal.

### paintSimpleBorder

    public static void paintSimpleBorder(java.awt.Graphics2D g2d,
                                         int width,
                                         int height,
                                         SubstanceColorScheme colorScheme,
                                         SubstanceColorScheme colorScheme2,
                                         float cyclePos)

  Paints simple border.

  Parameters:
    `g2d` - Graphics context.
    `width` - Border width.
    `height` - Border height.
    `colorScheme` - First color scheme.
    `colorScheme2` - Second color scheme.
    `cyclePos` - Interpolation cycle.

### paintRectangularStripedBackground

    public static void paintRectangularStripedBackground(java.awt.Graphics g,
                                                         int startX,
                                                         int startY,
                                                         int width,
                                                         int height,
                                                         SubstanceColorScheme colorScheme,
                                                         java.awt.image.BufferedImage stripeImage,
                                                         int stripeOffset,
                                                         float borderAlpha,
                                                         boolean isVertical)

  Paints rectangular gradient background with spots and optional replicated stripe image.

  Parameters:
    `g` - Graphics context.
    `startX` - X start coordinate.
    `startY` - Y start coordinate.
    `width` - Background width.
    `height` - Background height.
    `colorScheme` - Color scheme for the background.
    `stripeImage` - Stripe image to replicate.
    `stripeOffset` - Offset of the first stripe replication.
    `borderAlpha` - Border alpha.
    `isVertical` - Indication of horizontal / vertical orientation.

### getStripe

    public static java.awt.image.BufferedImage getStripe(int baseSize,
                                                         java.awt.Color color)

  Returns diagonal stripe image.

  Parameters:
    `baseSize` - Stripe base in pixels.
    `color` - Stripe color.
  Returns:
    Diagonal stripe image.

### getDragImage

    public static java.awt.image.BufferedImage getDragImage(java.awt.Component c,
                                                            SubstanceColorScheme colorScheme,
                                                            int width,
                                                            int height,
                                                            int maxNumberOfStripes)

  Returns drag bumps image.

  Parameters:
    `c` - Component.
    `colorScheme` - Color scheme.
    `alwaysUseActive` - Indicates whether the active color scheme should always be used.
    `width` - Drag bumps width.
    `height` - Drag bumps height.
    `maxNumberOfStripes` - The maximum number of bump stripes (rows or columns).
  Returns:
    Drag bumps image.

### paintSplitDividerBumpImage

    public static void paintSplitDividerBumpImage(java.awt.Graphics g,
                                                  SubstanceSplitPaneDivider divider,
                                                  int x,
                                                  int y,
                                                  int width,
                                                  int height,
                                                  boolean isHorizontal,
                                                  ComponentState componentState,
                                                  SubstanceColorScheme colorScheme1,
                                                  SubstanceColorScheme colorScheme2,
                                                  float interpolationCyclePos)

  Paints the bump dots on the split pane dividers.

  Parameters:
    `g` - Graphics context.
    `divider` - Split pane divider.
    `x` - X coordinate of the bump dots.
    `y` - Y coordinate of the bump dots.
    `width` - Width of the bump dots area.
    `height` - Height of the bump dots area.
    `isHorizontal` - Indicates whether the dots are horizontal.
    `componentState` - Split pane divider state.
    `colorScheme1` - First color scheme.
    `colorScheme2` - Second color scheme.
    `interpolationCyclePos` - Interpolation cycle.

### getResizeGripImage

    public static java.awt.image.BufferedImage getResizeGripImage(java.awt.Component c,
                                                                  SubstanceColorScheme colorScheme,
                                                                  int dimension,
                                                                  boolean isCrowded)

  Returns resize grip image.

  Parameters:
    `c` - Component.
    `colorScheme` - Color scheme.
    `dimension` - Resize grip width.
    `isCrowded` - Indicates whether the grips should be painted closely.
  Returns:
    Resize grip image.

### getTreeIcon

    public static java.awt.image.BufferedImage getTreeIcon(javax.swing.JTree tree,
                                                           SubstanceColorScheme colorScheme,
                                                           boolean isCollapsed)

  Retrieves tree icon.

  Parameters:
    `tree` - Tree.
    `colorScheme` - Icon color scheme.
    `isCollapsed` - Collapsed state.
  Returns:
    Tree icon.

### getSingleCrayon

    public static java.awt.image.BufferedImage getSingleCrayon(java.awt.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.
    `width` - Crayon width.
    `height` - Crayon height.
  Returns:
    Crayon image.

### getCrayonsImage

    public static java.awt.Image getCrayonsImage()

  Retrieves crayons image for the crayon panel of color chooser.

  Returns:
    Crayons image.

### getHexaMarker

    public static javax.swing.Icon getHexaMarker(int value,
                                                 SubstanceColorScheme colorScheme)

  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.
    `colorScheme` - Icon color scheme.
  Returns:
    Icon representation of the specified integer value.

### getBigHexaMarker

    public static java.awt.Image getBigHexaMarker(int value,
                                                  SubstanceColorScheme colorScheme)

  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.
    `colorScheme` - Icon color scheme.
  Returns:
    Icon representation of the specified integer value.

### getSearchIcon

    public static javax.swing.Icon getSearchIcon(int dimension,
                                                 SubstanceColorScheme colorScheme,
                                                 boolean leftToRight)

  Returns search icon.

  Parameters:
    `dimension` - Icon dimension.
    `colorScheme` - Icon color scheme.
    `leftToRight` - LTR indication of the resulting icon.
  Returns:
    Search icon.

### getWatermarkIcon

    public static javax.swing.Icon getWatermarkIcon(SubstanceWatermark watermark)

  Returns an icon that matches the specified watermark.

  Parameters:
    `watermark` - Watermark instance.
  Returns:
    Icon that matches the specified watermark.

### getSmallLockIcon

    public static javax.swing.Icon getSmallLockIcon(SubstanceColorScheme scheme)

  Returns a lock icon that matches the specified scheme.

  Parameters:
    `scheme` - Scheme instance.
  Returns:
    Lock icon that matches the specified scheme.

### getNegated

    public static java.awt.image.BufferedImage getNegated(java.awt.image.BufferedImage bi)

  Returns the negative of the specified image.

  Parameters:
    `bi` - Image.
  Returns:
    The negative of the specified image.

### getColorSchemeImage

    public static java.awt.image.BufferedImage getColorSchemeImage(java.awt.Component comp,
                                                                   javax.swing.Icon original,
                                                                   SubstanceColorScheme colorScheme)

  Creates a new version of the specified icon that is rendered in the colors of the specified color scheme.

  Parameters:
    `comp` - Component.
    `original` - The original icon.
    `colorScheme` - Color scheme.
  Returns:
    Scheme-based version of the original icon.

### getColorSchemeImage

    public static java.awt.image.BufferedImage getColorSchemeImage(java.awt.image.BufferedImage original,
                                                                   SubstanceColorScheme colorScheme)

  Creates a new version of the specified image that is rendered in the colors of the specified color scheme.

  Parameters:
    `original` - The original image.
    `colorScheme` - Color scheme.
    `toSaturate` - Indicates whether the resulting image should be saturated.
  Returns:
    Scheme-based version of the original icon.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD