vrml.field
Class ConstSFColor

java.lang.Object
  extended by vrml.Field
      extended by vrml.ConstField
          extended by vrml.field.ConstSFColor
All Implemented Interfaces:
java.lang.Cloneable

public class ConstSFColor
extends ConstField

Represents a read-only VRML SFColor field in Java.


Constructor Summary
ConstSFColor(float red, float green, float blue)
          Construct a read-only SFColor field.
 
Method Summary
 float getBlue()
          Get the B-component of the SFColor.
 float getGreen()
          Get the G-component of the SFColor.
 float getRed()
          Get the R-component of the SFColor.
 void getValue(float[] colors)
          Get the R,G,B values representing the SFColor.
 
Methods inherited from class vrml.ConstField
clone
 
Methods inherited from class vrml.Field
dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstSFColor

public ConstSFColor(float red,
                    float green,
                    float blue)
Construct a read-only SFColor field.

Parameters:
red - R-component of color
green - G-component of color
blue - B-component of color
Method Detail

getValue

public void getValue(float[] colors)
Get the R,G,B values representing the SFColor.

Parameters:
colors - R,G,B value representing the SFColor

getRed

public float getRed()
Get the R-component of the SFColor.

Returns:
R-component of the SFColor

getGreen

public float getGreen()
Get the G-component of the SFColor.

Returns:
G-component of the SFColor

getBlue

public float getBlue()
Get the B-component of the SFColor.

Returns:
B-component of the SFColor