javax.vecmath

Class Color3b

Implemented Interfaces:
Serializable

public class Color3b
extends Tuple3b
implements Serializable

A three byte vector used for colors.
Version:
specification 1.2, implementation $Revision: 1.9 $, $Date: 1999/11/25 10:55:01 $
Author:
Kenji hiranabe

Field Summary

Fields inherited from class javax.vecmath.Tuple3b

x, y, z

Constructor Summary

Color3b()
Constructs and initializes a Color3b to (0,0,0).
Color3b(byte c1, byte c2, byte c3)
Constructs and initializes a Color3b from the specified three values.
Color3b(c[] )
Constructs and initializes a Color3b from input array of length 3.
Color3b(java.awt.Color color)
Constructs color from awt.Color.
Color3b(Color3b c1)
Constructs and initializes a Color3b from the specified Color3b.
Color3b(Tuple3b t1)
Constructs and initializes a Color3b from the specified Tuple3b.

Method Summary

java.awt.Color
get()
Gets awt.Color.
void
set(java.awt.Color color)
Sets color from awt.Color.

Methods inherited from class javax.vecmath.Tuple3b

equals, equals, get, get, hashCode, set, set, toString

Constructor Details

Color3b

public Color3b()
Constructs and initializes a Color3b to (0,0,0).

Color3b

public Color3b(byte c1,
               byte c2,
               byte c3)
Constructs and initializes a Color3b from the specified three values.
Parameters:
c1 - the first value
c2 - the second value
c3 - the third value

Color3b

public Color3b(c[] )
Constructs and initializes a Color3b from input array of length 3.
Parameters:

Color3b

public Color3b(java.awt.Color color)
Constructs color from awt.Color.
Parameters:
color - awt color

Color3b

public Color3b(Color3b c1)
Constructs and initializes a Color3b from the specified Color3b.
Parameters:

Color3b

public Color3b(Tuple3b t1)
Constructs and initializes a Color3b from the specified Tuple3b.
Parameters:
t1 - the Tuple3b containing the initialization x y z data

Method Details

get

public final java.awt.Color get()
Gets awt.Color.
Returns:
color awt color

set

public final void set(java.awt.Color color)
Sets color from awt.Color.
Parameters:
color - awt color