Examples of DrawMarkerElement


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

   * @param svgDValue  the <code>String</code> value of <code>SvgDAttribute</code>, see {@odf.attribute  svg:d} at specification
   * @param svgViewBoxValue  the <code>String</code> value of <code>SvgViewBoxAttribute</code>, see {@odf.attribute  svg:viewBox} at specification
   * @return the element {@odf.element draw:marker}
   */
   public DrawMarkerElement newDrawMarkerElement(String drawNameValue, String svgDValue, String svgViewBoxValue) {
    DrawMarkerElement drawMarker = ((OdfFileDom) this.ownerDocument).newOdfElement(DrawMarkerElement.class);
    drawMarker.setDrawNameAttribute(drawNameValue);
    drawMarker.setSvgDAttribute(svgDValue);
    drawMarker.setSvgViewBoxAttribute(svgViewBoxValue);
    this.appendChild(drawMarker);
    return drawMarker;
  }
View Full Code Here

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

                mDefaultStyles = new HashMap<OdfStyleFamily, OdfDefaultStyle>();
            }

            mDefaultStyles.put(defaultStyle.getFamily(), defaultStyle);
        } else if (node instanceof DrawMarkerElement) {
            DrawMarkerElement marker = (DrawMarkerElement) node;
            if (mMarker == null) {
                mMarker = new HashMap<String, DrawMarkerElement>();
            }

            mMarker.put(marker.getDrawNameAttribute(), marker);
        } else if (node instanceof DrawGradientElement) {
            DrawGradientElement gradient = (DrawGradientElement) node;
            if (mGradients == null) {
                mGradients = new HashMap<String, DrawGradientElement>();
            }
View Full Code Here

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

                OdfDefaultStyle defaultStyle = (OdfDefaultStyle) node;
                mDefaultStyles.remove(defaultStyle.getFamily());
            }
        } else if (node instanceof DrawMarkerElement) {
            if (mMarker != null) {
                DrawMarkerElement marker = (DrawMarkerElement) node;
                mMarker.remove(marker.getDrawNameAttribute());
            }
        } else if (node instanceof DrawGradientElement) {
            if (mGradients != null) {
                DrawGradientElement gradient = (DrawGradientElement) node;
                mGradients.remove(gradient.getDrawNameAttribute());
View Full Code Here

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

   * @param svgDValue  the <code>String</code> value of <code>SvgDAttribute</code>, see {@odf.attribute  svg:d} at specification
   * @param svgViewBoxValue  the <code>Integer</code> value of <code>SvgViewBoxAttribute</code>, see {@odf.attribute  svg:viewBox} at specification
   * @return the element {@odf.element draw:marker}
   */
   public DrawMarkerElement newDrawMarkerElement(String drawNameValue, String svgDValue, int svgViewBoxValue) {
    DrawMarkerElement drawMarker = ((OdfFileDom) this.ownerDocument).newOdfElement(DrawMarkerElement.class);
    drawMarker.setDrawNameAttribute(drawNameValue);
    drawMarker.setSvgDAttribute(svgDValue);
    drawMarker.setSvgViewBoxAttribute(svgViewBoxValue);
    this.appendChild(drawMarker);
    return drawMarker;
  }
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.