| org.jvnet.substance.painter.SubstanceGradientPainter
All known Subclasses: org.jvnet.substance.painter.BaseGradientPainter,
SubstanceGradientPainter | public interface SubstanceGradientPainter extends SubstanceTrait(Code) | | Gradient painter interface for Substance look and feel. This class is
part of officially supported API.
author: Kirill Grouchnikov |
Method Summary | |
public BufferedImage | getContourBackground(int width, int height, Shape contour, boolean isFocused, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean hasShine, boolean useCyclePosAsInterpolation) Returns the background that matches the specified parameters.
Parameters: width - Width of a UI component. Parameters: height - Height of a UI component. Parameters: contour - Contour of a UI component. Parameters: isFocused - Indication whether component owns the focus. Parameters: colorScheme1 - The first color scheme. Parameters: colorScheme2 - The second color scheme. Parameters: cyclePos - Cycle position. |
getContourBackground | public BufferedImage getContourBackground(int width, int height, Shape contour, boolean isFocused, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean hasShine, boolean useCyclePosAsInterpolation)(Code) | | Returns the background that matches the specified parameters.
Parameters: width - Width of a UI component. Parameters: height - Height of a UI component. Parameters: contour - Contour of a UI component. Parameters: isFocused - Indication whether component owns the focus. Parameters: colorScheme1 - The first color scheme. Parameters: colorScheme2 - The second color scheme. Parameters: cyclePos - Cycle position. Is used for rollover and pulsation effects.Must be in 0..10 range. Parameters: hasShine - Indication whether the returned image should have a 3D shinespot in its top half. Parameters: useCyclePosAsInterpolation - Indicates the algorithm to use for computing various colors.If true , the cyclePos is usedto interpolate colors between different color components ofboth color schemes. If false , thecyclePos is used to interpolate colors betweendifferent color components of the first color scheme. The background that matches the specified parameters. |
|
|