return group;
}
protected Element getArrows(SVGDocument doc) {
Element subGroup = null;
subGroup = doc.createElementNS("http://www.w3.org/2000/svg", "g");
//the below code segment is commented inorder to have the Arrow style of Flow
/*if (subActivities != null) {
org.wso2.carbon.bpel.ui.bpel2svg.ActivityInterface activity = null;
String id = null;
SVGCoordinates myStartCoords = getStartIconExitArrowCoords();
SVGCoordinates myExitCoords = getEndIconEntryArrowCoords();
org.wso2.carbon.bpel.ui.bpel2svg.SVGCoordinates activityExitCoords = null;
SVGCoordinates activityEntryCoords = null;
Iterator<ActivityInterface> itr = subActivities.iterator();
while (itr.hasNext()) {
activity = itr.next();
activityExitCoords = activity.getExitArrowCoords();
activityEntryCoords = activity.getEntryArrowCoords();
subGroup.appendChild(getArrowDefinition(doc, myStartCoords.getXLeft(), myStartCoords.getYTop(), activityEntryCoords.getXLeft(), activityEntryCoords.getYTop(), id));
subGroup.appendChild(getArrowDefinition(doc, activityExitCoords.getXLeft(), activityExitCoords.getYTop(), myExitCoords.getXLeft(), myExitCoords.getYTop(), id));
}
} */
//pls use a function to find the closest activity to the flow start
//as well as the closest activity to the flow end;
SVGCoordinates myStartCoords = getStartIconExitArrowCoords();
SVGCoordinates myExitCoords = getEndIconEntryArrowCoords();
subGroup.appendChild(getArrowDefinition(doc, myStartCoords.getXLeft(), myStartCoords.getYTop(),
myStartCoords.getXLeft(), (myStartCoords.getYTop() + 30), "Flow_Top", true));
subGroup.appendChild(getArrowDefinition(doc, (myStartCoords.getXLeft() - dimensions.getWidth()/2 + getXSpacing()),
(myStartCoords.getYTop() + 30), (myStartCoords.getXLeft() + dimensions.getWidth()/2 - getXSpacing()),
(myStartCoords.getYTop() + 30), "Flow_TopH", true));
subGroup.appendChild(getArrowDefinition(doc, (myStartCoords.getXLeft() - dimensions.getWidth()/2 + getXSpacing()),
(myExitCoords.getYTop() - 20), (myStartCoords.getXLeft() + dimensions.getWidth()/2 - getXSpacing()),
(myExitCoords.getYTop() - 20), "Flow_DownH", true));
subGroup.appendChild(getArrowDefinition(doc, myExitCoords.getXLeft(), myExitCoords.getYTop() - 20,
myExitCoords.getXLeft(), myExitCoords.getYTop(), "Flow_Top", false));
return subGroup;
}