javax.vecmath

Class Color3b

public class Color3b extends Tuple3b implements Serializable

A three byte vector used for colors.
Constructor Summary
Color3b(byte c1, byte c2, byte c3)
Constructs and initializes a Color3b from the specified three values.
Color3b(byte[] c)
Constructs and initializes a Color3b from input array of length 3.
Color3b(Color3b c1)
Constructs and initializes a Color3b from the specified Color3b.
Color3b(Tuple3b t1)
Constructs and initializes a Color3b from the specified Tuple3b.
Color3b()
Constructs and initializes a Color3b to (0,0,0).
Color3b(Color color)
Constructs color from awt.Color.
Method Summary
Colorget()
Gets awt.Color.
voidset(Color color)
Sets color from awt.Color.

Constructor Detail

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(byte[] c)
Constructs and initializes a Color3b from input array of length 3.

Parameters: t the array of length 3 containing c1 c2 c3 in order

Color3b

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

Parameters: c the Color3b containing the initialization x y z data

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

Color3b

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

Color3b

public Color3b(Color color)
Constructs color from awt.Color.

Parameters: color awt color

Method Detail

get

public final Color get()
Gets awt.Color.

Returns: color awt color

set

public final void set(Color color)
Sets color from awt.Color.

Parameters: color awt color