public Object clone() { ActivityDiagram d = (ActivityDiagram) super.clone(); d.mElements = (Vector) mElements.clone(); d.mTransitions = (Vector) mTransitions.clone(); d.mInitialPoint = false; return d; }
public boolean addActivityDiagram(ActivityDiagram diagram) { if (canAddActivityDiagram()) { mActivityDiagram = diagram; mActivityDiagram.setParent(this); return true; } return false; }
public boolean removeActivityDiagram() { if (mActivityDiagram != null) { mActivityDiagram.setParent(null); mActivityDiagram = null; return true; } return false; }