| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--javax.vecmath.Tuple4f
        |
        +--javax.vecmath.Color4f
A four-element color represented by single precision floating point x, y, z, and w values. The x, y, z, and w values represent the red, blue, green, and alpha color values, respectively. Color and alpha components should be in the range [0.0, 1.0].
Java 3D assumes that a linear (gamma-corrected) visual is used for all colors.
| Fields inherited from class javax.vecmath.Tuple4f | 
w, x, y, z | 
| Constructor Summary | |
Color4f()
Constructs and initializes a Color4f to (0.0, 0.0, 0.0, 0.0).  | 
|
Color4f(java.awt.Color color)
Constructs and initializes a Color4f from the specified AWT Color object.  | 
|
Color4f(Color4f c1)
Constructs and initializes a Color4f from the specified Color4f.  | 
|
Color4f(float[] c)
Constructs and initializes a Color4f from the array of length 4.  | 
|
Color4f(float x,
        float y,
        float z,
        float w)
Constructs and initializes a Color4f from the specified xyzw coordinates.  | 
|
Color4f(Tuple4d t1)
Constructs and initializes a Color4f from the specified Tuple4d.  | 
|
Color4f(Tuple4f t1)
Constructs and initializes a Color4f from the specified Tuple4f.  | 
|
| Method Summary | |
 java.awt.Color | 
get()
Returns a new AWT color object initialized with the r,g,b,a values of this Color4f object.  | 
 void | 
set(java.awt.Color color)
Sets the r,g,b,a values of this Color4f object to those of the specified AWT Color object.  | 
| Methods inherited from class javax.vecmath.Tuple4f | 
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toString | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public Color4f(float x,
               float y,
               float z,
               float w)
x - the red color valuey - the green color valuez - the blue color valuew - the alpha valuepublic Color4f(float[] c)
c - the array of length 4 containing r,g,b,a in orderpublic Color4f(Color4f c1)
c1 - the Color4f containing the initialization r,g,b,a datapublic Color4f(Tuple4f t1)
t1 - the Tuple4f containing the initialization r,g,b,a datapublic Color4f(Tuple4d t1)
t1 - the Tuple4d containing the initialization r,g,b,a datapublic Color4f(java.awt.Color color)
color - the AWT color with which to initialize this
 Color4f objectpublic Color4f()
| Method Detail | 
public final void set(java.awt.Color color)
color - the AWT color to copy into this Color4f objectpublic final java.awt.Color get()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||