| java.lang.Object org.jvnet.substance.painter.BaseGradientPainter
All known Subclasses: org.jvnet.substance.painter.NoiseGradientPainter, org.jvnet.substance.painter.StandardGradientPainter, org.jvnet.substance.painter.SpecularGradientPainter, org.jvnet.substance.painter.WaveGradientPainter, org.jvnet.substance.painter.WaveDelegateGradientPainter,
BaseGradientPainter | abstract public class BaseGradientPainter implements SubstanceGradientPainter(Code) | | Base class for gradient painters. Handles mixed themes. This class is part of
officially supported API.
author: Kirill Grouchnikov |
Method Summary | |
protected BufferedImage | getMixContourBackground(int width, int height, Shape contour, boolean isFocused, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean hasShine, boolean useCyclePosAsInterpolation) Returns the background (including border) 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. |
getMixContourBackground | protected BufferedImage getMixContourBackground(int width, int height, Shape contour, boolean isFocused, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean hasShine, boolean useCyclePosAsInterpolation)(Code) | | Returns the background (including border) 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 (including border) that matches the specifiedparameters if one of the color schemes is MixColorScheme,null otherwise. |
|
|