Class DrawAElement

    • Field Detail

      • ELEMENT_NAME

        public static final OdfName ELEMENT_NAME
    • Constructor Detail

      • DrawAElement

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

      • getOfficeNameAttribute

        public String getOfficeNameAttribute()
        Receives the value of the ODFDOM attribute representation OfficeNameAttribute , See @office:name
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setOfficeNameAttribute

        public void setOfficeNameAttribute​(String officeNameValue)
        Sets the value of ODFDOM attribute representation OfficeNameAttribute , See @office:name
        Parameters:
        officeNameValue - The type is String
      • getOfficeServerMapAttribute

        public Boolean getOfficeServerMapAttribute()
        Receives the value of the ODFDOM attribute representation OfficeServerMapAttribute , See @office:server-map
        Returns:
        - the Boolean , the value or null, if the attribute is not set and no default value defined.
      • setOfficeServerMapAttribute

        public void setOfficeServerMapAttribute​(Boolean officeServerMapValue)
        Sets the value of ODFDOM attribute representation OfficeServerMapAttribute , See @office:server-map
        Parameters:
        officeServerMapValue - The type is Boolean
      • getOfficeTargetFrameNameAttribute

        public String getOfficeTargetFrameNameAttribute()
        Receives the value of the ODFDOM attribute representation OfficeTargetFrameNameAttribute , See @office:target-frame-name
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setOfficeTargetFrameNameAttribute

        public void setOfficeTargetFrameNameAttribute​(String officeTargetFrameNameValue)
        Sets the value of ODFDOM attribute representation OfficeTargetFrameNameAttribute , See @office:target-frame-name
        Parameters:
        officeTargetFrameNameValue - The type is String
      • getOfficeTitleAttribute

        public String getOfficeTitleAttribute()
        Receives the value of the ODFDOM attribute representation OfficeTitleAttribute , See @office:title
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setOfficeTitleAttribute

        public void setOfficeTitleAttribute​(String officeTitleValue)
        Sets the value of ODFDOM attribute representation OfficeTitleAttribute , See @office:title
        Parameters:
        officeTitleValue - The type is String
      • getXlinkActuateAttribute

        public String getXlinkActuateAttribute()
        Receives the value of the ODFDOM attribute representation XlinkActuateAttribute , See @xlink:actuate
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setXlinkActuateAttribute

        public void setXlinkActuateAttribute​(String xlinkActuateValue)
        Sets the value of ODFDOM attribute representation XlinkActuateAttribute , See @xlink:actuate
        Parameters:
        xlinkActuateValue - The type is String
      • getXlinkHrefAttribute

        public String getXlinkHrefAttribute()
        Receives the value of the ODFDOM attribute representation XlinkHrefAttribute , See @xlink:href

        Attribute is mandatory.

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

        public String getXlinkShowAttribute()
        Receives the value of the ODFDOM attribute representation XlinkShowAttribute , See @xlink:show
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setXlinkShowAttribute

        public void setXlinkShowAttribute​(String xlinkShowValue)
        Sets the value of ODFDOM attribute representation XlinkShowAttribute , See @xlink:show
        Parameters:
        xlinkShowValue - The type is String
      • getXlinkTypeAttribute

        public String getXlinkTypeAttribute()
        Receives the value of the ODFDOM attribute representation XlinkTypeAttribute , See @xlink:type

        Attribute is mandatory.

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

        public DrawConnectorElement newDrawConnectorElement​(int svgViewBoxValue)
        Create child element <draw:connector>.
        Parameters:
        svgViewBoxValue - the Integer value of SvgViewBoxAttribute, see @svg:viewBox at specification Child element was added in ODF 1.2
        Returns:
        the element <draw:connector>
      • newDrawGElement

        public DrawGElement newDrawGElement()
        Create child element <draw:g>.

        Child element was added in ODF 1.2

        Returns:
        the element <draw:g>
      • newDrawLineElement

        public DrawLineElement newDrawLineElement​(String svgX1Value,
                                                  String svgX2Value,
                                                  String svgY1Value,
                                                  String svgY2Value)
        Create child element <draw:line>.
        Parameters:
        svgX1Value - the String value of SvgX1Attribute, see @svg:x1 at specification
        svgX2Value - the String value of SvgX2Attribute, see @svg:x2 at specification
        svgY1Value - the String value of SvgY1Attribute, see @svg:y1 at specification
        svgY2Value - the String value of SvgY2Attribute, see @svg:y2 at specification Child element was added in ODF 1.2
        Returns:
        the element <draw:line>
      • newDrawMeasureElement

        public DrawMeasureElement newDrawMeasureElement​(String svgX1Value,
                                                        String svgX2Value,
                                                        String svgY1Value,
                                                        String svgY2Value)
        Create child element <draw:measure>.
        Parameters:
        svgX1Value - the String value of SvgX1Attribute, see @svg:x1 at specification
        svgX2Value - the String value of SvgX2Attribute, see @svg:x2 at specification
        svgY1Value - the String value of SvgY1Attribute, see @svg:y1 at specification
        svgY2Value - the String value of SvgY2Attribute, see @svg:y2 at specification Child element was added in ODF 1.2
        Returns:
        the element <draw:measure>
      • newDrawPathElement

        public DrawPathElement newDrawPathElement​(String svgDValue,
                                                  int svgViewBoxValue)
        Create child element <draw:path>.
        Parameters:
        svgDValue - the String value of SvgDAttribute, see @svg:d at specification
        svgViewBoxValue - the Integer value of SvgViewBoxAttribute, see @svg:viewBox at specification Child element was added in ODF 1.2
        Returns:
        the element <draw:path>
      • newDrawPolygonElement

        public DrawPolygonElement newDrawPolygonElement​(String drawPointsValue,
                                                        int svgViewBoxValue)
        Create child element <draw:polygon>.
        Parameters:
        drawPointsValue - the String value of DrawPointsAttribute, see @draw:points at specification
        svgViewBoxValue - the Integer value of SvgViewBoxAttribute, see @svg:viewBox at specification Child element was added in ODF 1.2
        Returns:
        the element <draw:polygon>
      • newDrawPolylineElement

        public DrawPolylineElement newDrawPolylineElement​(String drawPointsValue,
                                                          int svgViewBoxValue)
        Create child element <draw:polyline>.
        Parameters:
        drawPointsValue - the String value of DrawPointsAttribute, see @draw:points at specification
        svgViewBoxValue - the Integer value of SvgViewBoxAttribute, see @svg:viewBox at specification Child element was added in ODF 1.2
        Returns:
        the element <draw:polyline>
      • newDrawRegularPolygonElement

        public DrawRegularPolygonElement newDrawRegularPolygonElement​(boolean drawConcaveValue,
                                                                      int drawCornersValue)
        Create child element <draw:regular-polygon>.
        Parameters:
        drawConcaveValue - the Boolean value of DrawConcaveAttribute, see @draw:concave at specification
        drawCornersValue - the Integer value of DrawCornersAttribute, see @draw:corners at specification Child element was added in ODF 1.2
        Returns:
        the element <draw:regular-polygon>
      • 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