Class ChartChartElement

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

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

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • ChartChartElement

      public ChartChartElement(OdfFileDom ownerDoc)
      Create the instance of ChartChartElement
      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:chart>.
    • getChartClassAttribute

      public String getChartClassAttribute()
      Receives the value of the ODFDOM attribute representation ChartClassAttribute , See @chart:class

      Attribute is mandatory.

      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
    • getChartColumnMappingAttribute

      public String getChartColumnMappingAttribute()
      Receives the value of the ODFDOM attribute representation ChartColumnMappingAttribute , See @chart:column-mapping
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setChartColumnMappingAttribute

      public void setChartColumnMappingAttribute(String chartColumnMappingValue)
      Sets the value of ODFDOM attribute representation ChartColumnMappingAttribute , See @chart:column-mapping
      Parameters:
      chartColumnMappingValue - The type is String
    • getChartRowMappingAttribute

      public String getChartRowMappingAttribute()
      Receives the value of the ODFDOM attribute representation ChartRowMappingAttribute , See @chart:row-mapping
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setChartRowMappingAttribute

      public void setChartRowMappingAttribute(String chartRowMappingValue)
      Sets the value of ODFDOM attribute representation ChartRowMappingAttribute , See @chart:row-mapping
      Parameters:
      chartRowMappingValue - 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
    • getSvgHeightAttribute

      public String getSvgHeightAttribute()
      Receives the value of the ODFDOM attribute representation SvgHeightAttribute , See @svg:height
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setSvgHeightAttribute

      public void setSvgHeightAttribute(String svgHeightValue)
      Sets the value of ODFDOM attribute representation SvgHeightAttribute , See @svg:height
      Parameters:
      svgHeightValue - The type is String
    • getSvgWidthAttribute

      public String getSvgWidthAttribute()
      Receives the value of the ODFDOM attribute representation SvgWidthAttribute , See @svg:width
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setSvgWidthAttribute

      public void setSvgWidthAttribute(String svgWidthValue)
      Sets the value of ODFDOM attribute representation SvgWidthAttribute , See @svg:width
      Parameters:
      svgWidthValue - The type is String
    • getXlinkHrefAttribute

      public String getXlinkHrefAttribute()
      Receives the value of the ODFDOM attribute representation XlinkHrefAttribute , See @xlink:href
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setXlinkHrefAttribute

      public void setXlinkHrefAttribute(String xlinkHrefValue)
      Sets the value of ODFDOM attribute representation XlinkHrefAttribute , See @xlink:href
      Parameters:
      xlinkHrefValue - The type is String
    • getXlinkTypeAttribute

      public String getXlinkTypeAttribute()
      Receives the value of the ODFDOM attribute representation XlinkTypeAttribute , See @xlink:type
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setXlinkTypeAttribute

      public void setXlinkTypeAttribute(String xlinkTypeValue)
      Sets the value of ODFDOM attribute representation XlinkTypeAttribute , See @xlink:type
      Parameters:
      xlinkTypeValue - 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
    • newChartFooterElement

      public ChartFooterElement newChartFooterElement()
      Create child element <chart:footer>.
      Returns:
      the element <chart:footer>
    • newChartLegendElement

      public ChartLegendElement newChartLegendElement(String chartLegendPositionValue, String styleLegendExpansionValue)
      Create child element <chart:legend>.
      Parameters:
      chartLegendPositionValue - the String value of ChartLegendPositionAttribute, see @chart:legend-position at specification
      styleLegendExpansionValue - the String value of StyleLegendExpansionAttribute, see @style:legend-expansion at specification
      Returns:
      the element <chart:legend>
    • newChartPlotAreaElement

      public ChartPlotAreaElement newChartPlotAreaElement()
      Create child element <chart:plot-area>.

      Child element is mandatory.

      Returns:
      the element <chart:plot-area>
    • newChartSubtitleElement

      public ChartSubtitleElement newChartSubtitleElement()
      Create child element <chart:subtitle>.
      Returns:
      the element <chart:subtitle>
    • newChartTitleElement

      public ChartTitleElement newChartTitleElement()
      Create child element <chart:title>.
      Returns:
      the element <chart:title>
    • newTableTableElement

      public TableTableElement newTableTableElement()
      Create child element <table:table>.
      Returns:
      the element <table:table>
    • 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