|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.vecmath.Tuple3f | +--javax.vecmath.Color3f
A three-element color value represented by single precision floating point x,y,z values. The x,y,z values represent the red, green, and blue color values, respectively. Color components should be in the range of [0.0, 1.0].
Java 3D assumes that a linear (gamma-corrected) visual is used for all colors.
Field Summary |
Fields inherited from class javax.vecmath.Tuple3f |
x, y, z |
Constructor Summary | |
Color3f()
Constructs and initializes a Color3f to (0.0, 0.0, 0.0). |
|
Color3f(java.awt.Color color)
Constructs and initializes a Color3f from the specified AWT Color object. |
|
Color3f(Color3f v1)
Constructs and initializes a Color3f from the specified Color3f. |
|
Color3f(float[] v)
Constructs and initializes a Color3f from the array of length 3. |
|
Color3f(float x,
float y,
float z)
Constructs and initializes a Color3f from the three xyz values. |
|
Color3f(Tuple3d t1)
Constructs and initializes a Color3f from the specified Tuple3d. |
|
Color3f(Tuple3f t1)
Constructs and initializes a Color3f from the specified Tuple3f. |
Method Summary | |
java.awt.Color |
get()
Returns a new AWT color object initialized with the r,g,b values of this Color3f object. |
void |
set(java.awt.Color color)
Sets the r,g,b values of this Color3f object to those of the specified AWT Color object. |
Methods inherited from class javax.vecmath.Tuple3f |
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, clone, 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 |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Color3f(float x, float y, float z)
x
- the red color valuey
- the green color valuez
- the blue color valuepublic Color3f(float[] v)
v
- the array of length 3 containing xyz in orderpublic Color3f(Color3f v1)
v1
- the Color3f containing the initialization x y z datapublic Color3f(Tuple3f t1)
t1
- the Tuple3f containing the initialization x y z datapublic Color3f(Tuple3d t1)
t1
- the Tuple3d containing the initialization x y z datapublic Color3f(java.awt.Color color)
color
- the AWT color with which to initialize this
Color3f objectpublic Color3f()
Method Detail |
public final void set(java.awt.Color color)
color
- the AWT color to copy into this Color3f objectpublic final java.awt.Color get()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |