code: public void setExternalDiagram(Diagram diagram) {
  		for (int i=0;i<figures.size();i++) {
  			Figure figure = (Figure) figures.get(i);
  			
  			for (int j=0;j<diagram.getFigureCount();j++) {
  				Figure newBase = diagram.getFigure(j);
  				if (newBase.getData().getMetaData().equals(figure.getData().getMetaData())) {
  					MorphShape shape = (MorphShape) figure.getShape();
  					shape.setExternalFrame(newBase.getShape());
  					break;
  				}
  			}
  		}
  	}
docs: Set the current diagram we should morph from. This only really works with
  updateMorphTime() but can be used for smooth transitions between
  morphs.
  
  @param diagram The diagram to use as the base of the morph