Package org.w3c.dom

Examples of org.w3c.dom.Element.appendChild()


        }
        // Get Sub Activities
        group.appendChild(getSubActivitiesSVGString(doc));
        group.appendChild(getEndImageDefinition(doc));
        //Add Arrow
        group.appendChild(getArrows(doc));
        //attention - here group1 contain the box definition+ImageDefinition+etc... in the original
        // but here group does not contain that
        return group;
    }
View Full Code Here


                activity = itr.next();
                activityEntryCoords = activity.getEntryArrowCoords();
                activityExitCoords = activity.getExitArrowCoords();
                id = getId() + "-" + activity.getId();
                if (activity instanceof FaultHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartFaultCoords.getXLeft(),
                        myStartFaultCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else if (activity instanceof TerminationHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartTerminationCoords.getXLeft(),
                        myStartTerminationCoords.getYTop(), activityEntryCoords.getXLeft(),
View Full Code Here

                if (activity instanceof FaultHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartFaultCoords.getXLeft(),
                        myStartFaultCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else if (activity instanceof TerminationHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartTerminationCoords.getXLeft(),
                        myStartTerminationCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else if (activity instanceof CompensationHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartCompensationCoords.getXLeft(),
                        myStartCompensationCoords.getYTop(), activityEntryCoords.getXLeft(),
View Full Code Here

                } else if (activity instanceof TerminationHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartTerminationCoords.getXLeft(),
                        myStartTerminationCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else if (activity instanceof CompensationHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartCompensationCoords.getXLeft(),
                        myStartCompensationCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else if (activity instanceof EventHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartEventCoords.getXLeft(),
                        myStartEventCoords.getYTop(), activityEntryCoords.getXLeft(),
View Full Code Here

                } else if (activity instanceof CompensationHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartCompensationCoords.getXLeft(),
                        myStartCompensationCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else if (activity instanceof EventHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartEventCoords.getXLeft(),
                        myStartEventCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else {
                    subGroup.appendChild(getArrowDefinition(doc, myStartCoords.getXLeft(),
                        myStartCoords.getYTop(), activityEntryCoords.getXLeft(),
View Full Code Here

                } else if (activity instanceof EventHandlerImpl) {
                    subGroup.appendChild(getArrowDefinition(doc, myStartEventCoords.getXLeft(),
                        myStartEventCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                } else {
                    subGroup.appendChild(getArrowDefinition(doc, myStartCoords.getXLeft(),
                        myStartCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                    subGroup.appendChild(getArrowDefinition(doc, activityExitCoords.getXLeft(),
                        activityExitCoords.getYTop(), myExitCoords.getXLeft(),
                        myExitCoords.getYTop(), id, activity, activity));
View Full Code Here

                        activityEntryCoords.getYTop(), id, activity, activity));
                } else {
                    subGroup.appendChild(getArrowDefinition(doc, myStartCoords.getXLeft(),
                        myStartCoords.getYTop(), activityEntryCoords.getXLeft(),
                        activityEntryCoords.getYTop(), id, activity, activity));
                    subGroup.appendChild(getArrowDefinition(doc, activityExitCoords.getXLeft(),
                        activityExitCoords.getYTop(), myExitCoords.getXLeft(),
                        myExitCoords.getYTop(), id, activity, activity));
                }
                prevActivity = activity;
            }
View Full Code Here

            group.setAttributeNS("xlink", "title", getActivityInfoString());
        }

        // Add border on failed state, to show the red boundary indicating an error has occurred
        if (getState() == ActivityState.Failed) {
          group.appendChild(getBoxDefinition(doc));
        }
       
        group.appendChild(getImageDefinition(doc));
        group.appendChild(getStartImageText(doc));
View Full Code Here

        // Add border on failed state, to show the red boundary indicating an error has occurred
        if (getState() == ActivityState.Failed) {
          group.appendChild(getBoxDefinition(doc));
        }
       
        group.appendChild(getImageDefinition(doc));
        group.appendChild(getStartImageText(doc));

        return group;
    }
View Full Code Here

        if (getState() == ActivityState.Failed) {
          group.appendChild(getBoxDefinition(doc));
        }
       
        group.appendChild(getImageDefinition(doc));
        group.appendChild(getStartImageText(doc));

        return group;
    }

    @Override
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.