Java Doc for SubstanceImageCreator.java in  » Swing-Library » substance-look-feel » org » jvnet » substance » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » substance look feel » org.jvnet.substance 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  BufferedImagegetArrow(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  IcongetArrowIcon(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  IcongetArrowIcon(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  IcongetArrowIcon(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  ImagegetBigHexaMarker(int value, SubstanceTheme theme)
     Returns big icon representation of the specified integer value.
public static  BufferedImagegetCheckBox(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  IcongetCloseIcon(SubstanceTheme theme)
     Returns close icon.
Parameters:
  theme - Theme for the icon.
public static  IcongetCloseIcon(int iSize, SubstanceTheme theme)
     Returns close icon.
Parameters:
  iSize - Icon dimension.
Parameters:
  theme - Theme for the icon.
public static  IcongetCloseIcon(int iSize, ColorScheme colorScheme)
     Returns close icon.
Parameters:
  iSize - Icon dimension.
Parameters:
  colorScheme - Color scheme for the icon.
public static  BufferedImagegetCompositeRoundedBackground(JComponent component, int width, int height, int cornerRadius, AbstractButton decrButton, AbstractButton incrButton, boolean flipSides)
     Retrieves composite background for the specified parameters.
public static  ImagegetCrayonsImage()
     Retrieves crayons image for the crayon panel of color chooser.
public static  IcongetDoubleArrowIcon(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  IcongetDoubleArrowIcon(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  IcongetDoubleArrowIcon(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  BufferedImagegetDragImage(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  IcongetHexaMarker(int value, SubstanceTheme theme)
     Returns small icon representation of the specified integer value.
public static  IcongetMaximizeIcon(SubstanceTheme theme)
     Returns maximize icon.
Parameters:
  theme - Theme for the icon.
public static  IcongetMaximizeIcon(int iSize, SubstanceTheme theme)
     Returns maximize icon.
Parameters:
  iSize - Icon dimension.
Parameters:
  theme - Theme for the icon.
public static  IcongetMinimizeIcon(SubstanceTheme theme)
     Returns minimize icon.
Parameters:
  theme - Theme for the icon.
public static  IcongetMinimizeIcon(int iSize, SubstanceTheme theme)
     Returns minimize icon.
Parameters:
  iSize - Icon dimension.
Parameters:
  theme - Theme for the icon.
public static  BufferedImagegetNegated(BufferedImage bi)
     Returns the negative of the specified image.
Parameters:
  bi - Image.
public static  BufferedImagegetOneLineGradient(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  BufferedImagegetRadioButton(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  BufferedImagegetResizeGripImage(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  IcongetRestoreIcon(SubstanceTheme theme)
     Returns restore icon.
Parameters:
  theme - Theme for the icon.
public static  BufferedImagegetRotated(BufferedImage bi, int quadrantClockwise)
     Returns rotated image.
Parameters:
  bi - Image to rotate.
Parameters:
  quadrantClockwise - Amount of quadrants to rotate in clockwise directio.
public static  IcongetSearchIcon(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  BufferedImagegetSingleCrayon(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  IcongetSmallLockIcon(ColorScheme scheme)
     Returns a lock icon that matches the specified scheme.
Parameters:
  scheme - Scheme instance.
public static  BufferedImagegetSplitDividerBumpImage(Component c, int width, int height, boolean isHorizontal, ComponentState componentState, SubstanceTheme theme1, SubstanceTheme theme2, float interpolationCyclePos10)
    
public static  BufferedImagegetStripe(int baseSize, Color color)
     Returns diagonal stripe image.
Parameters:
  baseSize - Stripe base in pixels.
Parameters:
  color - Stripe color.
public static  IcongetThemeIcon(SubstanceTheme theme)
     Returns an icon that matches the specified theme.
Parameters:
  theme - Theme instance.
public static  BufferedImagegetThemeImage(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  BufferedImagegetThemeImage(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  BufferedImagegetTreeIcon(JTree tree, SubstanceTheme theme, boolean isCollapsed)
     Retrieves tree icon.
Parameters:
  tree - Tree.
Parameters:
  theme - Icon theme.
Parameters:
  isCollapsed - Collapsed state.
public static  IcongetWatermarkIcon(SubstanceWatermark watermark)
     Returns an icon that matches the specified watermark.
Parameters:
  watermark - Watermark instance.
public static  IconmakeTransparent(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  BufferedImageoverlayEcho(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  voidpaintBorder(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  voidpaintBorder(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  voidpaintRectangularBackground(Graphics g, int startX, int startY, int width, int height, ColorScheme colorScheme, float borderAlpha, boolean isVertical)
     Paints rectangular gradient background.
public static  voidpaintRectangularStripedBackground(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  IcontoGreyscale(Icon icon)
     Translated the specified icon to grey scale.
Parameters:
  icon - Icon.



Method Detail
getArrow
public static BufferedImage getArrow(int width, int height, float strokeWidth, int direction, SubstanceTheme theme)(Code)
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. Arrow image.
See Also:   SwingConstants.NORTH
See Also:   SwingConstants.WEST
See Also:   SwingConstants.SOUTH
See Also:   SwingConstants.EAST
See Also:   SwingConstants.CENTER



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.



getArrowIcon
public static Icon getArrowIcon(int width, int height, float strokeWidth, int direction, SubstanceTheme theme)(Code)
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. Arrow image.
See Also:   SwingConstants.NORTH
See Also:   SwingConstants.WEST
See Also:   SwingConstants.SOUTH
See Also:   SwingConstants.EAST



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:
  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.
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.



getDoubleArrowIcon
public static Icon getDoubleArrowIcon(int width, int height, float strokeWidth, int direction, SubstanceTheme theme)(Code)
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. Arrow image.
See Also:   SwingConstants.NORTH
See Also:   SwingConstants.WEST
See Also:   SwingConstants.SOUTH
See Also:   SwingConstants.EAST



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.



getSplitDividerBumpImage
public static BufferedImage getSplitDividerBumpImage(Component c, int width, int height, boolean isHorizontal, ComponentState componentState, SubstanceTheme theme1, SubstanceTheme theme2, float interpolationCyclePos10)(Code)



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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.