Class ChartSeriesElement

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

public class ChartSeriesElement extends OdfStylableElement
DOM implementation of OpenDocument element <chart:series>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • ChartSeriesElement

      public ChartSeriesElement(OdfFileDom ownerDoc)
      Create the instance of ChartSeriesElement
      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:series>.
    • getChartAttachedAxisAttribute

      public String getChartAttachedAxisAttribute()
      Receives the value of the ODFDOM attribute representation ChartAttachedAxisAttribute , See @chart:attached-axis
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setChartAttachedAxisAttribute

      public void setChartAttachedAxisAttribute(String chartAttachedAxisValue)
      Sets the value of ODFDOM attribute representation ChartAttachedAxisAttribute , See @chart:attached-axis
      Parameters:
      chartAttachedAxisValue - The type is String
    • getChartClassAttribute

      public String getChartClassAttribute()
      Receives the value of the ODFDOM attribute representation ChartClassAttribute , See @chart:class
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setChartClassAttribute

      public void setChartClassAttribute(String chartClassValue)
      Sets the value of ODFDOM attribute representation ChartClassAttribute , See @chart:class
      Parameters:
      chartClassValue - The type is String
    • getChartLabelCellAddressAttribute

      public String getChartLabelCellAddressAttribute()
      Receives the value of the ODFDOM attribute representation ChartLabelCellAddressAttribute , See @chart:label-cell-address
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setChartLabelCellAddressAttribute

      public void setChartLabelCellAddressAttribute(String chartLabelCellAddressValue)
      Sets the value of ODFDOM attribute representation ChartLabelCellAddressAttribute , See @chart:label-cell-address
      Parameters:
      chartLabelCellAddressValue - The type is String
    • 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
    • getChartValuesCellRangeAddressAttribute

      public String getChartValuesCellRangeAddressAttribute()
      Receives the value of the ODFDOM attribute representation ChartValuesCellRangeAddressAttribute , See @chart:values-cell-range-address
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setChartValuesCellRangeAddressAttribute

      public void setChartValuesCellRangeAddressAttribute(String chartValuesCellRangeAddressValue)
      Sets the value of ODFDOM attribute representation ChartValuesCellRangeAddressAttribute , See @chart:values-cell-range-address
      Parameters:
      chartValuesCellRangeAddressValue - The type is String
    • getXmlIdAttribute

      public String getXmlIdAttribute()
      Receives the value of the ODFDOM attribute representation XmlIdAttribute , See @xml:id
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setXmlIdAttribute

      public void setXmlIdAttribute(String xmlIdValue)
      Sets the value of ODFDOM attribute representation XmlIdAttribute , See @xml:id
      Parameters:
      xmlIdValue - The type is String
    • newChartDataLabelElement

      public ChartDataLabelElement newChartDataLabelElement()
      Create child element <chart:data-label>.

      Child element was added in ODF 1.2

      Returns:
      the element <chart:data-label>
    • newChartDataPointElement

      public ChartDataPointElement newChartDataPointElement()
      Create child element <chart:data-point>.
      Returns:
      the element <chart:data-point>
    • newChartDomainElement

      public ChartDomainElement newChartDomainElement()
      Create child element <chart:domain>.
      Returns:
      the element <chart:domain>
    • newChartErrorIndicatorElement

      public ChartErrorIndicatorElement newChartErrorIndicatorElement(String chartDimensionValue)
      Create child element <chart:error-indicator>.
      Parameters:
      chartDimensionValue - the String value of ChartDimensionAttribute , see @chart:dimension at specification
      Returns:
      the element <chart:error-indicator>
    • newChartMeanValueElement

      public ChartMeanValueElement newChartMeanValueElement()
      Create child element <chart:mean-value>.
      Returns:
      the element <chart:mean-value>
    • newChartRegressionCurveElement

      public ChartRegressionCurveElement newChartRegressionCurveElement()
      Create child element <chart:regression-curve>.
      Returns:
      the element <chart:regression-curve>
    • 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