Class Dr3dLightElement

All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class Dr3dLightElement extends OdfElement
DOM implementation of OpenDocument element <dr3d:light>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • Dr3dLightElement

      public Dr3dLightElement(OdfFileDom ownerDoc)
      Create the instance of Dr3dLightElement
      Parameters:
      ownerDoc - The type is OdfFileDom
  • Method Details

    • getOdfName

      public OdfName getOdfName()
      Get the element name
      Specified by:
      getOdfName in class OdfElement
      Returns:
      return OdfName the name of element <dr3d:light>.
    • getDr3dDiffuseColorAttribute

      public String getDr3dDiffuseColorAttribute()
      Receives the value of the ODFDOM attribute representation Dr3dDiffuseColorAttribute , See @dr3d:diffuse-color
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setDr3dDiffuseColorAttribute

      public void setDr3dDiffuseColorAttribute(String dr3dDiffuseColorValue)
      Sets the value of ODFDOM attribute representation Dr3dDiffuseColorAttribute , See @dr3d:diffuse-color
      Parameters:
      dr3dDiffuseColorValue - The type is String
    • getDr3dDirectionAttribute

      public String getDr3dDirectionAttribute()
      Receives the value of the ODFDOM attribute representation Dr3dDirectionAttribute , See @dr3d:direction

      Attribute is mandatory.

      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setDr3dDirectionAttribute

      public void setDr3dDirectionAttribute(String dr3dDirectionValue)
      Sets the value of ODFDOM attribute representation Dr3dDirectionAttribute , See @dr3d:direction
      Parameters:
      dr3dDirectionValue - The type is String
    • getDr3dEnabledAttribute

      public Boolean getDr3dEnabledAttribute()
      Receives the value of the ODFDOM attribute representation Dr3dEnabledAttribute , See @dr3d:enabled
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setDr3dEnabledAttribute

      public void setDr3dEnabledAttribute(Boolean dr3dEnabledValue)
      Sets the value of ODFDOM attribute representation Dr3dEnabledAttribute , See @dr3d:enabled
      Parameters:
      dr3dEnabledValue - The type is Boolean
    • getDr3dSpecularAttribute

      public Boolean getDr3dSpecularAttribute()
      Receives the value of the ODFDOM attribute representation Dr3dSpecularAttribute , See @dr3d:specular
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setDr3dSpecularAttribute

      public void setDr3dSpecularAttribute(Boolean dr3dSpecularValue)
      Sets the value of ODFDOM attribute representation Dr3dSpecularAttribute , See @dr3d:specular
      Parameters:
      dr3dSpecularValue - The type is Boolean
    • accept

      public void accept(ElementVisitor visitor)
      Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design pattern to get a better understanding.
      Overrides:
      accept in class OdfElement
      Parameters:
      visitor - an instance of DefaultElementVisitor