Class ChartLegendElement

    • Field Detail

      • ELEMENT_NAME

        public static final OdfName ELEMENT_NAME
    • Constructor Detail

      • ChartLegendElement

        public ChartLegendElement​(OdfFileDom ownerDoc)
        Create the instance of ChartLegendElement
        Parameters:
        ownerDoc - The type is OdfFileDom
    • Method Detail

      • getChartLegendAlignAttribute

        public String getChartLegendAlignAttribute()
        Receives the value of the ODFDOM attribute representation ChartLegendAlignAttribute , See @chart:legend-align
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setChartLegendAlignAttribute

        public void setChartLegendAlignAttribute​(String chartLegendAlignValue)
        Sets the value of ODFDOM attribute representation ChartLegendAlignAttribute , See @chart:legend-align
        Parameters:
        chartLegendAlignValue - The type is String
      • getChartLegendPositionAttribute

        public String getChartLegendPositionAttribute()
        Receives the value of the ODFDOM attribute representation ChartLegendPositionAttribute , See @chart:legend-position

        Attribute is mandatory.

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

        public void setChartLegendPositionAttribute​(String chartLegendPositionValue)
        Sets the value of ODFDOM attribute representation ChartLegendPositionAttribute , See @chart:legend-position
        Parameters:
        chartLegendPositionValue - 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
      • getStyleLegendExpansionAttribute

        public String getStyleLegendExpansionAttribute()
        Receives the value of the ODFDOM attribute representation StyleLegendExpansionAttribute , See @style:legend-expansion

        Attribute is mandatory.

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

        public void setStyleLegendExpansionAttribute​(String styleLegendExpansionValue)
        Sets the value of ODFDOM attribute representation StyleLegendExpansionAttribute , See @style:legend-expansion
        Parameters:
        styleLegendExpansionValue - The type is String
      • getStyleLegendExpansionAspectRatioAttribute

        public Double getStyleLegendExpansionAspectRatioAttribute()
        Receives the value of the ODFDOM attribute representation StyleLegendExpansionAspectRatioAttribute , See @style:legend-expansion-aspect-ratio
        Returns:
        - the Double , the value or null, if the attribute is not set and no default value defined.
      • setStyleLegendExpansionAspectRatioAttribute

        public void setStyleLegendExpansionAspectRatioAttribute​(Double styleLegendExpansionAspectRatioValue)
        Sets the value of ODFDOM attribute representation StyleLegendExpansionAspectRatioAttribute , See @style:legend-expansion-aspect-ratio
        Parameters:
        styleLegendExpansionAspectRatioValue - The type is Double
      • 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 is new in Odf 1.2

        Returns:
        the element <text:p>
      • accept

        public void accept​(ElementVisitor visitor)
        Description copied from class: OdfElement
        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