net.infonode.gui.componentpainter
public class GradientComponentPainter extends AbstractComponentPainter implements Serializable
Version: $Revision: 1.11 $
Constructor Summary | |
---|---|
GradientComponentPainter(Color topLeftColor, Color topRightColor, Color bottomLeftColor, Color bottomRightColor)
Constructor.
| |
GradientComponentPainter(ColorProvider topLeftColor, ColorProvider topRightColor, ColorProvider bottomLeftColor, ColorProvider bottomRightColor)
Constructor.
|
Method Summary | |
---|---|
Color | getColor(Component component) |
boolean | isOpaque(Component component) |
void | paint(Component component, Graphics g, int x, int y, int width, int height, Direction direction, boolean horizontalFlip, boolean verticalFlip) |
Parameters: topLeftColor the top left corner color topRightColor the top right corner color bottomLeftColor the bottom left corner color bottomRightColor the bottom right corner color
Parameters: topLeftColor the top left corner color provider topRightColor the top right corner color provider bottomLeftColor the bottom left corner color provider bottomRightColor the bottom right corner color provider