| java.lang.Object org.jvnet.substance.border.StandardBorderPainter
All known Subclasses: org.jvnet.substance.border.SimplisticSoftBorderPainter, org.jvnet.substance.border.FlatBorderPainter, org.jvnet.substance.border.ClassicBorderPainter, org.jvnet.substance.border.GlassBorderPainter,
StandardBorderPainter | public class StandardBorderPainter implements SubstanceBorderPainter(Code) | | The default border painter. This class is part of officially supported API.
author: Kirill Grouchnikov |
Method Summary | |
public Color | getBottomBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the bottom portion of the border. | public String | getDisplayName() | public Color | getMidBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the middle portion of the border. | public Color | getTopBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation) Computes the color of the top portion of the border. | public void | paintBorder(Graphics g, Component c, int width, int height, Shape contour, Shape innerContour, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean useCyclePosAsInterpolation) |
getBottomBorderColor | public Color getBottomBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the bottom portion of the border. 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 border. |
getMidBorderColor | public Color getMidBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the middle portion of the border. 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 border. |
getTopBorderColor | public Color getTopBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)(Code) | | Computes the color of the top portion of the border. 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 border. |
|
|