GP.Attributes
Class Color

java.lang.Object
  |
  +--GP.Attributes.Color
Direct Known Subclasses:
Black, Blue, Chooser, Gray, Green, Orange, Random, Red, Shape, Violet, White, Yellow

public class Color
extends java.lang.Object


Constructor Summary
Color()
           
Color(Color color)
           
Color(double red, double green, double blue)
           
Color(Value red, Value green, Value blue)
           
 
Method Summary
 Color Copy()
           
 Color Darker()
           
 Color Darker(double decrement)
           
 boolean equals(java.lang.Object other)
           
 double GetBlue()
           
 java.awt.Color GetColor()
           
 double GetGreen()
           
 double GetRed()
           
 Color Lighter()
           
 Color Lighter(double increment)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Color

public Color()

Color

public Color(Color color)

Color

public Color(double red,
             double green,
             double blue)

Color

public Color(Value red,
             Value green,
             Value blue)
Method Detail

Copy

public Color Copy()

GetColor

public java.awt.Color GetColor()

Lighter

public Color Lighter()

Lighter

public Color Lighter(double increment)

Darker

public Color Darker()

Darker

public Color Darker(double decrement)

GetRed

public double GetRed()

GetGreen

public double GetGreen()

GetBlue

public double GetBlue()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object