Package be.gaudry.swing.painter
Class BrolGradientPainter<T extends Container>
java.lang.Object
be.gaudry.swing.painter.BrolGradientPainter<T>
- Type Parameters:
T
- type of the container
- All Implemented Interfaces:
org.jdesktop.swingx.painter.Painter<T>
public class BrolGradientPainter<T extends Container>
extends Object
implements org.jdesktop.swingx.painter.Painter<T>
- Since:
- 1.0 Oct 27, 2008, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Constructor Summary
ConstructorDescriptionBrolGradientPainter(Color endColor, Color startColor)
Creates a Painter independent of the look and feel.BrolGradientPainter(String endUIColor, String startUIColor)
Creates a Painter dependent of the look and feel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
paint(Graphics2D g, T object, int width, int height)
-
Constructor Details
-
BrolGradientPainter
Creates a Painter dependent of the look and feel.- Parameters:
endUIColor
- component keystartUIColor
- component key
-
BrolGradientPainter
Creates a Painter independent of the look and feel. Do not useUIManager.getColor("Menu.background")
to give colors if you want using look and feel colors.- Parameters:
endColor
-startColor
-- See Also:
to use dynamic colors
-
-
Method Details