| java.lang.Object org.jvnet.substance.painter.BaseGradientPainter org.jvnet.substance.painter.StandardGradientPainter
All known Subclasses: org.jvnet.substance.painter.SubduedGradientPainter, org.jvnet.substance.painter.ClassicGradientPainter, org.jvnet.substance.painter.GlassGradientPainter, org.jvnet.substance.painter.FlatGradientPainter, org.jvnet.substance.painter.SimplisticGradientPainter,
StandardGradientPainter | public class StandardGradientPainter extends BaseGradientPainter (Code) | | Gradient painter that returns images with subtle 3D gradient appearance. This
class is part of officially supported API.
author: Kirill Grouchnikov |
Method Summary | |
public Color | getBottomFillColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the bottom portion of the fill. | public Color | getBottomShineColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the bottom portion of the shine. | public BufferedImage | getContourBackground(int width, int height, Shape contour, boolean isFocused, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean hasShine, boolean useCyclePosAsInterpolation) | public String | getDisplayName() | public Color | getMidFillColorBottom(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the middle portion of the fill from the bottom.
Override to provide different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. | public Color | getMidFillColorTop(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the middle portion of the fill from the top.
Override to provide different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. | public Color | getTopFillColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the top portion of the fill. | public Color | getTopShineColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the top portion of the shine. |
getBottomFillColor | public Color getBottomFillColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the bottom portion of the fill. Override to provide
different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. The color of the bottom portion of the fill. |
getBottomShineColor | public Color getBottomShineColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the bottom portion of the shine. Override to
provide different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. The color of the bottom portion of the shine. |
getContourBackground | public BufferedImage getContourBackground(int width, int height, Shape contour, boolean isFocused, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean hasShine, boolean useCyclePosAsInterpolation)(Code) | | |
getMidFillColorBottom | public Color getMidFillColorBottom(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the middle portion of the fill from the bottom.
Override to provide different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. The color of the middle portion of the fill from the bottom. |
getMidFillColorTop | public Color getMidFillColorTop(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the middle portion of the fill from the top.
Override to provide different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. The color of the middle portion of the fill from the top. |
getTopFillColor | public Color getTopFillColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the top portion of the fill. Override to provide
different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. The color of the top portion of the fill. |
getTopShineColor | public Color getTopShineColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the top portion of the shine. Override to provide
different visual.
Parameters: interpolationScheme1 - The first interpolation scheme. Parameters: interpolationScheme2 - The second interpolation scheme. Parameters: cycleCoef - Cycle coefficient. Parameters: useCyclePosAsInterpolation - Indicates whether the cycle coefficient should be used as theinterpolation parameter. The color of the top portion of the shine. |
Methods inherited from org.jvnet.substance.painter.BaseGradientPainter | protected BufferedImage getMixContourBackground(int width, int height, Shape contour, boolean isFocused, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean hasShine, boolean useCyclePosAsInterpolation)(Code)(Java Doc)
|
|
|