j3d-vrml97-0.1.0

vrml.field
Class SFColor

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

public class SFColor
extends Field

Description of the Class


Field Summary
 
Fields inherited from class vrml.Field
implField
 
Constructor Summary
SFColor(float[] initColor)
          Constructor for the SFColor object
SFColor(float red, float green, float blue)
          Constructor for the SFColor object
SFColor(SFColor init)
          Constructor for the SFColor object
 
Method Summary
 Object clone()
          Description of the Method
 float getBlue()
          Gets the blue attribute of the SFColor object
 float getGreen()
          Gets the green attribute of the SFColor object
 float getRed()
          Gets the red attribute of the SFColor object
 float[] getValue()
          Gets the value attribute of the SFColor object
 void getValue(float[] colr)
          Gets the value attribute of the SFColor object
 void setBlue(float blue)
          Sets the blue attribute of the SFColor object
 void setGreen(float green)
          Sets the green attribute of the SFColor object
 void setRed(float red)
          Sets the red attribute of the SFColor object
 void setValue(ConstSFColor constsfcolr)
          Sets the value attribute of the SFColor object
 void setValue(float[] colrs)
          Sets the value attribute of the SFColor object
 void setValue(float red, float green, float blue)
          Sets the value attribute of the SFColor object
 void setValue(SFColor sfcolr)
          Sets the value attribute of the SFColor object
 
Methods inherited from class vrml.Field
getImpl, markWriteable
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFColor

public SFColor(SFColor init)
Constructor for the SFColor object

Parameters:
init - Description of the Parameter

SFColor

public SFColor(float red,
               float green,
               float blue)
Constructor for the SFColor object

Parameters:
red - Description of the Parameter
green - Description of the Parameter
blue - Description of the Parameter

SFColor

public SFColor(float[] initColor)
Constructor for the SFColor object

Parameters:
initColor - Description of the Parameter
Method Detail

getValue

public void getValue(float[] colr)
Gets the value attribute of the SFColor object

Parameters:
colr - Description of the Parameter

getValue

public float[] getValue()
Gets the value attribute of the SFColor object

Returns:
The value value

setRed

public void setRed(float red)
Sets the red attribute of the SFColor object

Parameters:
red - The new red value

setGreen

public void setGreen(float green)
Sets the green attribute of the SFColor object

Parameters:
green - The new green value

setBlue

public void setBlue(float blue)
Sets the blue attribute of the SFColor object

Parameters:
blue - The new blue value

getRed

public float getRed()
Gets the red attribute of the SFColor object

Returns:
The red value

getGreen

public float getGreen()
Gets the green attribute of the SFColor object

Returns:
The green value

getBlue

public float getBlue()
Gets the blue attribute of the SFColor object

Returns:
The blue value

setValue

public void setValue(float[] colrs)
Sets the value attribute of the SFColor object

Parameters:
colrs - The new value value

setValue

public void setValue(float red,
                     float green,
                     float blue)
Sets the value attribute of the SFColor object

Parameters:
red - The new value value
green - The new value value
blue - The new value value

setValue

public void setValue(ConstSFColor constsfcolr)
Sets the value attribute of the SFColor object

Parameters:
constsfcolr - The new value value

setValue

public void setValue(SFColor sfcolr)
Sets the value attribute of the SFColor object

Parameters:
sfcolr - The new value value

clone

public Object clone()
Description of the Method

Specified by:
clone in class Field
Returns:
Description of the Return Value

j3d-vrml97-0.1.0

Todo: put BSD License reference here..