Class StyleDropCapElement

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

public class StyleDropCapElement extends OdfStylableElement
DOM implementation of OpenDocument element <style:drop-cap>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • StyleDropCapElement

      public StyleDropCapElement(OdfFileDom ownerDoc)
      Create the instance of StyleDropCapElement
      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 <style:drop-cap>.
    • getStyleDistanceAttribute

      public String getStyleDistanceAttribute()
      Receives the value of the ODFDOM attribute representation StyleDistanceAttribute , See @style:distance
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleDistanceAttribute

      public void setStyleDistanceAttribute(String styleDistanceValue)
      Sets the value of ODFDOM attribute representation StyleDistanceAttribute , See @style:distance
      Parameters:
      styleDistanceValue - The type is String
    • getStyleLengthAttribute

      public Integer getStyleLengthAttribute()
      Receives the value of the ODFDOM attribute representation StyleLengthAttribute , See @style:length
      Returns:
      - the Integer , the value or null, if the attribute is not set and no default value defined.
    • setStyleLengthAttribute

      public void setStyleLengthAttribute(Integer styleLengthValue)
      Sets the value of ODFDOM attribute representation StyleLengthAttribute , See @style:length
      Parameters:
      styleLengthValue - The type is Integer
    • getStyleLinesAttribute

      public Integer getStyleLinesAttribute()
      Receives the value of the ODFDOM attribute representation StyleLinesAttribute , See @style:lines
      Returns:
      - the Integer , the value or null, if the attribute is not set and no default value defined.
    • setStyleLinesAttribute

      public void setStyleLinesAttribute(Integer styleLinesValue)
      Sets the value of ODFDOM attribute representation StyleLinesAttribute , See @style:lines
      Parameters:
      styleLinesValue - The type is Integer
    • getStyleStyleNameAttribute

      public String getStyleStyleNameAttribute()
      Receives the value of the ODFDOM attribute representation StyleStyleNameAttribute , See @style:style-name
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setStyleStyleNameAttribute

      public void setStyleStyleNameAttribute(String styleStyleNameValue)
      Sets the value of ODFDOM attribute representation StyleStyleNameAttribute , See @style:style-name
      Parameters:
      styleStyleNameValue - The type is String
    • 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