Examples of SVGArea


Examples of org.apache.fop.dom.svg.SVGArea

            this.marker = 0;
        }

        /* create an SVG area */
        /* if width and height are zero, may want to get the bounds of the content. */
        SVGArea svg = new SVGArea(fs, width, height);
        SVGDocument doc = new SVGDocumentImpl();
        svg.setSVGDocument(doc);
        svg.start();

        /* add the SVG area to the containing area */
        ForeignObjectArea foa = (ForeignObjectArea) area;
        foa.setObject(svg);
        foa.setIntrinsicWidth(svg.getWidth());
        foa.setIntrinsicHeight(svg.getHeight());

        doc.appendChild((SVGSVGElement) createGraphic());

        /* finish off the SVG area */
        svg.end();

        /* return status */
        return new Status(Status.OK);
    }
View Full Code Here

Examples of org.apache.fop.dom.svg.SVGArea

            this.marker = 0;
        }

        /* create an SVG area */
        /* if width and height are zero, may want to get the bounds of the content. */
        SVGArea svg = new SVGArea(fs, width, height);
        SVGDocument doc = new SVGDocumentImpl();
        svg.setSVGDocument(doc);
        svg.start();

        /* add the SVG area to the containing area */
        ForeignObjectArea foa = (ForeignObjectArea) area;
        foa.setObject(svg);
        foa.setIntrinsicWidth(svg.getWidth());
        foa.setIntrinsicHeight(svg.getHeight());

        doc.appendChild((SVGSVGElement) createGraphic());

        /* finish off the SVG area */
        svg.end();

        /* return status */
        return new Status(Status.OK);
    }
View Full Code Here

Examples of org.apache.fop.dom.svg.SVGArea

  SVGArea svgArea = null;
  public GraphicImpl createGraphic()
  {
    this.width = ((SVGLengthProperty)this.properties.get("width")).getSVGLength().getValue();
    this.height = ((SVGLengthProperty)this.properties.get("height")).getSVGLength().getValue();
    svgArea = new SVGArea(null, width, height);
    svgArea.setStyle(((SVGStyle)this.properties.get("style")).getStyle());
    svgArea.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
//    svgArea.setId(this.properties.get("id").getString());
    int numChildren = this.children.size();
    for (int i = 0; i < numChildren; i++) {
View Full Code Here

Examples of org.apache.fop.dom.svg.SVGArea

   
    this.marker = 0;
  }

  /* create an SVG area */
  SVGArea svg = new SVGArea(fs, width, height);
  svg.setStyle(((SVGStyle)this.properties.get("style")).getStyle());
  svg.setTransform(((SVGTransform)this.properties.get("transform")).oldgetTransform());
  svg.start();

  /* add the SVG area to the containing area */
  ((ForeignObjectArea)area).setObject(svg);

  /* iterate over the child formatting objects and lay them out
     into the SVG area */
  int numChildren = this.children.size();
  for (int i = 0; i < numChildren; i++) {
    FONode fo = (FONode) children.elementAt(i);
    Status status;
    if ((status = fo.layout(svg)).isIncomplete()) {
    return status;
    }
  }

  /* finish off the SVG area */
  svg.end();

  /* increase the height of the containing area accordingly */
  area.increaseHeight(svg.getHeight());
//  area.setWidth(svg.getWidth());

  /* return status */
  return new Status(Status.OK);
  }
View Full Code Here

Examples of org.apache.fop.dom.svg.SVGArea

            this.marker = 0;
        }

        /* create an SVG area */
        /* if width and height are zero, may want to get the bounds of the content. */
        SVGArea svg = new SVGArea(fs, width, height);
        SVGDocument doc = new SVGDocumentImpl();
        svg.setSVGDocument(doc);
        svg.start();

        /* add the SVG area to the containing area */
        ForeignObjectArea foa = (ForeignObjectArea) area;
        foa.setObject(svg);
        foa.setIntrinsicWidth(svg.getWidth());
        foa.setIntrinsicHeight(svg.getHeight());

        doc.appendChild((SVGSVGElement) createGraphic());

        /* finish off the SVG area */
        svg.end();

        /* return status */
        return new Status(Status.OK);
    }
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.