Examples of layout()


Examples of org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface.layout()

        int childYTop = yTop + getStartIconHeight() + (getYSpacing() / 2);
        int childXLeft = startXLeft;
        while (itr.hasNext()) {
            activity = itr.next();
            childXLeft = centreOfMyLayout - activity.getDimensions().getWidth() / 2;
            activity.layout(childXLeft, childYTop);
            childYTop += activity.getDimensions().getHeight();
        }

        setStartIconXLeft(xLeft);
        setStartIconYTop(yTop);
View Full Code Here

Examples of org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface.layout()

        int childYTop = yTop;
        int childXLeft = xLeft + getStartIconWidth() + (getYSpacing() / 2);
        while (itr.hasNext()) {
            activity = itr.next();
            childYTop = centreOfMyLayout - (activity.getDimensions().getHeight() / 2);
            activity.layout(childXLeft, childYTop);
            childXLeft += activity.getDimensions().getWidth();
        }

        setStartIconXLeft(xLeft);
        setStartIconYTop(yTop);
View Full Code Here

Examples of org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface.layout()

        while (itr.hasNext()) {
            activity = itr.next();
            if (activity instanceof FaultHandlerImpl || activity instanceof TerminationHandlerImpl || activity instanceof CompensationHandlerImpl || activity instanceof EventHandlerImpl) {
                // Ignore
            } else {
                activity.layout(childXLeft, childYTop);
                childXLeft += activity.getDimensions().getWidth();
            }
        }
        // Process Handlers
        itr = getSubActivities().iterator();
View Full Code Here

Examples of org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface.layout()

        childYTop = yTop + getHandlerAdjustment();

        while (itr.hasNext()) {
            activity = itr.next();
            if (activity instanceof FaultHandlerImpl || activity instanceof TerminationHandlerImpl || activity instanceof CompensationHandlerImpl || activity instanceof EventHandlerImpl) {
                activity.layout(childXLeft, childYTop);
                childXLeft += activity.getDimensions().getWidth();
            }
        }

        // Set the values
View Full Code Here

Examples of org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface.layout()

        int childYTop = yTop + getStartIconHeight() + (getYSpacing() / 2);
        int childXLeft = startXLeft + (getXSpacing() / 2);
        while (itr.hasNext()) {
            activity = itr.next();
            //childXLeft = centreOfMyLayout - activity.getDimensions().getWidth() / 2;
            activity.layout(childXLeft, childYTop);
            childYTop += activity.getDimensions().getHeight();
        }

        // Set the values
        setStartIconXLeft(xLeft);
View Full Code Here

Examples of org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface.layout()

        int childXLeft = xLeft + getStartIconWidth() + (getYSpacing() / 2);
        int childYTop = startYTop + (getXSpacing() / 2);
        while (itr.hasNext()) {
            activity = itr.next();
            //childYTop += centreOfMyLayout - (activity.getDimensions().getHeight() / 2);
            activity.layout(childXLeft, childYTop);
            childXLeft += activity.getDimensions().getWidth();
        }

        // Set the values
        setStartIconXLeft(xLeft);
View Full Code Here

Examples of org.xhtmlrenderer.newtable.TableBox.layout()

                   
                    c.reInit(false);
                    c.pushLayer(table);
                    c.getRootLayer().addPage(c);
                   
                    table.layout(c);
                   
                    c.popLayer();
                } finally {
                    c.setNoPageBreak(0);
                }
View Full Code Here

Examples of org.xhtmlrenderer.pdf.ITextRenderer.layout()

            renderer.setDocument(url.toString());
            renderer.getSharedContext().setPrint(false); // Explicitly switch print mode off
            OutputStream os = null;
            try {
                os = new FileOutputStream(outFile.getPath() + ".pdf");
                renderer.layout();
                renderer.createPDF(os);

                os.close();
                os = null;
            } finally {
View Full Code Here

Examples of org.xhtmlrenderer.pdf.ITextRenderer.layout()

                }


                URL url = new URL(baseURI.toURL(), resource.getHRef());
                renderer.setDocument(url.toString());
                renderer.layout();
                if (i == 0) {
                    renderer.createPDF(os, false);
                } else {
                    renderer.writeNextDocument();
                }
View Full Code Here

Examples of org.xhtmlrenderer.pdf.ITextRenderer.layout()

        itext.setDocument(url.toString());
      }
      if (file != null) {
        itext.setDocument(file);
      }
      itext.layout();
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      itext.createPDF(bos, true);
      return bos.toByteArray();
    } catch (Exception e) {
      throw new RuntimeException(e);
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.