org.opengts.util
Class ColorTools.RGB

java.lang.Object
  extended by org.opengts.util.ColorTools.RGB
Enclosing class:
ColorTools

public static class ColorTools.RGB
extends java.lang.Object

RGB class.


Constructor Summary
ColorTools.RGB(double[] RGB)
           
ColorTools.RGB(double R, double G, double B)
           
ColorTools.RGB(float[] RGB)
           
ColorTools.RGB(float R, float G, float B)
           
ColorTools.RGB(int RGB)
           
ColorTools.RGB(int[] RGB)
           
ColorTools.RGB(int R, int G, int B)
           
 
Method Summary
 ColorTools.RGB darker(double percent)
           
 int getRGB()
           
 float[] getRGBColorComponents()
           
 ColorTools.RGB lighter(double percent)
           
 ColorTools.RGB mixWith(ColorTools.RGB color)
           
 ColorTools.RGB mixWith(ColorTools.RGB color, double weight)
           
 ColorTools.RGB mixWith(ColorTools.RGB color, float weight)
           
 java.awt.Color toColor()
           
 java.lang.String toString()
           
 java.lang.String toString(boolean inclHash)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorTools.RGB

public ColorTools.RGB(int R,
                      int G,
                      int B)

ColorTools.RGB

public ColorTools.RGB(int[] RGB)

ColorTools.RGB

public ColorTools.RGB(int RGB)

ColorTools.RGB

public ColorTools.RGB(float R,
                      float G,
                      float B)

ColorTools.RGB

public ColorTools.RGB(float[] RGB)

ColorTools.RGB

public ColorTools.RGB(double R,
                      double G,
                      double B)

ColorTools.RGB

public ColorTools.RGB(double[] RGB)
Method Detail

getRGB

public int getRGB()

getRGBColorComponents

public float[] getRGBColorComponents()

lighter

public ColorTools.RGB lighter(double percent)

darker

public ColorTools.RGB darker(double percent)

mixWith

public ColorTools.RGB mixWith(ColorTools.RGB color)

mixWith

public ColorTools.RGB mixWith(ColorTools.RGB color,
                              float weight)

mixWith

public ColorTools.RGB mixWith(ColorTools.RGB color,
                              double weight)

toColor

public java.awt.Color toColor()

toString

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

toString

public java.lang.String toString(boolean inclHash)