org.japura.gui
Class Gradient

java.lang.Object
  extended by org.japura.gui.Gradient
All Implemented Interfaces:
java.io.Serializable

public class Gradient
extends java.lang.Object
implements java.io.Serializable

Copyright (C) 2008-2011 Carlos Eduardo Leite de Andrade

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see www.gnu.org/licenses/

For more information, contact: www.japura.org

Author:
Carlos Eduardo Leite de Andrade
See Also:
Serialized Form

Nested Class Summary
static class Gradient.Direction
           
 
Field Summary
static Gradient.Direction BOTTOM_TO_TOP
           
static Gradient.Direction LEFT_TO_RIGHT
           
static Gradient.Direction RIGHT_TO_LEFT
           
static Gradient.Direction TOP_TO_BOTTOM
           
 
Constructor Summary
Gradient(java.awt.Color firstColor, java.awt.Color secondColor)
           
Gradient(Gradient.Direction direction, java.awt.Color firstColor, java.awt.Color secondColor)
           
 
Method Summary
 Gradient.Direction getDirection()
           
 java.awt.Color getFirstColor()
           
 java.awt.Color getSecondColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT_TO_RIGHT

public static final Gradient.Direction LEFT_TO_RIGHT

RIGHT_TO_LEFT

public static final Gradient.Direction RIGHT_TO_LEFT

TOP_TO_BOTTOM

public static final Gradient.Direction TOP_TO_BOTTOM

BOTTOM_TO_TOP

public static final Gradient.Direction BOTTOM_TO_TOP
Constructor Detail

Gradient

public Gradient(java.awt.Color firstColor,
                java.awt.Color secondColor)

Gradient

public Gradient(Gradient.Direction direction,
                java.awt.Color firstColor,
                java.awt.Color secondColor)
Method Detail

getDirection

public Gradient.Direction getDirection()

getFirstColor

public java.awt.Color getFirstColor()

getSecondColor

public java.awt.Color getSecondColor()