Class DrawLayerElement

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

public class DrawLayerElement extends OdfElement
DOM implementation of OpenDocument element <draw:layer>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • DrawLayerElement

      public DrawLayerElement(OdfFileDom ownerDoc)
      Create the instance of DrawLayerElement
      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 <draw:layer>.
    • getDrawDisplayAttribute

      public String getDrawDisplayAttribute()
      Receives the value of the ODFDOM attribute representation DrawDisplayAttribute , See @draw:display
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setDrawDisplayAttribute

      public void setDrawDisplayAttribute(String drawDisplayValue)
      Sets the value of ODFDOM attribute representation DrawDisplayAttribute , See @draw:display
      Parameters:
      drawDisplayValue - The type is String
    • getDrawNameAttribute

      public String getDrawNameAttribute()
      Receives the value of the ODFDOM attribute representation DrawNameAttribute , See @draw:name

      Attribute is mandatory.

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

      public void setDrawNameAttribute(String drawNameValue)
      Sets the value of ODFDOM attribute representation DrawNameAttribute , See @draw:name
      Parameters:
      drawNameValue - The type is String
    • getDrawProtectedAttribute

      public Boolean getDrawProtectedAttribute()
      Receives the value of the ODFDOM attribute representation DrawProtectedAttribute , See @draw:protected
      Returns:
      - the Boolean , the value or null, if the attribute is not set and no default value defined.
    • setDrawProtectedAttribute

      public void setDrawProtectedAttribute(Boolean drawProtectedValue)
      Sets the value of ODFDOM attribute representation DrawProtectedAttribute , See @draw:protected
      Parameters:
      drawProtectedValue - The type is Boolean
    • newSvgDescElement

      public SvgDescElement newSvgDescElement()
      Create child element <svg:desc>.

      Child element was added in ODF 1.1

      Returns:
      the element <svg:desc>
    • newSvgTitleElement

      public SvgTitleElement newSvgTitleElement()
      Create child element <svg:title>.

      Child element was added in ODF 1.1

      Returns:
      the element <svg:title>
    • 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