j3d-vrml97-0.1.0

org.jdesktop.j3d.loaders.vrml97.impl
Class SFColor

java.lang.Object
  extended by org.jdesktop.j3d.loaders.vrml97.impl.Field
      extended by org.jdesktop.j3d.loaders.vrml97.impl.SFColor

public class SFColor
extends Field

Description of the Class


Field Summary
 
Fields inherited from class org.jdesktop.j3d.loaders.vrml97.impl.Field
constField, fieldType
 
Constructor Summary
SFColor(float[] initColor)
          Constructor for the SFColor object
SFColor(float red, float green, float blue)
          Constructor for the SFColor object
 
Method Summary
 Object clone()
          Description of the Method
 ConstField constify()
          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
 String toString()
          Description of the Method
 void update(Field field)
          Description of the Method
 Field wrap()
          Description of the Method
 
Methods inherited from class org.jdesktop.j3d.loaders.vrml97.impl.Field
baseName, markWriteable, toStringId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

update

public void update(Field field)
Description of the Method

Parameters:
field - Description of the Parameter

constify

public ConstField constify()
Description of the Method

Returns:
Description of the Return Value

wrap

public Field wrap()
Description of the Method

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

toString

public String toString()
Description of the Method

Overrides:
toString in class Object
Returns:
Description of the Return Value

j3d-vrml97-0.1.0

Todo: put BSD License reference here..