example.payment.jbricks
Class ThreeDColor

java.lang.Object
  extended by example.payment.jbricks.ThreeDColor

public class ThreeDColor
extends java.lang.Object

This class provides support for pseudo-3D coloring. Each of the defined colors can used as a base color, and the brighter() and darker() methods can be used to retrieve the appropriately highlighted or shadowed version of that color. The getRGB() method is used to retrieve the actual RGB value of the color, the returned value can be passed to Graphics.setColor().


Field Summary
static ThreeDColor black
           
static ThreeDColor blue
           
static ThreeDColor darkCyan
           
static ThreeDColor darkGray
           
static ThreeDColor darkGreen
           
static ThreeDColor darkOrange
           
static ThreeDColor darkPurple
           
static ThreeDColor darkRed
           
static ThreeDColor gray
           
static ThreeDColor green
           
static ThreeDColor lightGray
           
static ThreeDColor lightPurple
           
static ThreeDColor orange
           
static ThreeDColor pink
           
static ThreeDColor purple
           
static ThreeDColor red
           
static ThreeDColor white
           
static ThreeDColor yellow
           
 
Method Summary
 ThreeDColor brighter()
           
 ThreeDColor darker()
           
 int getRGB()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lightGray

public static ThreeDColor lightGray

lightPurple

public static ThreeDColor lightPurple

black

public static ThreeDColor black

gray

public static ThreeDColor gray

blue

public static ThreeDColor blue

red

public static ThreeDColor red

yellow

public static ThreeDColor yellow

white

public static ThreeDColor white

orange

public static ThreeDColor orange

green

public static ThreeDColor green

purple

public static ThreeDColor purple

darkCyan

public static ThreeDColor darkCyan

pink

public static ThreeDColor pink

darkGray

public static ThreeDColor darkGray

darkGreen

public static ThreeDColor darkGreen

darkOrange

public static ThreeDColor darkOrange

darkPurple

public static ThreeDColor darkPurple

darkRed

public static ThreeDColor darkRed
Method Detail

brighter

public ThreeDColor brighter()

darker

public ThreeDColor darker()

getRGB

public int getRGB()