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 Details

    • BrolGradientPainter

      public BrolGradientPainter(String endUIColor, String startUIColor)
      Creates a Painter dependent of the look and feel.
      Parameters:
      endUIColor - component key
      startUIColor - component key
    • BrolGradientPainter

      public BrolGradientPainter(Color endColor, Color startColor)
      Creates a Painter independent of the look and feel. Do not use UIManager.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

    • paint

      public void paint(Graphics2D g, T object, int width, int height)
      Specified by:
      paint in interface org.jdesktop.swingx.painter.Painter<T extends Container>
    • invalidate

      public void invalidate()