Class ChartAxisElement

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

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

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • ChartAxisElement

      public ChartAxisElement(OdfFileDom ownerDoc)
      Create the instance of ChartAxisElement
      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:axis>.
    • getChartDimensionAttribute

      public String getChartDimensionAttribute()
      Receives the value of the ODFDOM attribute representation ChartDimensionAttribute , See @chart:dimension

      Attribute is mandatory.

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

      public void setChartDimensionAttribute(String chartDimensionValue)
      Sets the value of ODFDOM attribute representation ChartDimensionAttribute , See @chart:dimension
      Parameters:
      chartDimensionValue - The type is String
    • getChartNameAttribute

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

      public void setChartNameAttribute(String chartNameValue)
      Sets the value of ODFDOM attribute representation ChartNameAttribute , See @chart:name
      Parameters:
      chartNameValue - 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
    • newChartCategoriesElement

      public ChartCategoriesElement newChartCategoriesElement()
      Create child element <chart:categories>.
      Returns:
      the element <chart:categories>
    • newChartGridElement

      public ChartGridElement newChartGridElement()
      Create child element <chart:grid>.
      Returns:
      the element <chart:grid>
    • newChartTitleElement

      public ChartTitleElement newChartTitleElement()
      Create child element <chart:title>.
      Returns:
      the element <chart: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