Class DrawImageMapElement

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

public class DrawImageMapElement extends OdfElement
DOM implementation of OpenDocument element <draw:image-map>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • DrawImageMapElement

      public DrawImageMapElement(OdfFileDom ownerDoc)
      Create the instance of DrawImageMapElement
      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 <draw:image-map>.
    • newDrawAreaCircleElement

      public DrawAreaCircleElement newDrawAreaCircleElement(String svgCxValue, String svgCyValue, String svgRValue)
      Create child element <draw:area-circle>.
      Parameters:
      svgCxValue - the String value of SvgCxAttribute, see @svg:cx at specification
      svgCyValue - the String value of SvgCyAttribute, see @svg:cy at specification
      svgRValue - the String value of SvgRAttribute, see @svg:r at specification
      Returns:
      the element <draw:area-circle>
    • newDrawAreaPolygonElement

      public DrawAreaPolygonElement newDrawAreaPolygonElement(String drawPointsValue, String svgHeightValue, int svgViewBoxValue, String svgWidthValue, String svgXValue, String svgYValue)
      Create child element <draw:area-polygon>.
      Parameters:
      drawPointsValue - the String value of DrawPointsAttribute, see @draw:points at specification
      svgHeightValue - the String value of SvgHeightAttribute, see @svg:height at specification
      svgViewBoxValue - the Integer value of SvgViewBoxAttribute, see @svg:viewBox at specification
      svgWidthValue - the String value of SvgWidthAttribute, see @svg:width 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:area-polygon>
    • newDrawAreaRectangleElement

      public DrawAreaRectangleElement newDrawAreaRectangleElement(String svgHeightValue, String svgWidthValue, String svgXValue, String svgYValue)
      Create child element <draw:area-rectangle>.
      Parameters:
      svgHeightValue - the String value of SvgHeightAttribute, see @svg:height at specification
      svgWidthValue - the String value of SvgWidthAttribute, see @svg:width 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:area-rectangle>
    • 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