Class DrawCustomShapeElement

    • Field Detail

      • ELEMENT_NAME

        public static final OdfName ELEMENT_NAME
    • Constructor Detail

      • DrawCustomShapeElement

        public DrawCustomShapeElement​(OdfFileDom ownerDoc)
        Create the instance of DrawCustomShapeElement
        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
      • getDrawDataAttribute

        public String getDrawDataAttribute()
        Receives the value of the ODFDOM attribute representation DrawDataAttribute , See @draw:data
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setDrawDataAttribute

        public void setDrawDataAttribute​(String drawDataValue)
        Sets the value of ODFDOM attribute representation DrawDataAttribute , See @draw:data
        Parameters:
        drawDataValue - The type is String
      • getDrawEngineAttribute

        public String getDrawEngineAttribute()
        Receives the value of the ODFDOM attribute representation DrawEngineAttribute , See @draw:engine
        Returns:
        - the String , the value or null, if the attribute is not set and no default value defined.
      • setDrawEngineAttribute

        public void setDrawEngineAttribute​(String drawEngineValue)
        Sets the value of ODFDOM attribute representation DrawEngineAttribute , See @draw:engine
        Parameters:
        drawEngineValue - 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
      • getSvgHeightAttribute

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

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

        public String getSvgXAttribute()
        Receives the value of the ODFDOM attribute representation SvgXAttribute , See @svg:x
        Overrides:
        getSvgXAttribute in class DrawShapeElementBase
        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
        Overrides:
        setSvgXAttribute in class DrawShapeElementBase
        Parameters:
        svgXValue - The type is String
      • getSvgYAttribute

        public String getSvgYAttribute()
        Receives the value of the ODFDOM attribute representation SvgYAttribute , See @svg:y
        Overrides:
        getSvgYAttribute in class DrawShapeElementBase
        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
        Overrides:
        setSvgYAttribute in class DrawShapeElementBase
        Parameters:
        svgYValue - 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)
        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