|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.field.SFColor
public class SFColor
Represents a VRML SFColor field in Java.
Constructor Summary | |
---|---|
SFColor()
Construct an SFColor field with the default values. |
|
SFColor(float red,
float green,
float blue)
Construct an 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. |
void |
setValue(ConstSFColor color)
Set the value of an SFColor using the given SFColor. |
void |
setValue(float[] colors)
Set the value of an SFColor. |
void |
setValue(float red,
float green,
float blue)
Set an SFColor with the given RGB values. |
void |
setValue(SFColor color)
Set the value of an SFColor using the given SFColor. |
Methods inherited from class vrml.Field |
---|
clone, dispose, finalize, getPeer, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SFColor()
public SFColor(float red, float green, float blue)
red
- R-component of colorgreen
- G-component of colorblue
- B-component of colorMethod Detail |
---|
public void getValue(float[] colors)
colors
- R,G,B value representing the SFColorpublic float getRed()
public float getGreen()
public float getBlue()
public void setValue(float[] colors)
colors
- R, G, B valuepublic void setValue(float red, float green, float blue)
red
- R-component of the colorgreen
- G-component of the colorblue
- B-component of the colorpublic void setValue(ConstSFColor color)
color
- ConstSFColor to take RGB value frompublic void setValue(SFColor color)
color
- SFColor to take RGB value from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |