![JAR search and dependency download from the Maven repository](/logo.png)
org.odftoolkit.odfdom.dom.element.draw.DrawImageMapElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odfdom-java Show documentation
Show all versions of odfdom-java Show documentation
ODFDOM is an OpenDocument Format (ODF) framework. Its purpose
is to provide an easy common way to create, access and
manipulate ODF files, without requiring detailed knowledge of
the ODF specification. It is designed to provide the ODF
developer community with an easy lightwork programming API
portable to any object-oriented language.
The current reference implementation is written in Java.
/************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
*
* Use is subject to license terms.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0. You can also
* obtain a copy of the License at http://odftoolkit.org/docs/license.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* See the License for the specific language governing permissions and
* limitations under the License.
*
************************************************************************/
/*
* This file is automatically generated.
* Don't edit manually.
*/
package org.odftoolkit.odfdom.dom.element.draw;
import org.odftoolkit.odfdom.pkg.OdfElement;
import org.odftoolkit.odfdom.pkg.ElementVisitor;
import org.odftoolkit.odfdom.pkg.OdfFileDom;
import org.odftoolkit.odfdom.pkg.OdfName;
import org.odftoolkit.odfdom.dom.OdfDocumentNamespace;
import org.odftoolkit.odfdom.dom.DefaultElementVisitor;
/**
* DOM implementation of OpenDocument element {@odf.element draw:image-map}.
*
*/
public class DrawImageMapElement extends OdfElement {
public static final OdfName ELEMENT_NAME = OdfName.newName(OdfDocumentNamespace.DRAW, "image-map");
/**
* Create the instance of DrawImageMapElement
*
* @param ownerDoc The type is OdfFileDom
*/
public DrawImageMapElement(OdfFileDom ownerDoc) {
super(ownerDoc, ELEMENT_NAME);
}
/**
* Get the element name
*
* @return return OdfName
the name of element {@odf.element draw:image-map}.
*/
public OdfName getOdfName() {
return ELEMENT_NAME;
}
/**
* Create child element {@odf.element draw:area-circle}.
*
* @param svgCxValue the String
value of SvgCxAttribute
, see {@odf.attribute svg:cx} at specification
* @param svgCyValue the String
value of SvgCyAttribute
, see {@odf.attribute svg:cy} at specification
* @param svgRValue the String
value of SvgRAttribute
, see {@odf.attribute svg:r} at specification
* @return the element {@odf.element draw:area-circle}
*/
public DrawAreaCircleElement newDrawAreaCircleElement(String svgCxValue, String svgCyValue, String svgRValue) {
DrawAreaCircleElement drawAreaCircle = ((OdfFileDom) this.ownerDocument).newOdfElement(DrawAreaCircleElement.class);
drawAreaCircle.setSvgCxAttribute(svgCxValue);
drawAreaCircle.setSvgCyAttribute(svgCyValue);
drawAreaCircle.setSvgRAttribute(svgRValue);
this.appendChild(drawAreaCircle);
return drawAreaCircle;
}
/**
* Create child element {@odf.element draw:area-polygon}.
*
* @param drawPointsValue the String
value of DrawPointsAttribute
, see {@odf.attribute draw:points} at specification
* @param svgHeightValue the String
value of SvgHeightAttribute
, see {@odf.attribute svg:height} at specification
* @param svgViewBoxValue the Integer
value of SvgViewBoxAttribute
, see {@odf.attribute svg:viewBox} at specification
* @param svgWidthValue the String
value of SvgWidthAttribute
, see {@odf.attribute svg:width} at specification
* @param svgXValue the String
value of SvgXAttribute
, see {@odf.attribute svg:x} at specification
* @param svgYValue the String
value of SvgYAttribute
, see {@odf.attribute svg:y} at specification
* @return the element {@odf.element draw:area-polygon}
*/
public DrawAreaPolygonElement newDrawAreaPolygonElement(String drawPointsValue, String svgHeightValue, int svgViewBoxValue, String svgWidthValue, String svgXValue, String svgYValue) {
DrawAreaPolygonElement drawAreaPolygon = ((OdfFileDom) this.ownerDocument).newOdfElement(DrawAreaPolygonElement.class);
drawAreaPolygon.setDrawPointsAttribute(drawPointsValue);
drawAreaPolygon.setSvgHeightAttribute(svgHeightValue);
drawAreaPolygon.setSvgViewBoxAttribute(svgViewBoxValue);
drawAreaPolygon.setSvgWidthAttribute(svgWidthValue);
drawAreaPolygon.setSvgXAttribute(svgXValue);
drawAreaPolygon.setSvgYAttribute(svgYValue);
this.appendChild(drawAreaPolygon);
return drawAreaPolygon;
}
/**
* Create child element {@odf.element draw:area-rectangle}.
*
* @param svgHeightValue the String
value of SvgHeightAttribute
, see {@odf.attribute svg:height} at specification
* @param svgWidthValue the String
value of SvgWidthAttribute
, see {@odf.attribute svg:width} at specification
* @param svgXValue the String
value of SvgXAttribute
, see {@odf.attribute svg:x} at specification
* @param svgYValue the String
value of SvgYAttribute
, see {@odf.attribute svg:y} at specification
* @return the element {@odf.element draw:area-rectangle}
*/
public DrawAreaRectangleElement newDrawAreaRectangleElement(String svgHeightValue, String svgWidthValue, String svgXValue, String svgYValue) {
DrawAreaRectangleElement drawAreaRectangle = ((OdfFileDom) this.ownerDocument).newOdfElement(DrawAreaRectangleElement.class);
drawAreaRectangle.setSvgHeightAttribute(svgHeightValue);
drawAreaRectangle.setSvgWidthAttribute(svgWidthValue);
drawAreaRectangle.setSvgXAttribute(svgXValue);
drawAreaRectangle.setSvgYAttribute(svgYValue);
this.appendChild(drawAreaRectangle);
return drawAreaRectangle;
}
@Override
public void accept(ElementVisitor visitor) {
if (visitor instanceof DefaultElementVisitor) {
DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;
defaultVisitor.visit(this);
} else {
visitor.visit(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy