Examples of DrawHatchElement


Examples of org.odftoolkit.odfdom.dom.element.draw.DrawHatchElement

   * @param drawNameValue  the <code>String</code> value of <code>DrawNameAttribute</code>, see {@odf.attribute  draw:name} at specification
   * @param drawStyleValue  the <code>String</code> value of <code>DrawStyleAttribute</code>, see {@odf.attribute  draw:style} at specification
   * @return the element {@odf.element draw:hatch}
   */
   public DrawHatchElement newDrawHatchElement(String drawNameValue, String drawStyleValue) {
    DrawHatchElement drawHatch = ((OdfFileDom) this.ownerDocument).newOdfElement(DrawHatchElement.class);
    drawHatch.setDrawNameAttribute(drawNameValue);
    drawHatch.setDrawStyleAttribute(drawStyleValue);
    this.appendChild(drawHatch);
    return drawHatch;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawHatchElement

                mGradients = new HashMap<String, DrawGradientElement>();
            }

            mGradients.put(gradient.getDrawNameAttribute(), gradient);
        } else if (node instanceof DrawHatchElement) {
            DrawHatchElement hatch = (DrawHatchElement) node;
            if (mHatches == null) {
                mHatches = new HashMap<String, DrawHatchElement>();
            }

            mHatches.put(hatch.getDrawNameAttribute(), hatch);
        } else if (node instanceof DrawFillImageElement) {
            DrawFillImageElement fillImage = (DrawFillImageElement) node;

            if (mFillImages == null) {
                mFillImages = new HashMap<String, DrawFillImageElement>();
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawHatchElement

                DrawGradientElement gradient = (DrawGradientElement) node;
                mGradients.remove(gradient.getDrawNameAttribute());
            }
        } else if (node instanceof DrawHatchElement) {
            if (mHatches != null) {
                DrawHatchElement hatch = (DrawHatchElement) node;
                mHatches.remove(hatch.getDrawNameAttribute());
            }
        } else if (node instanceof DrawFillImageElement) {
            if (mFillImages != null) {
                DrawFillImageElement fillImage = (DrawFillImageElement) node;
                mFillImages.remove(fillImage.getDrawNameAttribute());
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawHatchElement

   * @param drawNameValue  the <code>String</code> value of <code>DrawNameAttribute</code>, see {@odf.attribute  draw:name} at specification
   * @param drawStyleValue  the <code>String</code> value of <code>DrawStyleAttribute</code>, see {@odf.attribute  draw:style} at specification
   * @return the element {@odf.element draw:hatch}
   */
   public DrawHatchElement newDrawHatchElement(String drawNameValue, String drawStyleValue) {
    DrawHatchElement drawHatch = ((OdfFileDom) this.ownerDocument).newOdfElement(DrawHatchElement.class);
    drawHatch.setDrawNameAttribute(drawNameValue);
    drawHatch.setDrawStyleAttribute(drawStyleValue);
    this.appendChild(drawHatch);
    return drawHatch;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.