com.planeth.common.gfx.color
Class CyclingPhColor

java.lang.Object
  extended byjava.awt.Color
      extended bycom.planeth.common.gfx.color.PhColor
          extended bycom.planeth.common.gfx.color.AbstractChangingPhColor
              extended bycom.planeth.common.gfx.color.CyclingPhColor
All Implemented Interfaces:
java.awt.Paint, java.io.Serializable, java.awt.Transparency

public class CyclingPhColor
extends AbstractChangingPhColor

Self changing Color. Changes the color values in a randomized speed from 0 to max and back again in a endless loop.
The generated color effects depend on the base color.

Author:
Andreas Grässer, gal@planet-h.com.
created May 5, 2005
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
CyclingPhColor()
          Constructor for CyclingColor.
CyclingPhColor(int step)
          Constructor for CyclingPhColor.
 
Method Summary
 void change()
          Changes the color (one step)
 
Methods inherited from class com.planeth.common.gfx.color.AbstractChangingPhColor
brighter, createContext, darker, equals, getAlpha, getBlue, getCol, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getRealTimeControl, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, setCol
 
Methods inherited from class java.awt.Color
decode, getColor, getColor, getColor, getHSBColor, hashCode, HSBtoRGB, RGBtoHSB, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CyclingPhColor

public CyclingPhColor()
Constructor for CyclingColor.


CyclingPhColor

public CyclingPhColor(int step)
Constructor for CyclingPhColor.

Parameters:
step - the color value change step
Method Detail

change

public void change()
Changes the color (one step)

Specified by:
change in class AbstractChangingPhColor
See Also:
AbstractChangingPhColor.change()