Class DrawMeasureElement

    • Field Detail

      • ELEMENT_NAME

        public static final OdfName ELEMENT_NAME
    • Constructor Detail

      • DrawMeasureElement

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

      • getDrawCaptionIdAttribute

        public String getDrawCaptionIdAttribute()
        Receives the value of the ODFDOM attribute representation DrawCaptionIdAttribute , See @draw:caption-id
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setDrawCaptionIdAttribute

        public void setDrawCaptionIdAttribute​(String drawCaptionIdValue)
        Sets the value of ODFDOM attribute representation DrawCaptionIdAttribute , See @draw:caption-id
        Parameters:
        drawCaptionIdValue - The type is String
      • getDrawLayerAttribute

        public String getDrawLayerAttribute()
        Receives the value of the ODFDOM attribute representation DrawLayerAttribute , See @draw:layer
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setDrawLayerAttribute

        public void setDrawLayerAttribute​(String drawLayerValue)
        Sets the value of ODFDOM attribute representation DrawLayerAttribute , See @draw:layer
        Parameters:
        drawLayerValue - The type is String
      • getDrawTextStyleNameAttribute

        public String getDrawTextStyleNameAttribute()
        Receives the value of the ODFDOM attribute representation DrawTextStyleNameAttribute , See @draw:text-style-name
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setDrawTextStyleNameAttribute

        public void setDrawTextStyleNameAttribute​(String drawTextStyleNameValue)
        Sets the value of ODFDOM attribute representation DrawTextStyleNameAttribute , See @draw:text-style-name
        Parameters:
        drawTextStyleNameValue - The type is String
      • getDrawTransformAttribute

        public String getDrawTransformAttribute()
        Receives the value of the ODFDOM attribute representation DrawTransformAttribute , See @draw:transform
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setDrawTransformAttribute

        public void setDrawTransformAttribute​(String drawTransformValue)
        Sets the value of ODFDOM attribute representation DrawTransformAttribute , See @draw:transform
        Parameters:
        drawTransformValue - The type is String
      • getSvgX1Attribute

        public String getSvgX1Attribute()
        Receives the value of the ODFDOM attribute representation SvgX1Attribute , See @svg:x1

        Attribute is mandatory.

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

        public void setSvgX1Attribute​(String svgX1Value)
        Sets the value of ODFDOM attribute representation SvgX1Attribute , See @svg:x1
        Parameters:
        svgX1Value - The type is String
      • getSvgX2Attribute

        public String getSvgX2Attribute()
        Receives the value of the ODFDOM attribute representation SvgX2Attribute , See @svg:x2

        Attribute is mandatory.

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

        public void setSvgX2Attribute​(String svgX2Value)
        Sets the value of ODFDOM attribute representation SvgX2Attribute , See @svg:x2
        Parameters:
        svgX2Value - The type is String
      • getSvgY1Attribute

        public String getSvgY1Attribute()
        Receives the value of the ODFDOM attribute representation SvgY1Attribute , See @svg:y1

        Attribute is mandatory.

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

        public void setSvgY1Attribute​(String svgY1Value)
        Sets the value of ODFDOM attribute representation SvgY1Attribute , See @svg:y1
        Parameters:
        svgY1Value - The type is String
      • getSvgY2Attribute

        public String getSvgY2Attribute()
        Receives the value of the ODFDOM attribute representation SvgY2Attribute , See @svg:y2

        Attribute is mandatory.

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

        public void setSvgY2Attribute​(String svgY2Value)
        Sets the value of ODFDOM attribute representation SvgY2Attribute , See @svg:y2
        Parameters:
        svgY2Value - The type is String
      • newDrawGluePointElement

        public DrawGluePointElement newDrawGluePointElement​(String drawEscapeDirectionValue,
                                                            String drawIdValue,
                                                            String svgXValue,
                                                            String svgYValue)
        Create child element <draw:glue-point>.
        Parameters:
        drawEscapeDirectionValue - the String value of DrawEscapeDirectionAttribute, see @draw:escape-direction at specification
        drawIdValue - the String value of DrawIdAttribute, see @draw:id at specification
        svgXValue - the String value of SvgXAttribute, see @svg:x at specification
        svgYValue - the String value of SvgYAttribute, see @svg:y at specification
        Returns:
        the element <draw:glue-point>
      • 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