ui.jtunestable
Class GradientBackground

java.lang.Object
  extended by ui.jtunestable.GradientBackground

public class GradientBackground
extends java.lang.Object

Author:
Lauren Dempster http://www.laurendempster.com/source

Constructor Summary
GradientBackground()
           
 
Method Summary
 java.awt.Color getDarkColor()
          Get the dark color used in this gradient
 double getGradientHeightFactor()
          get the gradientHeightFactor, this is the height of the gradient without repeats, e.g.
 java.awt.Color getLightColor()
          Get the light color used in this gradient
 java.awt.Color getTextGradientColor()
          get the Color of text that will be shown on top of this gradient
 boolean isLightToDark()
          True if the gradient goes from light to dark, or dark to light
 void setGradientHeightFactor(double gradientHeightFactor)
          set the gradientHeightFactor, this is the height of the gradient without repeats, e.g.
 void setGradientSelectedColor(java.awt.Color lightColor, java.awt.Color darkColor, java.awt.Color textColor)
          set All three colors needed to compose a gradient
 void setGradientSelectedStyle(int style)
          Set the Gradient style of selected rows
 void setLightToDark(boolean b)
          sets whether this Gradient goes from light to dark, or dark to light
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientBackground

public GradientBackground()
Method Detail

setGradientSelectedStyle

public void setGradientSelectedStyle(int style)
Set the Gradient style of selected rows

Parameters:
style -

setLightToDark

public void setLightToDark(boolean b)
sets whether this Gradient goes from light to dark, or dark to light

Parameters:
b -

getGradientHeightFactor

public double getGradientHeightFactor()
get the gradientHeightFactor, this is the height of the gradient without repeats, e.g. if 0.5 will go from light to dark to light.

Returns:
double

setGradientHeightFactor

public void setGradientHeightFactor(double gradientHeightFactor)
set the gradientHeightFactor, this is the height of the gradient without repeats, e.g. if 0.5 will go from light to dark to light.

Parameters:
gradientHeightFactor -

setGradientSelectedColor

public void setGradientSelectedColor(java.awt.Color lightColor,
                                     java.awt.Color darkColor,
                                     java.awt.Color textColor)
set All three colors needed to compose a gradient

Parameters:
lightColor -
darkColor -
textColor -

getLightColor

public java.awt.Color getLightColor()
Get the light color used in this gradient

Returns:
Color

getDarkColor

public java.awt.Color getDarkColor()
Get the dark color used in this gradient

Returns:
Color

isLightToDark

public boolean isLightToDark()
True if the gradient goes from light to dark, or dark to light

Returns:
boolean

getTextGradientColor

public java.awt.Color getTextGradientColor()
get the Color of text that will be shown on top of this gradient

Returns:
Color


Copyright © 2007 Lauren Dempster. All Rights Reserved.