Class ChartDataLabelElement

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

public class ChartDataLabelElement extends OdfElement
DOM implementation of OpenDocument element <chart:data-label>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • ChartDataLabelElement

      public ChartDataLabelElement(OdfFileDom ownerDoc)
      Create the instance of ChartDataLabelElement
      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 <chart:data-label>.
    • getChartStyleNameAttribute

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

      public void setChartStyleNameAttribute(String chartStyleNameValue)
      Sets the value of ODFDOM attribute representation ChartStyleNameAttribute , See @chart:style-name
      Parameters:
      chartStyleNameValue - The type is String
    • getSvgXAttribute

      public String getSvgXAttribute()
      Receives the value of the ODFDOM attribute representation SvgXAttribute , See @svg:x
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setSvgXAttribute

      public void setSvgXAttribute(String svgXValue)
      Sets the value of ODFDOM attribute representation SvgXAttribute , See @svg:x
      Parameters:
      svgXValue - The type is String
    • getSvgYAttribute

      public String getSvgYAttribute()
      Receives the value of the ODFDOM attribute representation SvgYAttribute , See @svg:y
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setSvgYAttribute

      public void setSvgYAttribute(String svgYValue)
      Sets the value of ODFDOM attribute representation SvgYAttribute , See @svg:y
      Parameters:
      svgYValue - The type is String
    • newTextPElement

      public TextPElement newTextPElement()
      Create child element <text:p>.

      Child element was added in ODF 1.2

      Returns:
      the element <text:p>
    • 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