public Diagram(DiagramFactory f)
 {
     this.factory = f;
 }
 public Diagram(List <ABlock> blocks, DiagramFactory factory)
 {
     this.blocks  = blocks;
     this.factory = factory;
 }