com.infragistics.faces.chart.component
Class Light

java.lang.Object
  extended bycom.infragistics.faces.shared.component.ModelComponent
      extended bycom.infragistics.faces.chart.component.Light
All Implemented Interfaces:
java.io.Serializable

public class Light
extends ModelComponent

Light components specify a light source used to illuminate the three dimensional charts.

Each light source specifies a color and can be one of:

  • directional (such as the sun) with parallel rays oriented in the specified direction.
  • positional (such as a candle) with rays emanating in all directions from the specified position.
  • spot
  • with rays emanating in the specified direction from the specified position
  • ambient
  • equally illuminating all surfaces. If no light sources are specified, a simple configuration consisting of a bright front and slight ambient illumination is automatically created.

    See Also:
    Serialized Form

    Constructor Summary
    Light()
               
     
    Method Summary
     java.awt.Color getColor()
              Returns the color of this light source.
     java.lang.String getDirection()
              Returns the light direction.
     float getFocus()
              Returns the spotlight beam focus.
     java.lang.String getPosition()
              Returns the position of this light source.
     void setColor(java.awt.Color color)
              Sets the color of this light source.
     void setDirection(java.lang.String direction)
              Sets the light direction.
     void setFocus(float focus)
              Sets the spotlight beam focus.
     void setPosition(java.lang.String position)
              Sets the position of this light source.
     
    Methods inherited from class com.infragistics.faces.shared.component.ModelComponent
    getParent, getValueBinding, setParent, setValueBinding
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    Light

    public Light()
    Method Detail

    getColor

    public java.awt.Color getColor()
    Returns the color of this light source.

    Returns:
    java.awt.Color

    setColor

    public void setColor(java.awt.Color color)
    Sets the color of this light source.

    Parameters:
    color - Color

    getDirection

    public java.lang.String getDirection()
    Returns the light direction. The direction may be null, in which case the light source will be either ambient or positional

    Returns:
    java.lang.String

    getFocus

    public float getFocus()
    Returns the spotlight beam focus.

    Returns:
    float

    getPosition

    public java.lang.String getPosition()
    Returns the position of this light source. The position may be null, in which case the light source will be either ambient or directional.

    Returns:
    java.lang.String

    setDirection

    public void setDirection(java.lang.String direction)
    Sets the light direction. The direction may be null, in which case the light source will be either ambient or positional

    Parameters:
    direction - String

    setFocus

    public void setFocus(float focus)
    Sets the spotlight beam focus.

    Parameters:
    focus - float

    setPosition

    public void setPosition(java.lang.String position)
    Sets the position of this light source. The position may be null, in which case the light source will be either ambient or directional.

    Parameters:
    position - String